14
0
Files
python-uvicorn/support-websockets-14+.patch
Steve Kowalik e5aaa0840c - 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/package/show/devel:languages:python/python-uvicorn?expand=0&rev=40
2025-05-01 06:29:24 +00:00

17 lines
851 B
Diff

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]