]>
git.ipfire.org Git - thirdparty/starlette.git/log
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)
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)
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)
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>
Robert Coup [Thu, 5 May 2022 22:01:28 +0000 (23:01 +0100)]
Secret: add a __bool__ implementation (#1625)
Allows using `if settings.A_SECRET:` to check for empty/None without needing to
cast it to a str.
Marcelo Trylesinski [Thu, 5 May 2022 09:04:10 +0000 (11:04 +0200)]
Skip test when brotli is installed (#1620)
* Skip test when brotli is installed
* A better reason message
Marcelo Trylesinski [Tue, 3 May 2022 17:52:59 +0000 (19:52 +0200)]
Remove old warning filters (#1621)
* Remove old warning filters
* Add collections.abc
Marcelo Trylesinski [Tue, 3 May 2022 05:32:27 +0000 (07:32 +0200)]
Version 0.20.0 (#1600)
* Version 0.20.0
* Add the __version__
* Update docs/release-notes.md
* Update release-notes.md
* Update docs/release-notes.md
dependabot[bot] [Tue, 3 May 2022 05:16:44 +0000 (07:16 +0200)]
Bump twine from 3.8.0 to 4.0.0 (#1615)
Bumps [twine](https://github.com/pypa/twine) from 3.8.0 to 4.0.0.
- [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/3.8.0...4.0.0)
---
updated-dependencies:
- dependency-name: twine
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>
Hugo van Kemenade [Sun, 1 May 2022 20:03:41 +0000 (23:03 +0300)]
Remove compat code for Python < 3.7 (#1616)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
dependabot[bot] [Sun, 1 May 2022 19:25:32 +0000 (21:25 +0200)]
Bump types-contextvars from 2.4.2 to 2.4.5 (#1611)
Bumps [types-contextvars](https://github.com/python/typeshed) from 2.4.2 to 2.4.5.
- [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] [Sun, 1 May 2022 19:22:37 +0000 (21:22 +0200)]
Bump types-dataclasses from 0.6.2 to 0.6.5 (#1613)
Bumps [types-dataclasses](https://github.com/python/typeshed) from 0.6.2 to 0.6.5.
- [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] [Sun, 1 May 2022 19:15:36 +0000 (21:15 +0200)]
Bump pytest from 7.0.1 to 7.1.2 (#1614)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.1 to 7.1.2.
- [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.0.1...7.1.2)
---
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>
Marcelo Trylesinski [Sat, 30 Apr 2022 05:35:40 +0000 (07:35 +0200)]
Bump mypy from 0.942 to 0.950 (#1607)
Marcelo Trylesinski [Tue, 26 Apr 2022 15:13:12 +0000 (17:13 +0200)]
Annotate `samesite` parameter on `set_cookie` (#1590)
* Annotate `samesite` parameter on `set_cookie`
* Add version conditional
* Add pragma
Marcelo Trylesinski [Sun, 24 Apr 2022 06:17:07 +0000 (08:17 +0200)]
Document `BackgroundTasks` behavior when an error happens (#1605)
* Document `BackgroundTasks` behavior when an error happens
* Document `BackgroundTasks` behavior when an error happens
Adrian Garcia Badaracco [Sun, 24 Apr 2022 04:48:50 +0000 (23:48 -0500)]
Document interaction of BaseHTTPMiddleware and contextvars (#1525)
* test: document behavior of ContextVars with BaseHTTPMiddleware
* lint & fix
* add pragma
* Update test_base.py
* Update tests/middleware/test_base.py
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* fix typo
* try to make comment clearer
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Fri, 22 Apr 2022 05:47:28 +0000 (07:47 +0200)]
Drop Python 3.6 support (#1357)
* Remove Python 3.6
* Update setup.py
* Add note about Python 3.6 version
* Remove unused import
* Remove PEP 562
* Apply suggestions from code review
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Marcelo Trylesinski [Fri, 22 Apr 2022 05:26:15 +0000 (07:26 +0200)]
Version 0.19.1 (#1591)
* Version 0.19.1
* Apply suggestions from code review
* Update docs/release-notes.md
* Update docs/release-notes.md
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Marcelo Trylesinski [Fri, 22 Apr 2022 04:55:10 +0000 (06:55 +0200)]
Deprecate `WS_1004_NO_STATUS_RCVD` and `WS_1005_ABNORMAL_CLOSURE` (#1580)
* Deprecate `WS_1004_NO_STATUS_RCVD` and `WS_1005_ABNORMAL_CLOSURE`
* Fix linter
* Fix coverage
Marcelo Trylesinski [Thu, 21 Apr 2022 20:12:27 +0000 (22:12 +0200)]
Add `typing.Optional` on missing annotations (#1549)
* Add `typing.Optional` on missing annotations
* Add `no_implicit_optional` on mypy settings
Felix Fanghaenel [Fri, 8 Apr 2022 18:53:17 +0000 (20:53 +0200)]
Apply right name to `Route` when created from methods (#1553)
* add support to read route names from methods
* simplify implementation
* add tests for automatic route naming
* simplify tests
* Apply suggestions from code review
* Update tests/test_routing.py
* format with black
* Apply suggestions from code review
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Marcelo Trylesinski [Wed, 6 Apr 2022 07:01:07 +0000 (09:01 +0200)]
Avoid `TypeError` on `websocket.disconnect` when `code` is `None` (#1574)
Co-authored-by: Aber <Chen_Ye@ahnu.edu.cn>
dependabot[bot] [Sat, 2 Apr 2022 09:54:41 +0000 (11:54 +0200)]
Bump mkdocs-material from 8.1.3 to 8.2.8 (#1564)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.1.3 to 8.2.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.1.3...8.2.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] [Sat, 2 Apr 2022 09:09:13 +0000 (11:09 +0200)]
Bump mkdocs from 1.2.4 to 1.3.0 (#1566)
Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.2.4 to 1.3.0.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.2.4...1.3.0)
---
updated-dependencies:
- dependency-name: mkdocs
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 [Sat, 2 Apr 2022 09:03:48 +0000 (11:03 +0200)]
Downgrade flake8 from 4.0.1 to 3.9.2 (#1567)
dependabot[bot] [Fri, 1 Apr 2022 21:03:25 +0000 (01:33 +0430)]
Bump mypy from 0.931 to 0.942 (#1563)
Bumps [mypy](https://github.com/python/mypy) from 0.931 to 0.942.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.931...v0.942)
---
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>
Marcelo Trylesinski [Tue, 29 Mar 2022 18:57:22 +0000 (20:57 +0200)]
Bump black to 22.3.0 (#1558)
Adrian Garcia Badaracco [Mon, 28 Mar 2022 04:33:49 +0000 (23:33 -0500)]
add note on type ignore in templating.py (#1556)
* add note on type ignore
* Update templating.py
* Update templating.py
* Update templating.py
Marcelo Trylesinski [Sun, 27 Mar 2022 18:17:26 +0000 (20:17 +0200)]
Ignore mypy issue on `jinja2.contextfunction` function (#1554)
* Ignore mypy issue on jinja2 function
* Add pin on jinja2
* Update requirements.txt
* Update requirements.txt
Marcelo Trylesinski [Wed, 9 Mar 2022 18:43:11 +0000 (19:43 +0100)]
Version 0.19.0 (#1439)
* Version 0.19.0
* Add missing links
* Update release-notes.md
* Update release-notes.md
* Update docs/release-notes.md
* Add PR 1459
* Update docs/release-notes.md
* Update docs/release-notes.md
* Apply suggestions from code review
* Update docs/release-notes.md
* Update release-notes.md
* Update docs/release-notes.md
* Update __init__.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
thomas Eeckhout [Tue, 8 Mar 2022 12:40:21 +0000 (13:40 +0100)]
Update third-party-packages.md (#1540)
dependabot[bot] [Tue, 1 Mar 2022 19:49:36 +0000 (20:49 +0100)]
Bump databases[sqlite] from 0.5.3 to 0.5.5 (#1530)
Bumps [databases[sqlite]](https://github.com/encode/databases) from 0.5.3 to 0.5.5.
- [Release notes](https://github.com/encode/databases/releases)
- [Changelog](https://github.com/encode/databases/blob/0.5.5/CHANGELOG.md)
- [Commits](https://github.com/encode/databases/compare/0.5.3...0.5.5)
---
updated-dependencies:
- dependency-name: databases[sqlite]
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, 1 Mar 2022 19:47:10 +0000 (20:47 +0100)]
Bump twine from 3.7.1 to 3.8.0 (#1532)
Bumps [twine](https://github.com/pypa/twine) from 3.7.1 to 3.8.0.
- [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/3.7.1...3.8.0)
---
updated-dependencies:
- dependency-name: twine
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, 1 Mar 2022 19:43:58 +0000 (20:43 +0100)]
Bump pytest from 6.2.5 to 7.0.1 (#1529)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.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/6.2.5...7.0.1)
---
updated-dependencies:
- dependency-name: pytest
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>
WuMingyu [Tue, 22 Feb 2022 10:37:10 +0000 (18:37 +0800)]
Add apiman to third-party-packages document (#1526)
* Add apiman to third-party-packages
* Update docs/third-party-packages.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Erik [Wed, 16 Feb 2022 11:19:08 +0000 (03:19 -0800)]
First pass adding next qparam to redirect (#920)
Co-authored-by: Tom Christie <tom@tomchristie.com>