forked from pool/python-uvicorn
Accepting request 1273799 from devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/1273799 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uvicorn?expand=0&rev=20
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 1 06:28:46 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
16
support-websockets-14+.patch
Normal file
16
support-websockets-14+.patch
Normal file
@@ -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]
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:784d962b41b0bd9b6265cabf0054cf55d03fffb882c901e77840894f36ea8a23
|
||||
size 728882
|
BIN
uvicorn-0.34.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
uvicorn-0.34.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user