Commit Graph

1482 Commits

Author SHA1 Message Date
Marcelo Trylesinski
1f867aaeb0
Add small documentation improvements (#2563) 2025-01-13 13:25:52 +01:00
Marcelo Trylesinski
ae8253f10b
Make CHANGELOG.md a symlink to release-notes.md (#2555) 2025-01-04 10:58:27 +01:00
dependabot[bot]
90f43699c7
Bump the python-packages group with 6 updates (#2549)
* Bump the python-packages group with 6 updates

Bumps the python-packages group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [websockets](https://github.com/python-websockets/websockets) | `13.1` | `14.1` |
| [ruff](https://github.com/astral-sh/ruff) | `0.8.3` | `0.8.4` |
| [mypy](https://github.com/python/mypy) | `1.13.0` | `1.14.1` |
| [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.20240917` | `6.0.12.20241230` |
| [coverage](https://github.com/nedbat/coveragepy) | `7.6.9` | `7.6.10` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.48` | `9.5.49` |


Updates `websockets` from 13.1 to 14.1
- [Release notes](https://github.com/python-websockets/websockets/releases)
- [Commits](https://github.com/python-websockets/websockets/compare/13.1...14.1)

Updates `ruff` from 0.8.3 to 0.8.4
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.8.3...0.8.4)

Updates `mypy` from 1.13.0 to 1.14.1
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.13.0...v1.14.1)

Updates `types-pyyaml` from 6.0.12.20240917 to 6.0.12.20241230
- [Commits](https://github.com/python/typeshed/commits)

Updates `coverage` from 7.6.9 to 7.6.10
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.9...7.6.10)

Updates `mkdocs-material` from 9.5.48 to 9.5.49
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.48...9.5.49)

---
updated-dependencies:
- dependency-name: websockets
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: types-pyyaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

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

* Update requirements.txt

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-01-01 13:00:18 +01:00
Marcelo Trylesinski
80c076404e
Move changelog to release notes (#2550)
* Move changelog to release notes

* cahnge sync version script
2025-01-01 12:59:57 +01:00
Marcelo Trylesinski
be25d3bb3a
docs: replace tools/cli_usage.py by mkdocs plugin (#2551) 2025-01-01 12:55:27 +01:00
Marcelo Trylesinski
7983c1ae9c
Version 0.34.0 (#2546) 2024-12-15 14:31:56 +01:00
Marcelo Trylesinski
75d4402f32
Add alls-green job (#2544) 2024-12-15 12:56:20 +01:00
Marcelo Trylesinski
4156ccb4c9
Drop Python 3.8 (#2543)
* Drop Python 3.8

* Run lint
2024-12-15 12:40:42 +01:00
Marcelo Trylesinski
3575cbaa4e
Add content-length to 500 response in wsproto (#2542) 2024-12-14 23:32:08 +01:00
Marcelo Trylesinski
a500513085
Version 0.33.0 (#2539) 2024-12-14 12:12:52 +01:00
dependabot[bot]
038f8ef3fe
Bump the python-packages group across 1 directory with 9 updates (#2538)
* Bump the python-packages group across 1 directory with 9 updates

Bumps the python-packages group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [websockets](https://github.com/python-websockets/websockets) | `13.1` | `14.1` |
| [twine](https://github.com/pypa/twine) | `5.1.1` | `6.0.1` |
| [ruff](https://github.com/astral-sh/ruff) | `0.7.1` | `0.8.3` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.3.3` | `8.3.4` |
| [trustme](https://github.com/python-trio/trustme) | `1.1.0` | `1.2.0` |
| [cryptography](https://github.com/pyca/cryptography) | `43.0.3` | `44.0.0` |
| [coverage](https://github.com/nedbat/coveragepy) | `7.6.4` | `7.6.9` |
| [httpx](https://github.com/encode/httpx) | `0.27.2` | `0.28.1` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.43` | `9.5.48` |



Updates `websockets` from 13.1 to 14.1
- [Release notes](https://github.com/python-websockets/websockets/releases)
- [Commits](https://github.com/python-websockets/websockets/compare/13.1...14.1)

Updates `twine` from 5.1.1 to 6.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/v5.1.1...6.0.1)

Updates `ruff` from 0.7.1 to 0.8.3
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.7.1...0.8.3)

Updates `pytest` from 8.3.3 to 8.3.4
- [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/8.3.3...8.3.4)

Updates `trustme` from 1.1.0 to 1.2.0
- [Release notes](https://github.com/python-trio/trustme/releases)
- [Commits](https://github.com/python-trio/trustme/compare/v1.1.0...v1.2.0)

Updates `cryptography` from 43.0.3 to 44.0.0
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.3...44.0.0)

Updates `coverage` from 7.6.4 to 7.6.9
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.4...7.6.9)

Updates `httpx` from 0.27.2 to 0.28.1
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.27.2...0.28.1)

Updates `mkdocs-material` from 9.5.43 to 9.5.48
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.43...9.5.48)

---
updated-dependencies:
- dependency-name: websockets
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: twine
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: trustme
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: httpx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

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

* Add websockets old version to the requiremnts

* trustme

* fix issue with httpx

* continue with websockets old version

---------

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>
2024-12-14 12:08:17 +01:00
Marcelo Trylesinski
3aa1d010d6
Remove WatchGod (#2536)
* Remove WatchGod

* Readd missing pragma

* Add py-darwin coverage
2024-12-14 11:40:17 +01:00
Marcelo Trylesinski
a3cc36016e
docs: add note about server behavior on exceptions (#2535) 2024-12-14 10:58:09 +01:00
Marcelo Trylesinski
6725ebb1ee
docs: add more mkdocs-material features (#2534) 2024-12-14 10:40:57 +01:00
Till Backhaus
bfa754e21e
Fixes import of uvicorn server. (encode/uvicorn#2527) (#2528) 2024-12-04 14:33:45 +01:00
Brad Wells
b7241e1c64
Fixes typo "extras" for "extra" in ColourizedFormatter docstring. (#2491)
extra={"color_message": message} is the correct usage.
2024-11-20 21:21:19 +01:00
dependabot[bot]
6215230fd2
Bump the python-packages group with 7 updates (#2499)
* Bump the python-packages group with 7 updates

Bumps the python-packages group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [build](https://github.com/pypa/build) | `1.2.2` | `1.2.2.post1` |
| [ruff](https://github.com/astral-sh/ruff) | `0.6.8` | `0.7.1` |
| [mypy](https://github.com/python/mypy) | `1.11.2` | `1.13.0` |
| [trustme](https://github.com/python-trio/trustme) | `1.1.0` | `1.2.0` |
| [cryptography](https://github.com/pyca/cryptography) | `43.0.1` | `43.0.3` |
| [coverage](https://github.com/nedbat/coveragepy) | `7.6.1` | `7.6.4` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.39` | `9.5.43` |


Updates `build` from 1.2.2 to 1.2.2.post1
- [Release notes](https://github.com/pypa/build/releases)
- [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/build/compare/1.2.2...1.2.2.post1)

Updates `ruff` from 0.6.8 to 0.7.1
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.8...0.7.1)

Updates `mypy` from 1.11.2 to 1.13.0
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.11.2...v1.13.0)

Updates `trustme` from 1.1.0 to 1.2.0
- [Release notes](https://github.com/python-trio/trustme/releases)
- [Commits](https://github.com/python-trio/trustme/compare/v1.1.0...v1.2.0)

Updates `cryptography` from 43.0.1 to 43.0.3
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.1...43.0.3)

Updates `coverage` from 7.6.1 to 7.6.4
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.1...7.6.4)

Updates `mkdocs-material` from 9.5.39 to 9.5.43
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.39...9.5.43)

---
updated-dependencies:
- dependency-name: build
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: trustme
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

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

* Update requirements.txt

* Update requirements.txt

* Update requirements.txt

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-11-20 20:48:35 +01:00
Marcelo Trylesinski
9a0587922f
Set fail-fast to false on the pipeline (#2514) 2024-11-20 20:48:09 +01:00
Marcelo Trylesinski
bc412d2a13
Add actions/checkout GitHub action to docs-publish (#2518) 2024-11-20 20:47:40 +01:00
Marcelo Trylesinski
5279296e62
Upgrade upload/download GitHub Actions (#2517) 2024-11-20 20:38:07 +01:00
Marcelo Trylesinski
8c3402dd22
Update publish.yaml with latest PyPI recommendations (#2516)
* Update `publish.yaml` with latest PyPI recommendations

* Update .github/workflows/publish.yml

* Simplify pipeline

* Simplify pipeline

* Use Python 3.12
2024-11-20 20:34:29 +01:00
Marcelo Trylesinski
04c6320f39
Version 0.32.1 (#2515)
* Version 0.32.1

* Update CHANGELOG.md
2024-11-20 20:22:48 +01:00
Marcelo Trylesinski
fc6c51b8bb
Drop ASGI spec version to 2.3 on HTTP (#2513) 2024-11-20 20:19:24 +01:00
vvanglro
2aea8354ea
fix(http): enable httptools lenient data (#2488)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-11-20 19:04:55 +00:00
Marcelo Trylesinski
fe3910083e
Version 0.32.0 (#2485) 2024-10-15 19:25:09 +02:00
James Hilliard
967a2dce60
Support Python 3.13 (#2482)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-10-15 19:16:39 +02:00
vvanglro
079f07a064
feat(server): log warning when max request limit is exceeded (#2430)
* feat(server): log warning when max request limit is exceeded

* Make the message cute

* better place for test case

* fix ruff check

* fix app

* move to test_server.py

* Update

* Update cli_usage

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-10-10 06:01:45 +00:00
Marcelo Trylesinski
137f88ea32
Version 0.31.1 (#2483) 2024-10-09 21:41:28 +02:00
FirelightFlagboy
27d976a8f2
Add PathLike[str] type hint for ssl_keyfile (#2481)
* Fix typing for ssl_keyfile field to allow PathLike types

* Fix test

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-10-09 07:59:23 +00:00
dependabot[bot]
1ddd250dcf
Bump the python-packages group with 10 updates (#2478)
* Bump the python-packages group with 10 updates

Bumps the python-packages group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [a2wsgi](https://github.com/abersheeran/a2wsgi) | `1.10.6` | `1.10.7` |
| [build](https://github.com/pypa/build) | `1.2.1` | `1.2.2` |
| [ruff](https://github.com/astral-sh/ruff) | `0.5.0` | `0.6.8` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.2.2` | `8.3.3` |
| [mypy](https://github.com/python/mypy) | `1.10.1` | `1.11.2` |
| [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.20240311` | `6.0.12.20240917` |
| [coverage](https://github.com/nedbat/coveragepy) | `7.5.4` | `7.6.1` |
| [httpx](https://github.com/encode/httpx) | `0.27.0` | `0.27.2` |
| [mkdocs](https://github.com/mkdocs/mkdocs) | `1.6.0` | `1.6.1` |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.27` | `9.5.39` |


Updates `a2wsgi` from 1.10.6 to 1.10.7
- [Commits](https://github.com/abersheeran/a2wsgi/compare/v1.10.6...v1.10.7)

Updates `build` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/pypa/build/releases)
- [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/build/compare/1.2.1...1.2.2)

Updates `ruff` from 0.5.0 to 0.6.8
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.6.8)

Updates `pytest` from 8.2.2 to 8.3.3
- [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/8.2.2...8.3.3)

Updates `mypy` from 1.10.1 to 1.11.2
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.10.1...v1.11.2)

Updates `types-pyyaml` from 6.0.12.20240311 to 6.0.12.20240917
- [Commits](https://github.com/python/typeshed/commits)

Updates `coverage` from 7.5.4 to 7.6.1
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.5.4...7.6.1)

Updates `httpx` from 0.27.0 to 0.27.2
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.27.0...0.27.2)

Updates `mkdocs` from 1.6.0 to 1.6.1
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.6.0...1.6.1)

Updates `mkdocs-material` from 9.5.27 to 9.5.39
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.27...9.5.39)

---
updated-dependencies:
- dependency-name: a2wsgi
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: build
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: types-pyyaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: httpx
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: mkdocs
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

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

* Add type hints to MockTransport

---------

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>
2024-10-09 07:49:30 +00:00
Gunter Chou
108b1c9d1a
docs: fix configuration option for trusting forwarded IPs (#2479) 2024-10-09 07:40:54 +00:00
PRATHAMESH LOHAKARE
a1783d864a
Add support for [*] in trusted hosts (#2480)
* fixed trusted host parsing for always trust case

* Update uvicorn/middleware/proxy_headers.py

* added test case for trust everything using list

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-10-09 09:29:11 +02:00
uak
6ffaaf7c2f
Update link to Hypercorn project (#2474)
Hypercorn project seems to be using Github now

https://github.com/pgjones/hypercorn

Link to Gitlab is 404:
https://gitlab.com/pgjones/hypercorn
2024-09-30 07:12:19 +00:00
Marcelo Trylesinski
c7668ced8e
Upgrade websockets to 0.13.1 (#2471)
* Upgrade websockets to 0.13.1

* Send 1005
2024-09-28 17:11:02 +02:00
Marcelo Trylesinski
a50753268a
Version 0.31.0 (#2469) 2024-09-27 21:53:44 +02:00
Marcelo Trylesinski
84dd2c403d
Improve ProxyHeadersMiddleware (#2468)
* Allow ip ranges for FORWARDED_ALLOW_IPS

* Fix host for empty x-forwarded-for header

* Add multi-host ip-range testcase, run scripts/lint

* Re-run black with line-length 88

* Wrap comments to fit in line-length

* Another missed line-length violation

* Fix __contains__ annotations

* Add support for IPv6

* Fix linting

* Fix test cases

* Update docs, comments

* Update index's usage

* Fix more linting

* Better unix socket support

* Expand proxy documentation

* More docs and code comments

* Refactor common test cases, add cases for UDS

* Update settings docs

* Remove "better UDS handling"

* Remove code leading to coverage failures

* Apply suggestions from code review

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Fixes, and more tests

* Update uvicorn/config.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Run ruff formatter

* Replace cast with type: ignore

* remove make_x_headers

* nitpicks

* remove unneeded return

* fix docs

---------

Co-authored-by: Patrick Düggelin <dueggelin@textshuttle.ai>
Co-authored-by: Nicholas Hairs <info@nicholashairs.com>
Co-authored-by: Nicholas Hairs <nicholashairs@gmail.com>
2024-09-27 21:38:42 +02:00
dependabot[bot]
3d26ab4659
Bump cryptography from 42.0.8 to 43.0.1 (#2453)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.8 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.8...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-13 10:18:15 +02:00
Marcel Telka
47304d9ae7
Add tests and requirements.txt to sdist (#2438) 2024-08-20 00:29:28 -06:00
Marcelo Trylesinski
1cb0c32891
Add missing init files in the test suite (#2432)
* Add missing init files in the test suite

* Remove uncovered lines
2024-08-14 12:42:56 -06:00
Marcelo Trylesinski
7dc027d5fb
Version 0.30.6 (#2428) 2024-08-13 03:25:46 -06:00
vvanglro
587a1ccca5
fix: upgrade is not websocket and dependencies are installed, should not warning (#2360)
* fix: upgrade is not websocket, handle httptools with the same logic as h11

* test: add case

* refactor: clearer judgment

* Refactor(http): streamline upgrade warning logic

* ruff

* fix: simplify httptools_impl methods

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-08-13 03:13:53 -06:00
vvanglro
cee31a6891
test(signal): add sleep to ensure shutdown completion (#2427) 2024-08-13 02:56:31 -06:00
vvanglro
eba64efbc8
ci: timeout for test suite runs to 30 minutes (#2426) 2024-08-13 08:01:36 +00:00
Max Kühn
0f513d26f2
Remove signal testing order dependency (#2382)
* test received signal

* improve error feedback, do not shadow earlier failures

* fix import sorting

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-08-11 07:17:14 +00:00
Marcelo Trylesinski
ff54b029b1
Version 0.30.5 (#2409) 2024-08-02 04:21:09 -06:00
PRATHAMESH LOHAKARE
2f25107af2
Fix 0.30.4 issue with connection close header (#2408)
* fix server waiting state with connection close header

* added test case for closing post connection with connection header

* removed post without body test case with connection close header

* removed unnecessary line removal
2024-08-02 08:14:21 +00:00
Marcelo Trylesinski
8efa41c7da
Version 0.30.4 (#2403)
* Version 0.30.4

* Add date and 'Fixed'
2024-07-31 15:26:50 -06:00
Marcelo Trylesinski
b492349d26
Add pragma: full coverage to Process.is_alive (#2402) 2024-07-31 15:19:28 -06:00
PRATHAMESH LOHAKARE
ce999aa634
close request connection if h11 sets client state as MUST_CLOSE (#2375)
* close request connection if h11 sets client state as MUST_CLOSE

* fixed data assignment for ReceiveBuffer and added test case

* improved close header test case

* fixed linting for close header related test case

* Fixed handling connection close header. Added separate test case

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-31 21:17:30 +00:00
Marcelo Trylesinski
d277c25879
Add Marcelo Trylesinski as maintainer (#2398) 2024-07-30 06:34:24 -06:00