]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
2 years agoVersion 0.31.0 (#2224) 0.31.0
Marcelo Trylesinski [Mon, 24 Jul 2023 15:46:24 +0000 (16:46 +0100)] 
Version 0.31.0 (#2224)

2 years agoUse mypy `strict` (#2180)
Viicos [Sun, 23 Jul 2023 21:41:50 +0000 (23:41 +0200)] 
Use mypy `strict` (#2180)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpgraded to AnyIO 4.0 (#2211)
Alex Grönholm [Sun, 23 Jul 2023 06:26:35 +0000 (09:26 +0300)] 
Upgraded to AnyIO 4.0 (#2211)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoDon't group duplicated headers on a single string on the `TestClient` (#2219)
ooknimm [Sun, 23 Jul 2023 06:07:24 +0000 (15:07 +0900)] 
Don't group duplicated headers on a single string on the `TestClient` (#2219)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdded official Python 3.12 support (#2214)
Alex Grönholm [Thu, 13 Jul 2023 19:23:03 +0000 (22:23 +0300)] 
Added official Python 3.12 support (#2214)

2 years agoFix publish Github Action (#2213) 0.30.0
Amin Alaee [Thu, 13 Jul 2023 11:21:10 +0000 (13:21 +0200)] 
Fix publish Github Action (#2213)

2 years agoVersion 0.30.0 (#2212)
Marcelo Trylesinski [Thu, 13 Jul 2023 09:30:04 +0000 (11:30 +0200)] 
Version 0.30.0 (#2212)

2 years agoDrop support for Python 3.7 (#2178)
Marcelo Trylesinski [Thu, 13 Jul 2023 08:19:12 +0000 (10:19 +0200)] 
Drop support for Python 3.7 (#2178)

2 years agoVersion 0.29.0 (#2209) 0.29.0
Marcelo Trylesinski [Thu, 13 Jul 2023 08:12:07 +0000 (10:12 +0200)] 
Version 0.29.0 (#2209)

2 years agoAdd `request` argument to `TemplateResponse` (#2191)
Alex Oleshkevich [Thu, 13 Jul 2023 07:58:13 +0000 (09:58 +0200)] 
Add `request` argument to `TemplateResponse` (#2191)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoStop `body_stream` in case `more_body=False` (#2194)
Marcelo Trylesinski [Thu, 13 Jul 2023 07:48:10 +0000 (09:48 +0200)] 
Stop `body_stream` in case `more_body=False` (#2194)

2 years agoAdd `follow_redirects` parameter to `TestClient` (#2207)
Alex Oleshkevich [Thu, 6 Jul 2023 16:27:45 +0000 (18:27 +0200)] 
Add `follow_redirects` parameter to `TestClient` (#2207)

2 years agoWarn users when using `lifespan` together with `on_startup`/`on_shutdown` (#2193)
Stratos Gerakakis [Wed, 5 Jul 2023 20:55:54 +0000 (22:55 +0200)] 
Warn users when using `lifespan` together with `on_startup`/`on_shutdown` (#2193)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpdate pyproject.toml (#2205)
Amin Alaee [Mon, 3 Jul 2023 07:13:59 +0000 (09:13 +0200)] 
Update pyproject.toml (#2205)

2 years agoBump typing-extensions from 4.5.0 to 4.7.0 (#2202)
dependabot[bot] [Sat, 1 Jul 2023 22:35:45 +0000 (00:35 +0200)] 
Bump typing-extensions from 4.5.0 to 4.7.0 (#2202)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.5.0 to 4.7.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.5.0...4.7.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 1.3.0 to 1.4.1 (#2203)
dependabot[bot] [Sat, 1 Jul 2023 21:48:16 +0000 (23:48 +0200)] 
Bump mypy from 1.3.0 to 1.4.1 (#2203)

Bumps [mypy](https://github.com/python/mypy) from 1.3.0 to 1.4.1.
- [Commits](https://github.com/python/mypy/compare/v1.3.0...v1.4.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump ruff from 0.0.263 to 0.0.275 (#2201)
dependabot[bot] [Sat, 1 Jul 2023 21:41:13 +0000 (23:41 +0200)] 
Bump ruff from 0.0.263 to 0.0.275 (#2201)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.263 to 0.0.275.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.263...v0.0.275)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.1.15 to 9.1.17 (#2200)
dependabot[bot] [Sat, 1 Jul 2023 21:38:10 +0000 (23:38 +0200)] 
Bump mkdocs-material from 9.1.15 to 9.1.17 (#2200)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.15 to 9.1.17.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.15...9.1.17)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.2.5 to 7.2.7 (#2204)
dependabot[bot] [Sat, 1 Jul 2023 21:33:14 +0000 (23:33 +0200)] 
Bump coverage from 7.2.5 to 7.2.7 (#2204)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.5 to 7.2.7.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.5...7.2.7)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFix empty str(exception) when initialized with kwargs (#2181)
bowugit [Tue, 20 Jun 2023 18:35:45 +0000 (02:35 +0800)] 
Fix empty str(exception) when initialized with kwargs (#2181)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoChange JSONResponse headers type annotation to match other Response classes (#2187)
Stefan Mejlgaard [Fri, 16 Jun 2023 13:04:17 +0000 (15:04 +0200)] 
Change JSONResponse headers type annotation to match other Response classes (#2187)

2 years agoCollect routes from Host to generate the OpenAPI schema (#2183)
Thanh Nguyen [Tue, 13 Jun 2023 06:22:29 +0000 (13:22 +0700)] 
Collect routes from Host to generate the OpenAPI schema (#2183)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoFix minor typo in Starlette docstring (#2179)
Albert Villanova del Moral [Thu, 8 Jun 2023 20:57:37 +0000 (22:57 +0200)] 
Fix minor typo in Starlette docstring (#2179)

2 years agoVersion 0.28.0 (#2169) 0.28.0
Marcelo Trylesinski [Wed, 7 Jun 2023 06:25:45 +0000 (08:25 +0200)] 
Version 0.28.0 (#2169)

2 years agoMove exception handling logic to Route (#2026)
Adrian Garcia Badaracco [Wed, 7 Jun 2023 06:19:32 +0000 (01:19 -0500)] 
Move exception handling logic to Route (#2026)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd clear error message when httpx is not installed (#2177)
Marcelo Trylesinski [Tue, 6 Jun 2023 21:19:38 +0000 (23:19 +0200)] 
Add clear error message when httpx is not installed (#2177)

2 years agoAdd env argument to Jinja2Templates, deprecate **env_options. (ref #2134) (#2159)
Alex Oleshkevich [Mon, 5 Jun 2023 18:20:36 +0000 (20:20 +0200)] 
Add env argument to Jinja2Templates, deprecate **env_options. (ref #2134) (#2159)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpdate pull request template to add notes on changes (#2168)
Marcelo Trylesinski [Sun, 4 Jun 2023 17:17:21 +0000 (19:17 +0200)] 
Update pull request template to add notes on changes (#2168)

2 years agoBump mkdocs from 1.4.2 to 1.4.3 (#2164)
dependabot[bot] [Thu, 1 Jun 2023 20:53:56 +0000 (14:53 -0600)] 
Bump mkdocs from 1.4.2 to 1.4.3 (#2164)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.9 to 6.0.12.10 (#2163)
dependabot[bot] [Thu, 1 Jun 2023 20:49:05 +0000 (14:49 -0600)] 
Bump types-pyyaml from 6.0.12.9 to 6.0.12.10 (#2163)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump importlib-metadata from 4.13.0 to 6.6.0 (#2162)
dependabot[bot] [Thu, 1 Jun 2023 20:44:33 +0000 (14:44 -0600)] 
Bump importlib-metadata from 4.13.0 to 6.6.0 (#2162)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 1.2.0 to 1.3.0 (#2165)
dependabot[bot] [Thu, 1 Jun 2023 20:39:13 +0000 (14:39 -0600)] 
Bump mypy from 1.2.0 to 1.3.0 (#2165)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.1.8 to 9.1.15 (#2166)
dependabot[bot] [Thu, 1 Jun 2023 20:34:07 +0000 (14:34 -0600)] 
Bump mkdocs-material from 9.1.8 to 9.1.15 (#2166)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoReuse Request's body buffer for call_next in BaseHTTPMiddleware (#1692)
Adrian Garcia Badaracco [Thu, 1 Jun 2023 18:57:28 +0000 (13:57 -0500)] 
Reuse Request's body buffer for call_next in BaseHTTPMiddleware (#1692)

2 years agoAdd testclient test for domain restricted cookies (#2154)
Nicolas Dietrich [Wed, 31 May 2023 16:39:50 +0000 (18:39 +0200)] 
Add testclient test for domain restricted cookies (#2154)

2 years agoAllow "name" argument on templates url_for() (#2127)
Ross Titmarsh [Wed, 31 May 2023 15:57:17 +0000 (16:57 +0100)] 
Allow "name" argument on templates url_for() (#2127)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd missing type hints to Jinja2Templates() (#2157)
Dr. Matthew Swabey [Wed, 31 May 2023 15:55:08 +0000 (16:55 +0100)] 
Add missing type hints to Jinja2Templates() (#2157)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoInclude all files in sdist archives (#2149)
Michał Górny [Wed, 24 May 2023 09:27:22 +0000 (11:27 +0200)] 
Include all files in sdist archives (#2149)

Remove the restriction on files inclduded in sdist archives in order
to include documentation sources and tests there.  This is the default
hatchling behavior and it is helpful to packagers (such as Linux
distributions or Conda) as it permits using sdist archives to do
packaging (instead of GitHub archives that are not guaranteed
to be reproducible).  Most of the ordinary users will not be affected
since starlette is a pure Python package and therefore pip will prefer
wheels to install it everywhere.

2 years agoMove configuration of tools to pyproject.toml (#2148)
Amin Alaee [Tue, 16 May 2023 13:50:46 +0000 (17:20 +0330)] 
Move configuration of tools to pyproject.toml (#2148)

2 years agoVersion 0.27.0 (#2147) 0.27.0
Amin Alaee [Tue, 16 May 2023 10:56:45 +0000 (14:26 +0330)] 
Version 0.27.0 (#2147)

* Version 0.27.0

* Update release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update release-notes.md

* Update docs/release-notes.md

* Update release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoMerge pull request from GHSA-v5gw-mw7f-84px
Amin Alaee [Tue, 16 May 2023 10:33:57 +0000 (14:03 +0330)] 
Merge pull request from GHSA-v5gw-mw7f-84px

2 years agoadd 3rd party middleware link for secure-cookie (#2144)
Elias Gabriel [Wed, 10 May 2023 05:16:46 +0000 (01:16 -0400)] 
add 3rd party middleware link for secure-cookie (#2144)

2 years agoRun black before ruff (#2143)
Adrian Garcia Badaracco [Thu, 4 May 2023 19:05:27 +0000 (14:05 -0500)] 
Run black before ruff (#2143)

2 years agoCorrect the RuntimeError message content in websockets (#2141)
Grvzard [Wed, 3 May 2023 08:57:00 +0000 (16:57 +0800)] 
Correct the RuntimeError message content in websockets (#2141)

2 years agoBump ruff from 0.0.260 to 0.0.263 (#2136)
dependabot[bot] [Tue, 2 May 2023 06:13:14 +0000 (00:13 -0600)] 
Bump ruff from 0.0.260 to 0.0.263 (#2136)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.0.15 to 9.1.8 (#2139)
dependabot[bot] [Mon, 1 May 2023 21:34:59 +0000 (23:34 +0200)] 
Bump mkdocs-material from 9.0.15 to 9.1.8 (#2139)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.0.15 to 9.1.8.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.0.15...9.1.8)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 1.0.1 to 1.2.0 (#2137)
dependabot[bot] [Mon, 1 May 2023 21:29:31 +0000 (23:29 +0200)] 
Bump mypy from 1.0.1 to 1.2.0 (#2137)

Bumps [mypy](https://github.com/python/mypy) from 1.0.1 to 1.2.0.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.2.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.1.0 to 7.2.5 (#2138)
dependabot[bot] [Mon, 1 May 2023 21:25:06 +0000 (23:25 +0200)] 
Bump coverage from 7.1.0 to 7.2.5 (#2138)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.1.0 to 7.2.5.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.1.0...7.2.5)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump pytest from 7.2.2 to 7.3.1 (#2140)
dependabot[bot] [Mon, 1 May 2023 21:05:30 +0000 (23:05 +0200)] 
Bump pytest from 7.2.2 to 7.3.1 (#2140)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.2...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoMinify JSON websocket data via `send_json` (#2128)
dosisod [Fri, 28 Apr 2023 02:45:03 +0000 (19:45 -0700)] 
Minify JSON websocket data via `send_json` (#2128)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoConvert ImportErrors into ModuleNotFoundError (#2135)
Adrian Garcia Badaracco [Wed, 26 Apr 2023 15:56:46 +0000 (09:56 -0600)] 
Convert ImportErrors into ModuleNotFoundError (#2135)

2 years agoUpdate `scripts/check` (#2133)
Amin Alaee [Tue, 25 Apr 2023 13:17:38 +0000 (15:17 +0200)] 
Update `scripts/check` (#2133)

2 years agoUpdate pull_request_template.md (#2122)
Marcelo Trylesinski [Tue, 18 Apr 2023 12:43:01 +0000 (14:43 +0200)] 
Update pull_request_template.md (#2122)

2 years agoFix types in lifespan examples (#2123)
Alex Oleshkevich [Mon, 17 Apr 2023 10:52:15 +0000 (12:52 +0200)] 
Fix types in lifespan examples (#2123)

2 years agoUpdate black (#2114)
Amin Alaee [Wed, 5 Apr 2023 12:38:44 +0000 (14:38 +0200)] 
Update black (#2114)

2 years agoUse ruff instead of flake8, autoflake and isort (#2110)
Marcelo Trylesinski [Wed, 5 Apr 2023 12:30:01 +0000 (14:30 +0200)] 
Use ruff instead of flake8, autoflake and isort (#2110)

2 years agoBump typing-extensions from 4.4.0 to 4.5.0 (#2103)
dependabot[bot] [Sun, 2 Apr 2023 08:50:14 +0000 (10:50 +0200)] 
Bump typing-extensions from 4.4.0 to 4.5.0 (#2103)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump pytest from 7.2.1 to 7.2.2 (#2105)
dependabot[bot] [Sun, 2 Apr 2023 08:29:40 +0000 (10:29 +0200)] 
Bump pytest from 7.2.1 to 7.2.2 (#2105)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-contextvars from 2.4.7.1 to 2.4.7.2 (#2102)
dependabot[bot] [Sun, 2 Apr 2023 08:25:56 +0000 (10:25 +0200)] 
Bump types-contextvars from 2.4.7.1 to 2.4.7.2 (#2102)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.3 to 6.0.12.9 (#2106)
dependabot[bot] [Sun, 2 Apr 2023 08:19:39 +0000 (10:19 +0200)] 
Bump types-pyyaml from 6.0.12.3 to 6.0.12.9 (#2106)

Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.12.3 to 6.0.12.9.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-pyyaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFix `docs/staticfiles.md` wrong signature (#2095)
Jiayang [Tue, 28 Mar 2023 10:29:15 +0000 (05:29 -0500)] 
Fix `docs/staticfiles.md` wrong signature (#2095)

Co-authored-by: Jiayang Sun <sjyhehe@gmail.com>
2 years agoAdd Starlette bridge to packages (#2086)
Tiago Silva [Fri, 17 Mar 2023 13:46:42 +0000 (13:46 +0000)] 
Add Starlette bridge to packages (#2086)

2 years agoVersion 0.26.1 (#2082) 0.26.1
Marcelo Trylesinski [Mon, 13 Mar 2023 18:08:31 +0000 (15:08 -0300)] 
Version 0.26.1 (#2082)

2 years agoFix typing of Lifespan to allow subclasses of Starlette (#2077)
Adrian Garcia Badaracco [Mon, 13 Mar 2023 18:04:15 +0000 (13:04 -0500)] 
Fix typing of Lifespan to allow subclasses of Starlette (#2077)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd date on the 0.26.0.post1 release notes (#2075)
Marcelo Trylesinski [Fri, 10 Mar 2023 09:58:25 +0000 (10:58 +0100)] 
Add date on the 0.26.0.post1 release notes (#2075)

2 years agoVersion 0.26.0.post1 (#2073) 0.26.0.post1
Marcelo Trylesinski [Thu, 9 Mar 2023 23:55:34 +0000 (00:55 +0100)] 
Version 0.26.0.post1 (#2073)

2 years agoReplace reference from Events to Lifespan on the mkdocs.yml (#2072)
Marcelo Trylesinski [Thu, 9 Mar 2023 23:20:06 +0000 (00:20 +0100)] 
Replace reference from Events to Lifespan on the mkdocs.yml (#2072)

2 years agoVersion 0.26.0 (#2071) 0.26.0
Marcelo Trylesinski [Thu, 9 Mar 2023 23:06:30 +0000 (00:06 +0100)] 
Version 0.26.0 (#2071)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2 years agoDeprecate `on_startup` and `on_shutdown` events (#2070)
Marcelo Trylesinski [Thu, 9 Mar 2023 22:30:28 +0000 (23:30 +0100)] 
Deprecate `on_startup` and `on_shutdown` events (#2070)

* Revert "Support lifespan state (#2060)"

This reverts commit da6461b239cde16ee9709b7d266c2529c26239d7.

* new implementation

* Deprecate `on_startup` and `on_shutdown` events

* Rename `events.md` by `lifespan.md`

---------

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2 years agoAllow returning a State object from lifespans instead of accepting a dict as an argum...
Adrian Garcia Badaracco [Thu, 9 Mar 2023 20:04:12 +0000 (14:04 -0600)] 
Allow returning a State object from lifespans instead of accepting a dict as an argument (#2065)

2 years agoAllow "name" argument on `url_for()` and `url_path_for()` (#2050)
Marcelo Trylesinski [Mon, 6 Mar 2023 09:00:00 +0000 (10:00 +0100)] 
Allow "name" argument on `url_for()` and `url_path_for()` (#2050)

Co-authored-by: Daniel <709115+dansan@users.noreply.github.com>
2 years agoDocument Lifespan state (#2064)
Marcelo Trylesinski [Sun, 5 Mar 2023 17:32:50 +0000 (18:32 +0100)] 
Document Lifespan state (#2064)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2 years agoChange `url_for` signature to return a `URL` instance (#1385)
Amin Alaee [Sun, 5 Mar 2023 15:04:51 +0000 (16:04 +0100)] 
Change `url_for` signature to return a `URL` instance (#1385)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoSupport lifespan state (#2060)
Marcelo Trylesinski [Sun, 5 Mar 2023 14:49:07 +0000 (15:49 +0100)] 
Support lifespan state (#2060)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2 years agoBump mkdocs-material from 8.5.7 to 9.0.15 (#2053)
dependabot[bot] [Fri, 3 Mar 2023 18:03:02 +0000 (19:03 +0100)] 
Bump mkdocs-material from 8.5.7 to 9.0.15 (#2053)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump pytest from 7.2.0 to 7.2.1 (#2051)
dependabot[bot] [Wed, 1 Mar 2023 20:22:19 +0000 (21:22 +0100)] 
Bump pytest from 7.2.0 to 7.2.1 (#2051)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-contextvars from 2.4.7 to 2.4.7.1 (#2054)
dependabot[bot] [Wed, 1 Mar 2023 20:19:25 +0000 (21:19 +0100)] 
Bump types-contextvars from 2.4.7 to 2.4.7.1 (#2054)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 0.991 to 1.0.1 (#2055)
dependabot[bot] [Wed, 1 Mar 2023 20:16:04 +0000 (21:16 +0100)] 
Bump mypy from 0.991 to 1.0.1 (#2055)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump build from 0.9.0 to 0.10.0 (#2052)
dependabot[bot] [Wed, 1 Mar 2023 20:10:13 +0000 (21:10 +0100)] 
Bump build from 0.9.0 to 0.10.0 (#2052)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoUpdate Flama description in third-party-packages (#2049)
migduroli [Wed, 1 Mar 2023 06:17:34 +0000 (07:17 +0100)] 
Update Flama description in third-party-packages (#2049)

2 years agoUpdate link to jinja2 (#2043)
Magnus Watn [Mon, 20 Feb 2023 11:14:47 +0000 (12:14 +0100)] 
Update link to jinja2 (#2043)

The old link doesn't support https, which makes it not work for
https-only users, and it only redirects to this one anyway.

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoDocs: Remove SentryMiddleware from third-party list (#2044)
François Voron [Mon, 20 Feb 2023 11:11:54 +0000 (12:11 +0100)] 
Docs: Remove SentryMiddleware from third-party list (#2044)

2 years agoVersion 0.25.0 (#2035) 0.25.0
Marcelo Trylesinski [Tue, 14 Feb 2023 09:06:03 +0000 (10:06 +0100)] 
Version 0.25.0 (#2035)

2 years ago🐛 Close all the multipart files on error (#2036)
Sebastián Ramírez [Tue, 14 Feb 2023 09:03:29 +0000 (10:03 +0100)] 
🐛 Close all the multipart files on error (#2036)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoMerge pull request from GHSA-74m5-2c7w-9w3x
Sebastián Ramírez [Tue, 14 Feb 2023 08:01:32 +0000 (09:01 +0100)] 
Merge pull request from GHSA-74m5-2c7w-9w3x

* ♻️ Refactor multipart parser logic to support limiting max fields and files

* ✨ Add support for new request.form() parameters max_files and max_fields

* ✅ Add tests for limiting max fields and files in form data

* 📝 Add docs about request.form() with new parameters max_files and max_fields

* 📝 Update `docs/requests.md`

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* 📝 Tweak docs for request.form()

* ✏ Fix typo in `starlette/formparsers.py`

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2 years agoFix test not passing in 32-bit architectures (#2033)
kraptor [Sat, 11 Feb 2023 14:24:57 +0000 (15:24 +0100)] 
Fix test not passing in 32-bit architectures (#2033)

Some architectures cannot hold values after
2038 year.

This commit fixes the following tests, adjusting
the expiring date for the cookies to a maximum
year value of 2037:

* test_set_cookie
* test_expires_on_set_cookie

2 years agoDocument that UploadFile's `filename` and `content_type` can be `None` (#2029)
Rafał Pitoń [Wed, 8 Feb 2023 05:20:19 +0000 (06:20 +0100)] 
Document that UploadFile's `filename` and `content_type` can be `None` (#2029)

2 years agoVersion 0.24.0 (#1983) 0.24.0
Marcelo Trylesinski [Mon, 6 Feb 2023 16:01:14 +0000 (17:01 +0100)] 
Version 0.24.0 (#1983)

2 years agoFeature: Add size attribute to UploadFile (#1405)
Rafał Pitoń [Mon, 6 Feb 2023 12:02:29 +0000 (13:02 +0100)] 
Feature: Add size attribute to UploadFile (#1405)

2 years agoallow using Request.form() as a context manager (#1903)
Adrian Garcia Badaracco [Mon, 6 Feb 2023 05:58:21 +0000 (21:58 -0800)] 
allow using Request.form() as a context manager (#1903)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoSupport `str` and `datetime` on `expires` parameter on the `set_cookie` method (...
oskipa [Mon, 6 Feb 2023 05:45:30 +0000 (00:45 -0500)] 
Support `str` and `datetime` on `expires` parameter on the `set_cookie` method (#1908)

Co-authored-by: Hugo Estrada <hugoestrada@cal.berkeley.edu>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2 years agoFix url parsing of ipv6 urls on `URL.replace` (#1965)
Kousik Mitra [Mon, 6 Feb 2023 05:41:54 +0000 (11:11 +0530)] 
Fix url parsing of ipv6 urls on `URL.replace` (#1965)

Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2 years agoLazily build middleware stack (#2017)
Adrian Garcia Badaracco [Mon, 6 Feb 2023 05:35:09 +0000 (21:35 -0800)] 
Lazily build middleware stack (#2017)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoSupport Debug extension (#1991)
Marcelo Trylesinski [Mon, 6 Feb 2023 05:31:48 +0000 (06:31 +0100)] 
Support Debug extension (#1991)

2 years agoMake the file argument to UploadFile required (#1413)
Adrian Garcia Badaracco [Sat, 4 Feb 2023 17:55:25 +0000 (09:55 -0800)] 
Make the file argument to UploadFile required (#1413)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAllow StaticFiles follow symlinks (#1683)
Amin Alaee [Sat, 4 Feb 2023 17:22:36 +0000 (18:22 +0100)] 
Allow StaticFiles follow symlinks (#1683)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoBump types-pyyaml from 6.0.12.2 to 6.0.12.3 (#2023)
dependabot[bot] [Wed, 1 Feb 2023 19:25:21 +0000 (20:25 +0100)] 
Bump types-pyyaml from 6.0.12.2 to 6.0.12.3 (#2023)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.0.1 to 7.1.0 (#2025)
dependabot[bot] [Wed, 1 Feb 2023 19:20:04 +0000 (20:20 +0100)] 
Bump coverage from 7.0.1 to 7.1.0 (#2025)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoAdd Config.env_prefix option (#1990)
Alex Oleshkevich [Sun, 22 Jan 2023 21:24:35 +0000 (00:24 +0300)] 
Add Config.env_prefix option (#1990)

* add Config.env_prefix option

* fix variable name in docs

* simplify test case

* rollback markdown formatting

* Update docs/config.md

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd Ellar to third-party packages (#2015)
Tochukwu [Sun, 22 Jan 2023 08:05:39 +0000 (09:05 +0100)] 
Add Ellar to third-party packages (#2015)