diff --git a/python-uvicorn.changes b/python-uvicorn.changes index 7235c8c..f80d18c 100644 --- a/python-uvicorn.changes +++ b/python-uvicorn.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Thu May 1 06:28:46 UTC 2025 - Steve Kowalik + +- Update to 0.34.2: + * Added + + Add content-length to 500 response in wsproto implementation + * Fixed + + Flush stdout buffer on Windows to trigger reload + + Drop ASGI spec version to 2.3 on HTTP scope + + Enable httptools lenient data on httptools >= 0.6.3 + * Deprecated + + Deprecate ServerState in the main module + * Removed + + Drop support for Python 3.8 + + Remove WatchGod support for --reload +- Add patch support-websockets-14+.patch: + * Ignore multiple classes of DeprecationWarnings. + ------------------------------------------------------------------- Wed Oct 30 10:37:07 UTC 2024 - Dirk Müller diff --git a/python-uvicorn.spec b/python-uvicorn.spec index fb8d745..68c34e8 100644 --- a/python-uvicorn.spec +++ b/python-uvicorn.spec @@ -1,7 +1,7 @@ # # spec file for package python-uvicorn # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,23 @@ %{?sle15_python_module_pythons} Name: python-uvicorn -Version: 0.32.0 +Version: 0.34.2 Release: 0 Summary: An Asynchronous Server Gateway Interface server License: BSD-3-Clause URL: https://github.com/encode/uvicorn Source: https://github.com/encode/uvicorn/archive/%{version}.tar.gz#/uvicorn-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Ignore the large amount of DeprecationWarnings that websockets 14 gave us +Patch0: support-websockets-14+.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing-extensions >= 4} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click >= 7.0 Requires: python-h11 >= 0.8.0 -Requires: python-typing-extensions >= 4 Recommends: python-PyYAML >= 5.1 Recommends: python-httptools >= 0.4.0 Recommends: python-websockets >= 8.0 @@ -49,6 +49,7 @@ BuildRequires: %{python_module httptools >= 0.4.0} BuildRequires: %{python_module httpx >= 0.27} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dotenv} BuildRequires: %{python_module requests} @@ -93,13 +94,14 @@ ignore="--ignore tests/middleware/test_wsgi.py" %if "%{_arch}" == "s390x" ignore+=" --ignore tests/protocols/test_websocket.py" %endif -%pytest $ignore +# no longer raises an exception with Websockets 14+ +%pytest $ignore -k 'not test_send_binary_data_to_server_bigger_than_default_on_websockets' %files %{python_files} %doc README.md %license LICENSE.md %python_alternative %{_bindir}/uvicorn %{python_sitelib}/uvicorn -%{python_sitelib}/uvicorn-%{version}*-info +%{python_sitelib}/uvicorn-%{version}.dist-info %changelog diff --git a/support-websockets-14+.patch b/support-websockets-14+.patch new file mode 100644 index 0000000..0581c0a --- /dev/null +++ b/support-websockets-14+.patch @@ -0,0 +1,16 @@ +Index: uvicorn-0.34.2/pyproject.toml +=================================================================== +--- uvicorn-0.34.2.orig/pyproject.toml ++++ uvicorn-0.34.2/pyproject.toml +@@ -92,6 +92,11 @@ filterwarnings = [ + "ignore:Uvicorn's native WSGI implementation is deprecated.*:DeprecationWarning", + "ignore: 'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning", + "ignore: remove second argument of ws_handler:DeprecationWarning:websockets", ++ # Websockets 14+ ++ "ignore: websockets.server.WebSocketServerProtocol is deprecated:DeprecationWarning", ++ "ignore: websockets.legacy is deprecated.*:DeprecationWarning", ++ "ignore: websockets.client.connect is deprecated:DeprecationWarning", ++ "ignore: websockets.exceptions.InvalidStatusCode is deprecated:DeprecationWarning", + ] + + [tool.coverage.run] diff --git a/uvicorn-0.32.0.tar.gz b/uvicorn-0.32.0.tar.gz deleted file mode 100644 index 367bcf8..0000000 --- a/uvicorn-0.32.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:784d962b41b0bd9b6265cabf0054cf55d03fffb882c901e77840894f36ea8a23 -size 728882 diff --git a/uvicorn-0.34.2.tar.gz b/uvicorn-0.34.2.tar.gz new file mode 100644 index 0000000..7bfd42f --- /dev/null +++ b/uvicorn-0.34.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea0a4b037cbb5135344b52f21eb286630b8d5d4be7661981860f3dd11e6fdaa0 +size 709898