14
0

- update to 12.0:

* websockets 12.0 requires Python ≥ 3.8.
  * Made convenience imports from ``websockets`` compatible with
    static code analysis tools such as auto-completion in an IDE
    or type checking with mypy_.
  * Accepted a plain :class:`int` where an
    :class:`~http.HTTPStatus` is expected.
  * Added :class:`~frames.CloseCode`.
- drop py312-shutdown.patch (upstream)
    ``protocol.Protocol``, ``server.ServerProtocol``, and
- Update to 10.4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=49
This commit is contained in:
2023-12-06 09:19:34 +00:00
committed by Git OBS Bridge
parent c5cb3d81f6
commit eb8262d0fe
5 changed files with 22 additions and 60 deletions

View File

@@ -18,16 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-websockets
Version: 11.0.3
Version: 12.0
Release: 0
Summary: An implementation of the WebSocket Protocol (RFC 6455)
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/aaugustin/websockets
Source: https://github.com/aaugustin/websockets/archive/%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/python-websockets/websockets/commit/03d62c97fcafffa5cdbe4bb55b2a8d17a62eca33 Fix server shutdown on Python 3.12.
Patch: py312-shutdown.patch
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes