]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
3 years agoAdd notes on "filename" form-data field (#1704)
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>
3 years agoadd type annotations to StreamingResponse (#1708)
Adrian Garcia Badaracco [Sun, 26 Jun 2022 21:00:08 +0000 (14:00 -0700)] 
add type annotations to StreamingResponse (#1708)

3 years agoAdd contributing docs (#1686)
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>
3 years agoFix doc links to English (#1698)
Ruslan Ilyasovich Gilfanov [Fri, 17 Jun 2022 15:36:27 +0000 (20:36 +0500)] 
Fix doc links to English (#1698)

3 years agoAdd baize.asgi.FileResponse to docs (#1696)
Aber [Thu, 16 Jun 2022 18:37:43 +0000 (02:37 +0800)] 
Add baize.asgi.FileResponse to docs (#1696)

3 years agoAdd more TestClient examples (#1685)
Amin Alaee [Wed, 15 Jun 2022 13:47:55 +0000 (15:47 +0200)] 
Add more TestClient examples (#1685)

3 years agomove test from test_base.py to test_routing.py (#1693)
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)

3 years agoFix `authentication.requires` typing (#1659)
Nikita Sobolev [Sat, 11 Jun 2022 06:30:50 +0000 (09:30 +0300)] 
Fix `authentication.requires` typing (#1659)

3 years agoVersion 0.20.3 (#1682) 0.20.3
Marcelo Trylesinski [Fri, 10 Jun 2022 05:16:14 +0000 (07:16 +0200)] 
Version 0.20.3 (#1682)

3 years agoRevert "Allow staticfiles to follow symlinks outside directory (#1377)" (#1681)
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.

3 years agoVersion 0.20.2 (#1658) 0.20.2
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>
3 years agoFix regression on route names with colons (#1675)
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>
3 years agoImprove documentation on `BaseHTTPMiddleware` (#1655)
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>
3 years agoBump types-contextvars from 2.4.5 to 2.4.6 (#1668)
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>
3 years agoBump mypy from 0.950 to 0.960 (#1667)
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>
3 years agoAllow staticfiles to follow symlinks outside directory (#1377)
Amin Alaee [Sat, 28 May 2022 14:17:54 +0000 (16:17 +0200)] 
Allow staticfiles to follow symlinks outside directory (#1377)

3 years agoVersion 0.20.1 (#1644) 0.20.1
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

3 years agoImprove detection of async callables (#1444)
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`

3 years agoAdd generic type parameters to FormData (#1651)
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

3 years agoSpelling: independant -> independent (#1653)
Simon Willison [Wed, 25 May 2022 17:15:47 +0000 (10:15 -0700)] 
Spelling: independant -> independent (#1653)

3 years agoadd generics type parameters to ImmutableMultiDict (#1449)
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>
3 years agoAdd missing commas on `schemas.md` (#1647)
Marcelo Trylesinski [Tue, 24 May 2022 05:46:19 +0000 (07:46 +0200)] 
Add missing commas on `schemas.md` (#1647)

3 years agoRaise `MultiPartException` when missing "name" field on `Content-Disposition` header...
Marcelo Trylesinski [Tue, 24 May 2022 05:31:57 +0000 (07:31 +0200)] 
Raise `MultiPartException` when missing "name" field on `Content-Disposition` header (#1643)

3 years agoDocument `BaseHTTPMiddleware` bugs (#1640)
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>
3 years agoAdd third party package Startlette-Login (#1638)
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>
3 years agoAdd 400 response when `boundary` is missing (#1617)
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>
3 years agoDocument `status_code` parameter on `requires` when using WebSockets (#1636)
Marcelo Trylesinski [Tue, 17 May 2022 09:36:34 +0000 (11:36 +0200)] 
Document `status_code` parameter on `requires` when using WebSockets (#1636)

3 years agoDocument unsuported `params` on `TestClient.websocket_connect` (#1630)
Marcelo Trylesinski [Mon, 9 May 2022 18:44:42 +0000 (20:44 +0200)] 
Document unsuported `params` on `TestClient.websocket_connect` (#1630)

3 years agoDo not send empty data to `StreamingResponse` on `BaseHTTPMiddleware` (#1609)
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>
3 years agoSecret: add a __bool__ implementation (#1625)
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.

3 years agoSkip test when brotli is installed (#1620)
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

3 years agoRemove old warning filters (#1621)
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

3 years agoVersion 0.20.0 (#1600) 0.20.0
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

3 years agoBump twine from 3.8.0 to 4.0.0 (#1615)
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>
3 years agoRemove compat code for Python < 3.7 (#1616)
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>
3 years agoBump types-contextvars from 2.4.2 to 2.4.5 (#1611)
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>
3 years agoBump types-dataclasses from 0.6.2 to 0.6.5 (#1613)
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>
3 years agoBump pytest from 7.0.1 to 7.1.2 (#1614)
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>
3 years agoBump mypy from 0.942 to 0.950 (#1607)
Marcelo Trylesinski [Sat, 30 Apr 2022 05:35:40 +0000 (07:35 +0200)] 
Bump mypy from 0.942 to 0.950 (#1607)

3 years agoAnnotate `samesite` parameter on `set_cookie` (#1590)
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

3 years agoDocument `BackgroundTasks` behavior when an error happens (#1605)
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

3 years agoDocument interaction of BaseHTTPMiddleware and contextvars (#1525)
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>
3 years agoDrop Python 3.6 support (#1357)
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>
3 years agoVersion 0.19.1 (#1591) 0.19.1
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>
3 years agoDeprecate `WS_1004_NO_STATUS_RCVD` and `WS_1005_ABNORMAL_CLOSURE` (#1580)
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

3 years agoAdd `typing.Optional` on missing annotations (#1549)
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

3 years agoApply right name to `Route` when created from methods (#1553)
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>
3 years agoAvoid `TypeError` on `websocket.disconnect` when `code` is `None` (#1574)
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>
3 years agoBump mkdocs-material from 8.1.3 to 8.2.8 (#1564)
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>
3 years agoBump mkdocs from 1.2.4 to 1.3.0 (#1566)
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>
3 years agoDowngrade flake8 from 4.0.1 to 3.9.2 (#1567)
Marcelo Trylesinski [Sat, 2 Apr 2022 09:03:48 +0000 (11:03 +0200)] 
Downgrade flake8 from 4.0.1 to 3.9.2 (#1567)

3 years agoBump mypy from 0.931 to 0.942 (#1563)
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>
3 years agoBump black to 22.3.0 (#1558)
Marcelo Trylesinski [Tue, 29 Mar 2022 18:57:22 +0000 (20:57 +0200)] 
Bump black to 22.3.0 (#1558)

3 years agoadd note on type ignore in templating.py (#1556)
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

3 years agoIgnore mypy issue on `jinja2.contextfunction` function (#1554)
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

3 years agoVersion 0.19.0 (#1439) 0.19.0
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>
3 years agoUpdate third-party-packages.md (#1540)
thomas Eeckhout [Tue, 8 Mar 2022 12:40:21 +0000 (13:40 +0100)] 
Update third-party-packages.md (#1540)

3 years agoBump databases[sqlite] from 0.5.3 to 0.5.5 (#1530)
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>
3 years agoBump twine from 3.7.1 to 3.8.0 (#1532)
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>
3 years agoBump pytest from 6.2.5 to 7.0.1 (#1529)
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>
3 years agoAdd apiman to third-party-packages document (#1526)
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>
3 years agoFirst pass adding next qparam to redirect (#920)
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>
3 years agoAdd union operators to MutableHeaders (#1240)
manlix [Wed, 16 Feb 2022 10:58:56 +0000 (13:58 +0300)] 
Add union operators to MutableHeaders (#1240)

* Add union operators to MutableHeaders (#1239)

* Apply suggestions from code review

* Use `TypeError`, not `NotImplemented`.
* Add `# type: ignore` to deliberate incorrect usage of types in tests.

* Apply suggestions from code review

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoAdd PR template (#1442)
Marcelo Trylesinski [Tue, 15 Feb 2022 09:29:27 +0000 (06:29 -0300)] 
Add PR template (#1442)

* Add PR template

* Update pull_request_template.md

* Update .github/pull_request_template.md

* Update pull_request_template.md

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoAdd content disposition type parameter to FileResponse (#1266)
qu1ck [Mon, 14 Feb 2022 16:08:28 +0000 (08:08 -0800)] 
Add content disposition type parameter to FileResponse (#1266)

disposition "attachment" causes browsers to download
the file. E.g. "inline" will will be attempted to be
displayed directly.

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDisplay missing route details. (#1363)
Alex Oleshkevich [Mon, 14 Feb 2022 15:57:19 +0000 (18:57 +0300)] 
Display missing route details. (#1363)

* Display missing route details.

* Fix formatting.

* Display only path params keys in NoMatchFound error.

* Fix linting issues.

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDeprecate run_until_first_complete (#1443)
Marcelo Trylesinski [Mon, 14 Feb 2022 15:41:58 +0000 (12:41 -0300)] 
Deprecate run_until_first_complete (#1443)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoSessionMiddleware uses an explicit path=..., instead of defaulting to the ASGI 'root_...
Tom Christie [Mon, 14 Feb 2022 15:05:14 +0000 (15:05 +0000)] 
SessionMiddleware uses an explicit path=..., instead of defaulting to the ASGI 'root_path'. (#1512)

3 years agoDeprecate `WSGIMiddleware` in favor of `a2wsgi` (#1504)
Marcelo Trylesinski [Fri, 11 Feb 2022 16:40:34 +0000 (13:40 -0300)] 
Deprecate `WSGIMiddleware` in favor of `a2wsgi` (#1504)

3 years agoSwitch to a discussion-first workflow (#1507)
Tom Christie [Fri, 11 Feb 2022 14:47:44 +0000 (14:47 +0000)] 
Switch to a discussion-first workflow (#1507)

3 years agoremove deprecated decorator from test_staticfiles.py (#1505)
Adrian Garcia Badaracco [Fri, 11 Feb 2022 08:58:42 +0000 (02:58 -0600)] 
remove deprecated decorator from test_staticfiles.py (#1505)

3 years agoRemove deprecated decorators from test_base (#1493)
Adrian Garcia Badaracco [Thu, 10 Feb 2022 17:36:24 +0000 (11:36 -0600)] 
Remove deprecated decorators from test_base (#1493)

* remove deprecated routing and middleware decorators from test_base.py

* remove deprecated routing and middleware decorators from test_base.py

* remove test_middleware_decorator test

* Update tests/middleware/test_base.py

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
* add pragma: nocovers

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
3 years agoRemove routing decorators in test_schemas.py (#1500)
Amin Alaee [Thu, 10 Feb 2022 11:51:13 +0000 (12:51 +0100)] 
Remove routing decorators in test_schemas.py (#1500)

3 years agoRemove routing decorators in `test_testclient.py` (#1502)
Amin Alaee [Thu, 10 Feb 2022 11:44:36 +0000 (12:44 +0100)] 
Remove routing decorators in `test_testclient.py` (#1502)

* Remove routing decorators in test_testclient.py

* Remove routing decorators in test_testclient.py

* fix lint

3 years agoRemove routing decorators in test_templates.py (#1501)
Amin Alaee [Thu, 10 Feb 2022 11:25:28 +0000 (12:25 +0100)] 
Remove routing decorators in test_templates.py (#1501)

3 years agoRemove routing decorators in `test_application.py` (#1489)
Amin Alaee [Thu, 10 Feb 2022 10:37:04 +0000 (11:37 +0100)] 
Remove routing decorators in `test_application.py` (#1489)

* Remove routing decorators in test_application.py

* Remove routing decorators in test_application.py

* Remove deprecated API usage in test_application.py

* Update starlette/applications.py

* revert debug property setter change

* Remove routing decorators in test_application.py

* Remove deprecated API usage in test_application.py

* Update starlette/applications.py

* revert debug property setter change

* add pragma nocover

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoremove deprecated routing and middleware decorators from test_authentication.py ...
Adrian Garcia Badaracco [Thu, 10 Feb 2022 10:22:46 +0000 (04:22 -0600)] 
remove deprecated routing and middleware decorators from test_authentication.py (#1492)

3 years agoRemove routing decorators in test_trusted_hosts.py (#1494)
Amin Alaee [Thu, 10 Feb 2022 09:31:49 +0000 (10:31 +0100)] 
Remove routing decorators in test_trusted_hosts.py (#1494)

3 years agoRemove routing decorators in test_session.py (#1495)
Amin Alaee [Thu, 10 Feb 2022 09:29:31 +0000 (10:29 +0100)] 
Remove routing decorators in test_session.py (#1495)

3 years agoRemove routing decorators in test_cors.py (#1498)
Amin Alaee [Thu, 10 Feb 2022 09:27:30 +0000 (10:27 +0100)] 
Remove routing decorators in test_cors.py (#1498)

3 years agoRemove routing decorators in test_gzip.py (#1497)
Amin Alaee [Thu, 10 Feb 2022 09:25:00 +0000 (10:25 +0100)] 
Remove routing decorators in test_gzip.py (#1497)

3 years agoRemove routing decorators in test_https_redirect.py (#1496)
Amin Alaee [Thu, 10 Feb 2022 09:22:54 +0000 (10:22 +0100)] 
Remove routing decorators in test_https_redirect.py (#1496)

3 years agoadd Xpresso to third party packages (#1491)
Adrian Garcia Badaracco [Wed, 9 Feb 2022 16:10:08 +0000 (10:10 -0600)] 
add Xpresso to third party packages (#1491)

3 years agoBump anyio requirement from 3.x to 3.x, 4.x (#1460)
Marcelo Trylesinski [Wed, 9 Feb 2022 14:14:22 +0000 (15:14 +0100)] 
Bump anyio requirement from 3.x to 3.x, 4.x (#1460)

* Bump anyio from 3.x to 4.0

* Update setup.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoRemove routing decorators in `middleware/test_base.py` (#1488)
Amin Alaee [Wed, 9 Feb 2022 13:59:10 +0000 (14:59 +0100)] 
Remove routing decorators in `middleware/test_base.py` (#1488)

* Remove routing decorators in

* Update test_base.py middleware

3 years agoRemove routing decorators in `test_routing.py` (#1485)
Amin Alaee [Wed, 9 Feb 2022 13:55:56 +0000 (14:55 +0100)] 
Remove routing decorators in `test_routing.py` (#1485)

* Remove routing decorators in test_routing.py

* Remove routing decorators in test_routing.py

* remove comment

* update routing tests

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoAdd docstrings to discourage routing decorator style API (#1486)
Amin Alaee [Wed, 9 Feb 2022 13:46:58 +0000 (14:46 +0100)] 
Add docstrings to discourage routing decorator style API (#1486)

* Add docstrings for decorator style API

* add nocover

* revert old comment

* update docstrings

* lint

* Update starlette/routing.py

* Update applications.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoAdded links to Dark Star (#1487)
Felix Ingram [Wed, 9 Feb 2022 10:52:03 +0000 (10:52 +0000)] 
Added links to Dark Star (#1487)

3 years agoRemove routing decorators in test_authentication.py (#1482)
Amin Alaee [Wed, 9 Feb 2022 09:29:36 +0000 (10:29 +0100)] 
Remove routing decorators in test_authentication.py (#1482)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoRemove routing decorators in test_databases.py (#1483)
Amin Alaee [Wed, 9 Feb 2022 09:15:50 +0000 (10:15 +0100)] 
Remove routing decorators in test_databases.py (#1483)

3 years agoFix a typo in templates documentation (minor) (#1484)
David Larlet [Wed, 9 Feb 2022 09:02:30 +0000 (04:02 -0500)] 
Fix a typo in templates documentation (minor) (#1484)

3 years agoUpdate document about jinja2 custom filters link (#1480)
chaojie [Tue, 8 Feb 2022 15:19:02 +0000 (23:19 +0800)] 
Update document about jinja2 custom filters link (#1480)

3 years agoAdd overload for cast as Callable in Config.__call__ (#1378)
Petter Friberg [Tue, 8 Feb 2022 10:51:52 +0000 (11:51 +0100)] 
Add overload for cast as Callable in Config.__call__ (#1378)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDocs refresh (#1477)
Tom Christie [Tue, 8 Feb 2022 10:42:04 +0000 (10:42 +0000)] 
Docs refresh (#1477)

* Docs refresh

* Update README.md

* Update docs/index.md

3 years agoConvert ASGI 2.0 apps in tests to ASGI 3 (#1476)
Adrian Garcia Badaracco [Mon, 7 Feb 2022 14:58:30 +0000 (08:58 -0600)] 
Convert ASGI 2.0 apps in tests to ASGI 3 (#1476)

3 years agoRequire typing-extensions>=3.10 (#1475)
Daniel Rasmussen [Mon, 7 Feb 2022 10:15:55 +0000 (06:15 -0400)] 
Require typing-extensions>=3.10 (#1475)

3 years agoReplace WebSocket assertions with RuntimeError (#1472)
Amin Alaee [Fri, 4 Feb 2022 10:51:04 +0000 (11:51 +0100)] 
Replace WebSocket assertions with RuntimeError (#1472)

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
3 years agoRaise KeyError at early stage for missing boundary (#1349)
Антон Касимов [Thu, 3 Feb 2022 11:34:25 +0000 (14:34 +0300)] 
Raise KeyError at early stage for missing boundary (#1349)

* Raise KeyError at early stage for missing boundary

* Linting fix.

* Linting

* Linting

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoBump types-contextvars from 2.4.0 to 2.4.2 (#1467)
dependabot[bot] [Tue, 1 Feb 2022 19:13:13 +0000 (20:13 +0100)] 
Bump types-contextvars from 2.4.0 to 2.4.2 (#1467)

Bumps [types-contextvars](https://github.com/python/typeshed) from 2.4.0 to 2.4.2.
- [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>
3 years agoBump types-pyyaml from 6.0.1 to 6.0.4 (#1469)
dependabot[bot] [Tue, 1 Feb 2022 19:10:19 +0000 (20:10 +0100)] 
Bump types-pyyaml from 6.0.1 to 6.0.4 (#1469)

Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.1 to 6.0.4.
- [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>