From 2a045d24e03164080130adb056c9621b2445b82b95d6a77d47b250e335caa873 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 10 May 2023 06:59:05 +0000 Subject: [PATCH 1/2] - update to 11.0.2: * Fixed a deadlock in the :mod:`threading` implementation when closing a connection without reading all messages. * Restored the C extension in the source distribution. * Backwards-incompatible changes * The Sans-I/O implementation was moved. * The ``connection`` module was renamed to ``protocol``. * The ``connection.Connection``, ``server.ServerConnection``, and ``client.ClientConnection`` classes were renamed to ``protocol.Protocol``, ``server.ServerProtocol``, and ``client.ClientProtocol``. * If you instantiate :class:`~server.ServerProtocol` or :class:`~client.ClientProtocol` directly, make sure you are using keyword arguments. * Closing a connection without an empty close frame is OK. * .. admonition:: websockets 10.0 introduces a implementation on top of :mod:`threading`. * It may be more convenient if you don't need to manage many connections and you're more comfortable with :mod:`threading` than :mod:`asyncio`. * It is particularly suited to client applications that establish only one connection. It may be used for servers handling few connections. * See :func:`~sync.client.connect` and :func:`~sync.server.serve` for details. * Added ``open_timeout`` to :func:`~server.serve`. * Made it possible to close a server without closing existing connections. * Added :attr:`~server.ServerProtocol.select_subprotocol` to customize negotiation of subprotocols in the Sans-I/O layer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=40 --- 10.4.tar.gz | 3 --- 11.0.2.tar.gz | 3 +++ python-websockets.changes | 38 ++++++++++++++++++++++++++++++++++++++ python-websockets.spec | 5 +---- 4 files changed, 42 insertions(+), 7 deletions(-) delete mode 100644 10.4.tar.gz create mode 100644 11.0.2.tar.gz diff --git a/10.4.tar.gz b/10.4.tar.gz deleted file mode 100644 index f4e6f9f..0000000 --- a/10.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c7f345bd7924544db691de2f21c80b6fed1f303a54bfa650b782016b64e54ae -size 309611 diff --git a/11.0.2.tar.gz b/11.0.2.tar.gz new file mode 100644 index 0000000..5d9de6f --- /dev/null +++ b/11.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94b19db57b4a20e1b253d888dfaefdc3bf5c581afbe340cf6d548ae8a419b401 +size 347575 diff --git a/python-websockets.changes b/python-websockets.changes index cc35194..930529c 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Wed May 10 06:57:26 UTC 2023 - Dirk Müller + +- update to 11.0.2: + * Fixed a deadlock in the :mod:`threading` implementation when + closing a connection without reading all messages. + * Restored the C extension in the source distribution. + * Backwards-incompatible changes + * The Sans-I/O implementation was moved. + * The ``connection`` module was renamed to ``protocol``. + * The ``connection.Connection``, ``server.ServerConnection``, + and ``client.ClientConnection`` classes were renamed to + ``protocol.Protocol``, ``server.ServerProtocol``, and + ``client.ClientProtocol``. + * If you instantiate :class:`~server.ServerProtocol` or + :class:`~client.ClientProtocol` directly, make sure you are + using keyword arguments. + * Closing a connection without an empty close frame is OK. + * .. admonition:: websockets 10.0 introduces a implementation + on top of :mod:`threading`. + * It may be more convenient if you don't need to manage many + connections and you're more comfortable with :mod:`threading` + than :mod:`asyncio`. + * It is particularly suited to client applications that + establish only one connection. It may be used for servers + handling few connections. + * See :func:`~sync.client.connect` and + :func:`~sync.server.serve` for details. + * Added ``open_timeout`` to :func:`~server.serve`. + * Made it possible to close a server without closing existing + connections. + * Added :attr:`~server.ServerProtocol.select_subprotocol` to + customize negotiation of subprotocols in the Sans-I/O layer. + * Added platform-independent wheels. + * Improved error handling in :func:`~websockets.broadcast`. + * Set ``server_hostname`` automatically on TLS connections when + providing a ``sock`` argument to :func:`~sync.client.connect`. + ------------------------------------------------------------------- Fri Apr 21 12:38:50 UTC 2023 - Dirk Müller diff --git a/python-websockets.spec b/python-websockets.spec index 422cd78..1a73839 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -16,12 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 %{?sle15_python_module_pythons} Name: python-websockets -Version: 10.4 +Version: 11.0.2 Release: 0 Summary: An implementation of the WebSocket Protocol (RFC 6455) License: BSD-3-Clause From c083aba17fb080f9528bc10393eb6c3567cb609414ec4046d06fe6c79b29b024 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 May 2023 18:45:11 +0000 Subject: [PATCH 2/2] - update to 11.0.3: * Fixed the :mod:`threading` implementation of servers on Windows. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=41 --- 11.0.2.tar.gz | 3 --- 11.0.3.tar.gz | 3 +++ python-websockets.changes | 7 +++++++ python-websockets.spec | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 11.0.2.tar.gz create mode 100644 11.0.3.tar.gz diff --git a/11.0.2.tar.gz b/11.0.2.tar.gz deleted file mode 100644 index 5d9de6f..0000000 --- a/11.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94b19db57b4a20e1b253d888dfaefdc3bf5c581afbe340cf6d548ae8a419b401 -size 347575 diff --git a/11.0.3.tar.gz b/11.0.3.tar.gz new file mode 100644 index 0000000..dc8c7e2 --- /dev/null +++ b/11.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e412f6480c9bf8d5a58cb746a4d20df391a19017b6d2c39b136d84b0be8309c9 +size 347652 diff --git a/python-websockets.changes b/python-websockets.changes index 930529c..09f3e13 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun May 14 18:45:02 UTC 2023 - Dirk Müller + +- update to 11.0.3: + * Fixed the :mod:`threading` implementation of servers on + Windows. + ------------------------------------------------------------------- Wed May 10 06:57:26 UTC 2023 - Dirk Müller diff --git a/python-websockets.spec b/python-websockets.spec index 1a73839..ae56c13 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-websockets -Version: 11.0.2 +Version: 11.0.3 Release: 0 Summary: An implementation of the WebSocket Protocol (RFC 6455) License: BSD-3-Clause