]>
git.ipfire.org Git - thirdparty/starlette.git/log
Adrian Garcia Badaracco [Mon, 3 Oct 2022 14:32:50 +0000 (09:32 -0500)]
Merge branch 'master' into fm/http-middleware
dependabot[bot] [Mon, 3 Oct 2022 09:38:02 +0000 (11:38 +0200)]
Bump mkdocs-material from 8.4.2 to 8.5.5 (#1883)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
dependabot[bot] [Sat, 1 Oct 2022 19:19:03 +0000 (21:19 +0200)]
Bump types-pyyaml from 6.0.11 to 6.0.12 (#1884)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sat, 1 Oct 2022 19:09:13 +0000 (21:09 +0200)]
Bump pytest from 7.1.2 to 7.1.3 (#1880)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sat, 1 Oct 2022 19:05:29 +0000 (21:05 +0200)]
Bump mkautodoc from 0.1.0 to 0.2.0 (#1881)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Marcelo Trylesinski [Thu, 29 Sep 2022 15:10:51 +0000 (17:10 +0200)]
Add project URLs to `pyproject.toml` (#1875)
Marcelo Trylesinski [Wed, 28 Sep 2022 06:14:05 +0000 (08:14 +0200)]
Remove note about `BackgroundTasks` being a limitation on the `BaseHTTPMiddleware` (#1874)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
TheOnlyWayUp [Tue, 27 Sep 2022 17:30:06 +0000 (13:30 -0400)]
Add missing import on `HTTPSRedirectMiddleware` docs section (#1873)
Marcelo Trylesinski [Mon, 26 Sep 2022 17:09:36 +0000 (18:09 +0100)]
Version 0.21.0 (#1812)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Jean Hominal [Sat, 24 Sep 2022 05:29:08 +0000 (07:29 +0200)]
Replace task cancellation in `BaseHTTPMiddleware` with `http.disconnect`+`recv_stream.close` (#1715)
* replace BaseMiddleware cancellation after request send with closing recv_stream + http.disconnect in receive
fixes #1438
* Add no cover pragma on pytest.fail in tests/middleware/test_base.py
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
* make http_disconnect_while_sending test more robust in the face of scheduling issues
* Fix issue with running middleware context manager
Reported in https://github.com/encode/starlette/issues/1678#issuecomment-
1172916042
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Alex Oleshkevich [Fri, 23 Sep 2022 12:54:55 +0000 (15:54 +0300)]
Implement __repr__ for route classes (#1864)
* implement __repr__ for Route
* implemenr __repr__ for WebSocketRoute, Host, and Mount.
* fix linting issues
* change repr format
* force repr() for inner apps
* Update starlette/routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* fix linting issues and tests
* remove repr from Router
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Thu, 22 Sep 2022 15:18:44 +0000 (17:18 +0200)]
Add official support for Python 3.11 (#1863)
Adrian Garcia Badaracco [Wed, 21 Sep 2022 19:02:41 +0000 (14:02 -0500)]
Add Mount(..., middleware=[...]) (#1649)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Aber <me@abersheeran.com>
Jocelin Hounon [Thu, 8 Sep 2022 05:06:23 +0000 (06:06 +0100)]
Add `Starlette-Admin` to third party package section (#1853)
Marcelo Trylesinski [Tue, 6 Sep 2022 05:43:32 +0000 (07:43 +0200)]
Replace HTTP client on TestClient from `requests` to `httpx` (#1376)
Marcelo Trylesinski [Tue, 6 Sep 2022 04:46:00 +0000 (06:46 +0200)]
Remove reference to `DatabaseMiddleware` in the documentation (#1845)
Marcelo Trylesinski [Mon, 5 Sep 2022 12:31:59 +0000 (14:31 +0200)]
Add `WebSocketException` and support for WS handlers (#1263)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Marcelo Trylesinski [Mon, 5 Sep 2022 06:35:52 +0000 (08:35 +0200)]
Add missing `Middleware` import on `BaseHTTPMiddleware` section (#1844)
Marcelo Trylesinski [Fri, 2 Sep 2022 06:03:17 +0000 (08:03 +0200)]
Add fake setup.py (#1836)
dependabot[bot] [Thu, 1 Sep 2022 19:59:38 +0000 (21:59 +0200)]
Bump databases[sqlite] from 0.5.5 to 0.6.1 (#1842)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Thu, 1 Sep 2022 19:22:16 +0000 (21:22 +0200)]
Bump autoflake from 1.4 to 1.5.3 (#1839)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Thu, 1 Sep 2022 19:14:47 +0000 (21:14 +0200)]
Bump black from 22.6.0 to 22.8.0 (#1841)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Thu, 1 Sep 2022 19:10:26 +0000 (21:10 +0200)]
Bump mkdocs-material from 8.3.9 to 8.4.2 (#1838)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Ofek Lev [Wed, 24 Aug 2022 05:50:13 +0000 (01:50 -0400)]
Update package metadata (#1819)
Adrian Garcia Badaracco [Sun, 14 Aug 2022 10:39:02 +0000 (05:39 -0500)]
Remove unecessary override of Headers.get (#1810)
Alex Oleshkevich [Wed, 10 Aug 2022 10:05:00 +0000 (13:05 +0300)]
Add Starception library (#1800)
Co-authored-by: euri10 <benoit.barthelet@gmail.com>
Florimond Manca [Tue, 9 Aug 2022 10:08:52 +0000 (12:08 +0200)]
Improve wording and structure of pure ASGI middleware docs (#1723)
* Improve wording and structure of pure ASGI middleware docs
* Address feedback
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Sat, 6 Aug 2022 21:46:06 +0000 (23:46 +0200)]
Update requests.md (#1792)
dependabot[bot] [Tue, 2 Aug 2022 06:18:00 +0000 (08:18 +0200)]
Bump types-pyyaml from 6.0.4 to 6.0.11 (#1782)
Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.4 to 6.0.11.
- [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>
dependabot[bot] [Tue, 2 Aug 2022 05:54:45 +0000 (07:54 +0200)]
Bump mypy from 0.961 to 0.971 (#1786)
Bumps [mypy](https://github.com/python/mypy) from 0.961 to 0.971.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.961...v0.971)
---
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>
dependabot[bot] [Tue, 2 Aug 2022 05:51:14 +0000 (07:51 +0200)]
Bump mkdocs from 1.3.0 to 1.3.1 (#1783)
Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.3.0...1.3.1)
---
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>
Sebastián Ramírez [Thu, 14 Jul 2022 12:31:03 +0000 (14:31 +0200)]
✏️ Fix small typo in template for a new PR, pointing to HTTPX (#1766)
Adrian Garcia Badaracco [Wed, 13 Jul 2022 04:29:57 +0000 (23:29 -0500)]
remove reference to add_middleware (#1763)
dependabot[bot] [Tue, 12 Jul 2022 17:39:44 +0000 (12:39 -0500)]
Bump mkdocs-material from 8.3.8 to 8.3.9 (#1759)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.3.8 to 8.3.9.
- [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/8.3.8...8.3.9)
---
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>
dependabot[bot] [Tue, 12 Jul 2022 17:35:46 +0000 (19:35 +0200)]
Bump coverage from 6.4.1 to 6.4.2 (#1761)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.1 to 6.4.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/6.4.1...6.4.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>
dependabot[bot] [Tue, 12 Jul 2022 17:31:56 +0000 (19:31 +0200)]
Bump typing-extensions from 4.2.0 to 4.3.0 (#1760)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.2.0 to 4.3.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.2.0...4.3.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>
dependabot[bot] [Tue, 12 Jul 2022 17:27:35 +0000 (19:27 +0200)]
Bump twine from 4.0.0 to 4.0.1 (#1757)
Bumps [twine](https://github.com/pypa/twine) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/4.0.0...4.0.1)
---
updated-dependencies:
- dependency-name: twine
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>
dependabot[bot] [Tue, 12 Jul 2022 16:51:56 +0000 (18:51 +0200)]
Bump black from 22.3.0 to 22.6.0 (#1758)
Bumps [black](https://github.com/psf/black) from 22.3.0 to 22.6.0.
- [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/22.3.0...22.6.0)
---
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>
Marcelo Trylesinski [Tue, 12 Jul 2022 16:42:50 +0000 (18:42 +0200)]
Add GitHub actions to dependabot (#1756)
Marcelo Trylesinski [Tue, 12 Jul 2022 06:10:04 +0000 (08:10 +0200)]
Add Python 3.11 to the pipeline (#1755)
* Add Python 3.11 to the pipeline
* Bump coverage
* Add deprecation ignore
* Add deprecation ignore to certifi
Marcelo Trylesinski [Sun, 10 Jul 2022 13:38:32 +0000 (15:38 +0200)]
Add typing.overload to coverage `exclude_lines` (#1753)
Christopher Dignam [Sun, 10 Jul 2022 13:00:23 +0000 (09:00 -0400)]
type config with `None` default as `str | None` instead of `Any` (#1732)
* fix type annotations for config
* wip
* fix simple case
* wip
* isort
* remove mypy config change
* fix test
* fix coverage
* use assert_type
* format
* CR
* Update tests/test_config.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Redowan Delowar [Sun, 10 Jul 2022 12:23:40 +0000 (18:23 +0600)]
Explain 'TestClient(app) as client' vs 'client = TestClient(app)' (#1… (#1747)
* Explain 'TestClient(app) as client' vs 'client = TestClient(app)' (#1733)
* Nit (#1733)
* Update docs/testclient.md (#1733)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
* Update docs/testclient.md
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
* Update docs/testclient.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update docs/testclient.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Fri, 8 Jul 2022 06:07:50 +0000 (08:07 +0200)]
Add script to make sure CHANGELOG is always in sync with `__version__` (#1714)
* Add script to make sure CHANGELOG is always in sync with `__version__`
* Move script from lint to check
* Update scripts/lint
* Test to see if pipeline fails
* Fix pipeline
Adrian Garcia Badaracco [Wed, 6 Jul 2022 16:43:04 +0000 (11:43 -0500)]
Document using httpx for async tests (#1728)
Thomas Grainger [Tue, 5 Jul 2022 17:30:31 +0000 (18:30 +0100)]
restore tmp_path mode after test (#1736)
Jean Hominal [Sat, 2 Jul 2022 18:11:46 +0000 (20:11 +0200)]
Test StreamingResponse behavior on receiving http.disconnect (#1727)
dependabot[bot] [Fri, 1 Jul 2022 20:07:16 +0000 (22:07 +0200)]
Bump types-dataclasses from 0.6.5 to 0.6.6 (#1719)
Bumps [types-dataclasses](https://github.com/python/typeshed) from 0.6.5 to 0.6.6.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)
---
updated-dependencies:
- dependency-name: types-dataclasses
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>
dependabot[bot] [Fri, 1 Jul 2022 20:01:17 +0000 (22:01 +0200)]
Bump types-contextvars from 2.4.6 to 2.4.7 (#1722)
Bumps [types-contextvars](https://github.com/python/typeshed) from 2.4.6 to 2.4.7.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)
---
updated-dependencies:
- dependency-name: types-contextvars
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>
dependabot[bot] [Fri, 1 Jul 2022 19:55:22 +0000 (21:55 +0200)]
Bump trio from 0.19.0 to 0.21.0 (#1718)
Bumps [trio](https://github.com/python-trio/trio) from 0.19.0 to 0.21.0.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.19.0...v0.21.0)
---
updated-dependencies:
- dependency-name: trio
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: Marcelo Trylesinski <marcelotryle@gmail.com>
dependabot[bot] [Fri, 1 Jul 2022 19:52:10 +0000 (21:52 +0200)]
Bump mkdocs-material from 8.2.8 to 8.3.8 (#1720)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.2.8 to 8.3.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/8.2.8...8.3.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>
dependabot[bot] [Fri, 1 Jul 2022 19:12:52 +0000 (21:12 +0200)]
Bump mypy from 0.960 to 0.961 (#1721)
Bumps [mypy](https://github.com/python/mypy) from 0.960 to 0.961.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.960...v0.961)
---
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>
Adrian Garcia Badaracco [Thu, 30 Jun 2022 23:56:28 +0000 (16:56 -0700)]
Reword bug -> limitation for BaseHTTPMiddleware (#1716)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Thu, 30 Jun 2022 18:38:43 +0000 (20:38 +0200)]
Document how to create ASGI middlewares (#1656)
* Document how to create ASGI middlewares
* Fix typo
* Add more documentation on how to create pure ASGI middlewares
* Apply suggestions from code review
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
* Apply suggestions from code review
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
* remove empty spaces
* Add asgiref hyperlink
* Fix per-request section
* Fix scope info
* Remove example section
* Update docs/middleware.md
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
* Update docs/middleware.md
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
* Apply suggestions from code review
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
* Update docs/middleware.md
Co-authored-by: Jean Hominal <jhominal@gmail.com>
* Apply suggestions from code review
* fix typo
* Apply suggestions from code review
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
* Apply suggestions from code review
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
* Apply suggestions from code review
* Update docs/middleware.md
* Add reference to Starlette components
* Add `MutableHeaders` import
* Fix typos from suggestions
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Jean Hominal <jhominal@gmail.com>
Adrian Garcia Badaracco [Wed, 29 Jun 2022 19:44:27 +0000 (12:44 -0700)]
fix type annotations in requests.py (#1712)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Tue, 28 Jun 2022 11:23:55 +0000 (13:23 +0200)]
Fix __version__ (#1713)
Marcelo Trylesinski [Tue, 28 Jun 2022 06:27:29 +0000 (08:27 +0200)]
Version 0.20.4 (#1709)
* Version 0.20.4
* Update docs/release-notes.md
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Adrian Garcia Badaracco [Tue, 28 Jun 2022 05:32:41 +0000 (22:32 -0700)]
fix type annotations in responses.py (#1711)
Marcelo Trylesinski [Tue, 28 Jun 2022 05:23:27 +0000 (07:23 +0200)]
Remove converter from path when generating `OpenAPI` schema (#1648)
* Remove converter from path when generating `OpenAPI` schema
* Update starlette/schemas.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
memsuser [Mon, 27 Jun 2022 04:56:00 +0000 (23:56 -0500)]
Add notes on "filename" form-data field (#1704)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Adrian Garcia Badaracco [Sun, 26 Jun 2022 21:00:08 +0000 (14:00 -0700)]
add type annotations to StreamingResponse (#1708)
Adrian Garcia Badaracco [Mon, 20 Jun 2022 01:45:45 +0000 (18:45 -0700)]
Merge branch 'master' into fm/http-middleware
Amin Alaee [Sat, 18 Jun 2022 16:34:13 +0000 (18:34 +0200)]
Add contributing docs (#1686)
* Add contributing docs
* Add screenshots
* Update docs/contributing.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Ruslan Ilyasovich Gilfanov [Fri, 17 Jun 2022 15:36:27 +0000 (20:36 +0500)]
Fix doc links to English (#1698)
Aber [Thu, 16 Jun 2022 18:37:43 +0000 (02:37 +0800)]
Add baize.asgi.FileResponse to docs (#1696)
florimondmanca [Wed, 15 Jun 2022 21:51:52 +0000 (23:51 +0200)]
Attempt controlling response attrs
florimondmanca [Wed, 15 Jun 2022 20:37:50 +0000 (22:37 +0200)]
Address
Adrian Garcia Badaracco [Wed, 15 Jun 2022 18:38:43 +0000 (13:38 -0500)]
Merge branch 'master' into fm/http-middleware
Amin Alaee [Wed, 15 Jun 2022 13:47:55 +0000 (15:47 +0200)]
Add more TestClient examples (#1685)
Adrian Garcia Badaracco [Wed, 15 Jun 2022 13:22:18 +0000 (08:22 -0500)]
move test from test_base.py to test_routing.py (#1693)
florimondmanca [Tue, 14 Jun 2022 22:31:58 +0000 (00:31 +0200)]
More fine-tuning
florimondmanca [Tue, 14 Jun 2022 22:24:41 +0000 (00:24 +0200)]
Switch to dispatch(conn) instead of dispatch(scope), coverage
florimondmanca [Tue, 14 Jun 2022 22:06:22 +0000 (00:06 +0200)]
Add missing pragma
florimondmanca [Tue, 14 Jun 2022 21:59:04 +0000 (23:59 +0200)]
Address, refactor
florimondmanca [Tue, 14 Jun 2022 21:29:34 +0000 (23:29 +0200)]
Address feedback
florimondmanca [Tue, 14 Jun 2022 21:21:30 +0000 (23:21 +0200)]
aclosing on py < 3.10
florimondmanca [Tue, 14 Jun 2022 21:04:45 +0000 (23:04 +0200)]
Refactor, lint
florimondmanca [Tue, 14 Jun 2022 20:29:22 +0000 (22:29 +0200)]
Experiment a high-level HTTPMiddleware
Nikita Sobolev [Sat, 11 Jun 2022 06:30:50 +0000 (09:30 +0300)]
Fix `authentication.requires` typing (#1659)
Marcelo Trylesinski [Fri, 10 Jun 2022 05:16:14 +0000 (07:16 +0200)]
Version 0.20.3 (#1682)
Marcelo Trylesinski [Fri, 10 Jun 2022 05:12:12 +0000 (07:12 +0200)]
Revert "Allow staticfiles to follow symlinks outside directory (#1377)" (#1681)
This reverts commit
d3dccdc477652b6de5a7b6b14a2bf3fa2f94be2c .
Amin Alaee [Tue, 7 Jun 2022 20:14:25 +0000 (22:14 +0200)]
Version 0.20.2 (#1658)
* Version 0.20.2
* Update release-notes.md
* Update release-notes.md
* Update docs/release-notes.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update docs/release-notes.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update docs/release-notes.md
* Update docs/release-notes.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Florimond Manca [Sat, 4 Jun 2022 16:14:49 +0000 (18:14 +0200)]
Fix regression on route names with colons (#1675)
Co-authored-by: Bodo Graumann <mail@bodograumann.de>
Marcelo Trylesinski [Thu, 2 Jun 2022 17:19:13 +0000 (19:19 +0200)]
Improve documentation on `BaseHTTPMiddleware` (#1655)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
dependabot[bot] [Wed, 1 Jun 2022 19:26:22 +0000 (21:26 +0200)]
Bump types-contextvars from 2.4.5 to 2.4.6 (#1668)
Bumps [types-contextvars](https://github.com/python/typeshed) from 2.4.5 to 2.4.6.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)
---
updated-dependencies:
- dependency-name: types-contextvars
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>
dependabot[bot] [Wed, 1 Jun 2022 19:23:36 +0000 (21:23 +0200)]
Bump mypy from 0.950 to 0.960 (#1667)
Bumps [mypy](https://github.com/python/mypy) from 0.950 to 0.960.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.950...v0.960)
---
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>
Amin Alaee [Sat, 28 May 2022 14:17:54 +0000 (16:17 +0200)]
Allow staticfiles to follow symlinks outside directory (#1377)
Marcelo Trylesinski [Sat, 28 May 2022 07:58:34 +0000 (09:58 +0200)]
Version 0.20.1 (#1644)
* Version 0.20.1
* Update docs/release-notes.md
* Update release-notes.md
* Update release-notes.md
* Update release-notes.md
Marcelo Trylesinski [Sat, 28 May 2022 07:28:58 +0000 (09:28 +0200)]
Improve detection of async callables (#1444)
* Improve detection of coroutine functions
* Remove test from background tasks
* Fix coverage
* Add test for nested functools
* Ignore coverage
* Deprecate iscoroutinefunction_or_partial
* Ignore coverage for iscoroutinefunction_or_partial
* Rename `iscoroutinefunction` to `is_async_callable`
Adrian Garcia Badaracco [Thu, 26 May 2022 19:33:40 +0000 (12:33 -0700)]
Add generic type parameters to FormData (#1651)
* Add generic type parameters to FormData
* fix tests
Simon Willison [Wed, 25 May 2022 17:15:47 +0000 (10:15 -0700)]
Spelling: independant -> independent (#1653)
Adrian Garcia Badaracco [Tue, 24 May 2022 15:02:27 +0000 (10:02 -0500)]
add generics type parameters to ImmutableMultiDict (#1449)
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Marcelo Trylesinski [Tue, 24 May 2022 05:46:19 +0000 (07:46 +0200)]
Add missing commas on `schemas.md` (#1647)
Marcelo Trylesinski [Tue, 24 May 2022 05:31:57 +0000 (07:31 +0200)]
Raise `MultiPartException` when missing "name" field on `Content-Disposition` header (#1643)
Marcelo Trylesinski [Sun, 22 May 2022 18:06:47 +0000 (20:06 +0200)]
Document `BaseHTTPMiddleware` bugs (#1640)
* Document `BaseHTTPMiddleware` bugs
* Apply suggestions from code review
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
jockerz [Thu, 19 May 2022 18:53:17 +0000 (01:53 +0700)]
Add third party package Startlette-Login (#1638)
Co-authored-by: user <user@localhost.localdomain>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Thu, 19 May 2022 18:33:03 +0000 (20:33 +0200)]
Add 400 response when `boundary` is missing (#1617)
* Add 400 response on MultiParser exceptions
* Add 400 response on MultiParser exceptions [2]
* Add tests and remove name from here
* Remove args from exception
* Move `ExceptionMiddleware` to `starlette.middleware.exceptions`
* add test for deprecation shim
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Marcelo Trylesinski [Tue, 17 May 2022 09:36:34 +0000 (11:36 +0200)]
Document `status_code` parameter on `requires` when using WebSockets (#1636)
Marcelo Trylesinski [Mon, 9 May 2022 18:44:42 +0000 (20:44 +0200)]
Document unsuported `params` on `TestClient.websocket_connect` (#1630)
Marcelo Trylesinski [Fri, 6 May 2022 06:03:16 +0000 (08:03 +0200)]
Do not send empty data to `StreamingResponse` on `BaseHTTPMiddleware` (#1609)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>