From 796924852feac0dfb56bc445f56190de28670580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Mon, 22 Jul 2024 00:00:03 +0200 Subject: [PATCH] Support aioquic 1.x and update README.rst regarding HTTP/3 No code changes are required to use `aioquic` 1.x. As `aioquic` now uses semantic versioning, allow any version less than 2.0. This allows users to benefit from improvements and security fixes which have landed in the 1.x releases, see: https://aioquic.readthedocs.io/en/stable/changelog.html --- README.rst | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 3c676b91..f4d8bb21 100644 --- a/README.rst +++ b/README.rst @@ -16,8 +16,7 @@ Gunicorn. Hypercorn supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and HTTP/2), ASGI, and WSGI specifications. Hypercorn can utilise asyncio, uvloop, or trio worker types. -Hypercorn can optionally serve the current draft of the HTTP/3 -specification using the `aioquic +Hypercorn can optionally support HTTP/3 using the `aioquic `_ library. To enable this install the ``h3`` optional extra, ``pip install hypercorn[h3]`` and then choose a quic binding e.g. ``hypercorn --quic-bind localhost:4433 diff --git a/pyproject.toml b/pyproject.toml index 7a6b6a84..87db81a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ documentation = "https://hypercorn.readthedocs.io" [tool.poetry.dependencies] python = ">=3.8" -aioquic = { version = ">= 0.9.0, < 1.0", optional = true } +aioquic = { version = ">= 0.9.0, < 2.0", optional = true } exceptiongroup = { version = ">= 1.1.0", python = "<3.11" } h11 = "*" h2 = ">=3.1.0"