]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
21 months agoVersion 0.35.0 (#2404) 0.35.0
Marcelo Trylesinski [Thu, 11 Jan 2024 14:29:36 +0000 (15:29 +0100)] 
Version 0.35.0 (#2404)

* Version 0.35.0

* Update release-notes.md

21 months ago♻️ Refactor logic to handle `root_path` to keep compatibility with ASGI and compatibi...
Sebastián Ramírez [Tue, 9 Jan 2024 04:45:30 +0000 (08:45 +0400)] 
♻️ Refactor logic to handle `root_path` to keep compatibility with ASGI and compatibility with other non-Starlette-specific libraries like a2wsgi (#2400)

* ✨ Add util to get route path from scope

* ♻️ Refactor extracting the local route_path from the scope, and creating the child scope with its own root_pat, this allows sub-apps (e.g. WSGIMiddleware) to know
where it was mounted, and from which path prefix starts the path its sub-app should handle

* ♻️ Refactor datastructures and request to be conformant with the ASGI spec, respecting root_path

* ✅ Add and update tests for root_path with mounted apps that don't know about Starlette internals (e.g. the route_root_path extension scope key that was added in

* ✅ Update test for root_path, TestClient was not requiring paths under a root_path to pass the root_path, which is what clients would have to do if the app is
mounted.

* 🎨 Fix formatting

* 🎨 Remove type ignore

* 🔥 Remove unnecessary comment

* ✨ Update (deprecated) WSGIMiddleware to be compatible with the updated root_path, taking pieces from a2wsgi

* 🎨 Fix types

* ✅ Update test for WSGIMiddleware with root_path

* 🔥 Remove logic/features not in the original (deprecated) WSGIMiddleware

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Aber <me@abersheeran.com>
21 months agoBump trio from 0.22.2 to 0.23.2 (#2395)
dependabot[bot] [Mon, 8 Jan 2024 21:26:34 +0000 (21:26 +0000)] 
Bump trio from 0.22.2 to 0.23.2 (#2395)

* Bump trio from 0.22.2 to 0.23.2

Bumps [trio](https://github.com/python-trio/trio) from 0.22.2 to 0.23.2.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.22.2...v0.23.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
* Remove AnyIO from requirements.txt

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
21 months agoBump ruff from 0.1.6 to 0.1.9 (#2396)
dependabot[bot] [Mon, 8 Jan 2024 08:49:23 +0000 (08:49 +0000)] 
Bump ruff from 0.1.6 to 0.1.9 (#2396)

* Bump ruff from 0.1.6 to 0.1.9

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.6 to 0.1.9.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.6...v0.1.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
* Fix code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
21 months agoBump coverage from 7.3.2 to 7.4.0 (#2397)
dependabot[bot] [Mon, 1 Jan 2024 20:36:25 +0000 (21:36 +0100)] 
Bump coverage from 7.3.2 to 7.4.0 (#2397)

21 months agoBump typing-extensions from 4.8.0 to 4.9.0 (#2393)
dependabot[bot] [Mon, 1 Jan 2024 20:18:57 +0000 (13:18 -0700)] 
Bump typing-extensions from 4.8.0 to 4.9.0 (#2393)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.8.0 to 4.9.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.8.0...4.9.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>
21 months agoBump importlib-metadata from 6.9.0 to 7.0.1 (#2394)
dependabot[bot] [Mon, 1 Jan 2024 20:03:12 +0000 (13:03 -0700)] 
Bump importlib-metadata from 6.9.0 to 7.0.1 (#2394)

Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.9.0 to 7.0.1.
- [Release notes](https://github.com/python/importlib_metadata/releases)
- [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
- [Commits](https://github.com/python/importlib_metadata/compare/v6.9.0...v7.0.1)

---
updated-dependencies:
- dependency-name: importlib-metadata
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
21 months agoBump actions/setup-python from 4 to 5 (#2392)
dependabot[bot] [Mon, 1 Jan 2024 19:35:32 +0000 (12:35 -0700)] 
Bump actions/setup-python from 4 to 5 (#2392)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
22 months agoTurn `scope["client"]` to `None` on `TestClient` (#2377)
Amin Alaee [Mon, 25 Dec 2023 09:33:09 +0000 (13:03 +0330)] 
Turn `scope["client"]` to `None` on `TestClient` (#2377)

* Remove client scope from testclient

* remove test

* Update testclient.py

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoUse `Iterable` instead `Iterator` on `iterate_in_threadpool` (#2362)
James Braza [Wed, 20 Dec 2023 21:59:58 +0000 (13:59 -0800)] 
Use `Iterable` instead `Iterator` on `iterate_in_threadpool` (#2362)

* Fixed AsyncContentStream to be AsyncIterator

* Updating isinstance check too

* Standardizing on Iterable/AsyncIterable

* Moved iterate_in_threadpool to make an iter internally

* Added test of iterate_in_threadpool accepting an Iterable

* Renamed arg to iterator, and fixed type hint in return to be AsyncIterator

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoAdd `*args` to `Middleware` and improve its type hints (#2381)
Paweł Rubin [Wed, 20 Dec 2023 21:09:17 +0000 (22:09 +0100)] 
Add `*args` to `Middleware` and improve its type hints (#2381)

Co-authored-by: Paweł Rubin <pawel.rubin@ocado.com>
22 months agoVersion 0.34.0 (#2368) 0.34.0
Marcelo Trylesinski [Sat, 16 Dec 2023 15:36:01 +0000 (16:36 +0100)] 
Version 0.34.0 (#2368)

22 months agoRemove databases package from config docs (#2092)
Amin Alaee [Sat, 16 Dec 2023 15:05:39 +0000 (16:05 +0100)] 
Remove databases package from config docs (#2092)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoAdd sentry to the third party packages (#2279)
Vageeshan Mankala [Sat, 16 Dec 2023 15:02:19 +0000 (07:02 -0800)] 
Add sentry to the third party packages (#2279)

* Update third-party-packages.md

* Update third-party-packages.md

* improve wording

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoClarify that wildcard and credentials are mutually exclusive (#2210)
Diego Fioravanti [Sat, 16 Dec 2023 14:41:37 +0000 (15:41 +0100)] 
Clarify that wildcard and credentials are mutually exclusive (#2210)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoAdd example on how to use `SessionMiddleware` (#2251)
Bernardo Gomes [Sat, 16 Dec 2023 14:24:57 +0000 (11:24 -0300)] 
Add example on how to use `SessionMiddleware` (#2251)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoTake weak ETags in consideration on `StaticFiles` (#2334)
neolooong [Sat, 16 Dec 2023 14:13:21 +0000 (22:13 +0800)] 
Take weak ETags in consideration on `StaticFiles` (#2334)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoMerge URLs properly on TestClient (#2376)
Marcelo Trylesinski [Sat, 16 Dec 2023 13:55:20 +0000 (14:55 +0100)] 
Merge URLs properly on TestClient (#2376)

22 months agoUse `ParamSpec` for `run_in_threadpool` (#2375)
Marcelo Trylesinski [Sat, 16 Dec 2023 12:51:24 +0000 (13:51 +0100)] 
Use `ParamSpec` for `run_in_threadpool` (#2375)

22 months agoDeprecate `FileResponse(method=...)` parameter (#2366)
Marcelo Trylesinski [Sat, 16 Dec 2023 12:47:54 +0000 (13:47 +0100)] 
Deprecate `FileResponse(method=...)` parameter (#2366)

22 months agoBump mypy from 1.5.1 to 1.7.1 (#2357)
dependabot[bot] [Wed, 13 Dec 2023 12:56:11 +0000 (12:56 +0000)] 
Bump mypy from 1.5.1 to 1.7.1 (#2357)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoAdd `UploadFile.__repr__` (#2360)
Samuel Colvin [Tue, 5 Dec 2023 07:34:41 +0000 (10:34 +0300)] 
Add `UploadFile.__repr__` (#2360)

22 months agoBump importlib-metadata from 6.8.0 to 6.9.0 (#2356)
dependabot[bot] [Sat, 2 Dec 2023 08:02:23 +0000 (09:02 +0100)] 
Bump importlib-metadata from 6.8.0 to 6.9.0 (#2356)

22 months agoBump coverage from 7.3.1 to 7.3.2 (#2355)
dependabot[bot] [Fri, 1 Dec 2023 19:44:50 +0000 (13:44 -0600)] 
Bump coverage from 7.3.1 to 7.3.2 (#2355)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.1 to 7.3.2.
- [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.3.1...7.3.2)

---
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>
22 months agoBump ruff from 0.1.4 to 0.1.6 (#2359)
dependabot[bot] [Fri, 1 Dec 2023 19:39:40 +0000 (13:39 -0600)] 
Bump ruff from 0.1.4 to 0.1.6 (#2359)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.4 to 0.1.6.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.4...v0.1.6)

---
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>
22 months agoVersion 0.33.0 (#2354) 0.33.0
Marcelo Trylesinski [Fri, 1 Dec 2023 13:38:58 +0000 (14:38 +0100)] 
Version 0.33.0 (#2354)

22 months agoSet `ensure_ascii=False` on `json.dumps()` for `WebSocket.send_json()` (#2341)
夏悠然 [Fri, 1 Dec 2023 13:23:06 +0000 (21:23 +0800)] 
Set `ensure_ascii=False` on `json.dumps()` for `WebSocket.send_json()` (#2341)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
22 months agoAdd middleware per `Router` (#2351)
Marcelo Trylesinski [Fri, 1 Dec 2023 12:58:30 +0000 (13:58 +0100)] 
Add middleware per `Router` (#2351)

22 months agoDo not overwrite `"path"` and `"root_path"` scope keys (#2352)
Marcelo Trylesinski [Fri, 1 Dec 2023 12:55:46 +0000 (13:55 +0100)] 
Do not overwrite `"path"` and `"root_path"` scope keys (#2352)

22 months agoAdd middleware per `Route`/`WebSocketRoute` (#2349)
Marcelo Trylesinski [Fri, 1 Dec 2023 10:35:14 +0000 (11:35 +0100)] 
Add middleware per `Route`/`WebSocketRoute` (#2349)

23 months agoUpdate link to itsdangerous (#2343)
Ofek Lev [Thu, 23 Nov 2023 02:01:17 +0000 (21:01 -0500)] 
Update link to itsdangerous (#2343)

* Update link to itsdangerous

* here too

23 months agoFix typo in docs (#2344)
Ofek Lev [Wed, 22 Nov 2023 18:26:45 +0000 (13:26 -0500)] 
Fix typo in docs (#2344)

23 months agoReplace black with ruff formatter (#2330)
Amin Alaee [Wed, 8 Nov 2023 16:43:38 +0000 (17:43 +0100)] 
Replace black with ruff formatter (#2330)

23 months agoVersion 0.32.0.post1 (#2327) 0.32.0.post1
Marcelo Trylesinski [Mon, 6 Nov 2023 06:28:32 +0000 (07:28 +0100)] 
Version 0.32.0.post1 (#2327)

23 months agoAdd Starlette-StaticResources to third-party-packages (#2286)
David Ventura [Mon, 6 Nov 2023 02:36:15 +0000 (03:36 +0100)] 
Add Starlette-StaticResources to third-party-packages (#2286)

23 months agoFix link in release-notes.md (#2325)
Grvzard [Mon, 6 Nov 2023 01:51:06 +0000 (09:51 +0800)] 
Fix link in release-notes.md (#2325)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
23 months agoRevert "Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)" (#2326)
Marcelo Trylesinski [Sun, 5 Nov 2023 16:26:36 +0000 (17:26 +0100)] 
Revert "Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)" (#2326)

23 months agoVersion 0.32.0 (#2324) 0.32.0
Marcelo Trylesinski [Sat, 4 Nov 2023 12:16:33 +0000 (13:16 +0100)] 
Version 0.32.0 (#2324)

* Version 0.32.0

* Update docs/release-notes.md

23 months agoAdd Apitally to third party packages section in docs (#2313)
Simon Gurcke [Sat, 4 Nov 2023 11:30:27 +0000 (21:30 +1000)] 
Add Apitally to third party packages section in docs (#2313)

23 months agoAdd `domain` parameter to `SessionMiddleware` (#2280)
zllvm [Fri, 3 Nov 2023 12:17:43 +0000 (13:17 +0100)] 
Add `domain` parameter to `SessionMiddleware` (#2280)

* feat: add domain argument to SessionMiddleware

* docs: keep existing formatting

* fix: add newline at end of file

* fix: comply with formatting

* fix: comply with formatting rules

* fix: set domain default value to empty string

* Make `domain` `Optional[str]`

---------

Co-authored-by: max <max@maxlabs.se>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
23 months agoBump ruff from 0.0.291 to 0.1.3 (#2321)
dependabot[bot] [Fri, 3 Nov 2023 02:42:49 +0000 (02:42 +0000)] 
Bump ruff from 0.0.291 to 0.1.3 (#2321)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.291 to 0.1.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.291...v0.1.3)

---
updated-dependencies:
- dependency-name: ruff
  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>
Co-authored-by: Aber <me@abersheeran.com>
23 months agoDeleting docs/js folder and extra_javascript in mkdocs.yaml (#2311)
Mahmoud [Thu, 2 Nov 2023 11:45:38 +0000 (13:45 +0200)] 
Deleting docs/js folder and extra_javascript in mkdocs.yaml (#2311)

23 months agoBump mkdocs-material from 9.1.17 to 9.4.7 (#2320)
dependabot[bot] [Wed, 1 Nov 2023 20:49:49 +0000 (15:49 -0500)] 
Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.17 to 9.4.7.
- [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.17...9.4.7)

---
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>
23 months agoBump typing-extensions from 4.7.1 to 4.8.0 (#2319)
dependabot[bot] [Wed, 1 Nov 2023 20:41:20 +0000 (15:41 -0500)] 
Bump typing-extensions from 4.7.1 to 4.8.0 (#2319)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.7.1 to 4.8.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.7.1...4.8.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>
23 months agoBump black from 23.7.0 to 23.10.1 (#2318)
dependabot[bot] [Wed, 1 Nov 2023 20:33:51 +0000 (15:33 -0500)] 
Bump black from 23.7.0 to 23.10.1 (#2318)

Bumps [black](https://github.com/psf/black) from 23.7.0 to 23.10.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.7.0...23.10.1)

---
updated-dependencies:
- dependency-name: black
  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>
23 months agoBump mkdocs from 1.5.2 to 1.5.3 (#2317)
dependabot[bot] [Wed, 1 Nov 2023 20:08:45 +0000 (15:08 -0500)] 
Bump mkdocs from 1.5.2 to 1.5.3 (#2317)

Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.2...1.5.3)

---
updated-dependencies:
- dependency-name: mkdocs
  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 agoSend reason on `WebSocketDisconnect` (#2309)
Marcelo Trylesinski [Sun, 22 Oct 2023 18:44:09 +0000 (20:44 +0200)] 
Send reason on `WebSocketDisconnect` (#2309)

2 years agoBump build from 0.10.0 to 1.0.3 (#2290)
dependabot[bot] [Mon, 2 Oct 2023 04:33:16 +0000 (04:33 +0000)] 
Bump build from 0.10.0 to 1.0.3 (#2290)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump actions/checkout from 3 to 4 (#2289)
dependabot[bot] [Mon, 2 Oct 2023 04:16:01 +0000 (04:16 +0000)] 
Bump actions/checkout from 3 to 4 (#2289)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-contextvars from 2.4.7.2 to 2.4.7.3 (#2293)
dependabot[bot] [Mon, 2 Oct 2023 04:13:13 +0000 (04:13 +0000)] 
Bump types-contextvars from 2.4.7.2 to 2.4.7.3 (#2293)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump ruff from 0.0.285 to 0.0.291 (#2291)
dependabot[bot] [Mon, 2 Oct 2023 04:10:41 +0000 (22:10 -0600)] 
Bump ruff from 0.0.285 to 0.0.291 (#2291)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.3.0 to 7.3.1 (#2292)
dependabot[bot] [Mon, 2 Oct 2023 04:06:04 +0000 (22:06 -0600)] 
Bump coverage from 7.3.0 to 7.3.1 (#2292)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#2294)
dependabot[bot] [Sun, 1 Oct 2023 21:18:52 +0000 (02:48 +0530)] 
Bump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#2294)

2 years agoBump AnyIO on the test suite (#2285)
Marcelo Trylesinski [Mon, 18 Sep 2023 08:20:19 +0000 (10:20 +0200)] 
Bump AnyIO on the test suite (#2285)

2 years agoEnsure event ordering in test_app_receives_http_disconnect_while_sending_if_discarded...
Jean Hominal [Sun, 17 Sep 2023 00:27:52 +0000 (02:27 +0200)] 
Ensure event ordering in test_app_receives_http_disconnect_while_sending_if_discarded (#2284)

2 years agoInherit from HTMLResponse instead of Response on _TemplateResponse (#2272) (#2274)
Sergi [Thu, 7 Sep 2023 04:08:44 +0000 (21:08 -0700)] 
Inherit from HTMLResponse instead of Response on _TemplateResponse (#2272) (#2274)

2 years agoFix MultiDict tests (#2270)
Godot [Wed, 6 Sep 2023 07:56:32 +0000 (15:56 +0800)] 
Fix MultiDict tests (#2270)

2 years agoBump typing-extensions from 4.7.0 to 4.7.1 (#2269)
dependabot[bot] [Sat, 2 Sep 2023 07:55:13 +0000 (09:55 +0200)] 
Bump typing-extensions from 4.7.0 to 4.7.1 (#2269)

2 years agoBump mypy from 1.4.1 to 1.5.1 (#2265)
dependabot[bot] [Sat, 2 Sep 2023 07:44:53 +0000 (09:44 +0200)] 
Bump mypy from 1.4.1 to 1.5.1 (#2265)

2 years agoBump coverage from 7.2.7 to 7.3.0 (#2266)
dependabot[bot] [Sat, 2 Sep 2023 06:50:15 +0000 (08:50 +0200)] 
Bump coverage from 7.2.7 to 7.3.0 (#2266)

2 years agoBump importlib-metadata from 6.6.0 to 6.8.0 (#2268)
dependabot[bot] [Sat, 2 Sep 2023 06:23:10 +0000 (08:23 +0200)] 
Bump importlib-metadata from 6.6.0 to 6.8.0 (#2268)

2 years agoChange Response.render content argument typing (#2264)
Amin Alaee [Fri, 1 Sep 2023 14:54:51 +0000 (16:54 +0200)] 
Change Response.render content argument typing (#2264)

2 years agoAdd copy button on documentation (#2257)
Marcelo Trylesinski [Sun, 27 Aug 2023 12:07:33 +0000 (14:07 +0200)] 
Add copy button on documentation (#2257)

2 years agoTweak documentation a bit (#2258)
Marcelo Trylesinski [Sun, 27 Aug 2023 07:15:48 +0000 (09:15 +0200)] 
Tweak documentation a bit (#2258)

2 years agoVersion 0.31.1 (#2247) 0.31.1
Marcelo Trylesinski [Sat, 26 Aug 2023 16:42:17 +0000 (18:42 +0200)] 
Version 0.31.1 (#2247)

2 years agoSet `url_for` global for custom jinja envs (#2230)
Alex Oleshkevich [Fri, 25 Aug 2023 19:11:44 +0000 (21:11 +0200)] 
Set `url_for` global for custom jinja envs (#2230)

2 years agoFix `Lifespan State` docs typing import (#2236)
Bartosz Magiera [Fri, 25 Aug 2023 19:00:30 +0000 (21:00 +0200)] 
Fix `Lifespan State` docs typing import (#2236)

2 years agoRemove useless brackets from code example in documentation. (#2234)
Josiah Kaviani [Fri, 25 Aug 2023 18:57:40 +0000 (22:57 +0400)] 
Remove useless brackets from code example in documentation. (#2234)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoBump ruff from 0.0.275 to 0.0.285 (#2254)
dependabot[bot] [Fri, 25 Aug 2023 18:55:38 +0000 (12:55 -0600)] 
Bump ruff from 0.0.275 to 0.0.285 (#2254)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoBump mkdocs from 1.4.3 to 1.5.2 (#2253)
dependabot[bot] [Fri, 25 Aug 2023 18:47:12 +0000 (12:47 -0600)] 
Bump mkdocs from 1.4.3 to 1.5.2 (#2253)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump black from 23.3.0 to 23.7.0 (#2238)
dependabot[bot] [Fri, 25 Aug 2023 18:40:20 +0000 (12:40 -0600)] 
Bump black from 23.3.0 to 23.7.0 (#2238)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.10 to 6.0.12.11 (#2237)
dependabot[bot] [Fri, 25 Aug 2023 18:35:26 +0000 (12:35 -0600)] 
Bump types-pyyaml from 6.0.12.10 to 6.0.12.11 (#2237)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFixed import error when exceptiongroup isn't available (#2231)
Alex Grönholm [Fri, 25 Aug 2023 18:29:44 +0000 (21:29 +0300)] 
Fixed import error when exceptiongroup isn't available (#2231)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
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>