pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-websockets



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue May 16 22:48:21 UTC 2023

Modified Files:
        pkgsrc/www/py-websockets: Makefile PLIST distinfo

Log Message:
py-websockets: update to 11.0.3.

11.0.3

May 7, 2023

Bug fixes

    Fixed the threading implementation of servers on Windows.

11.0.2

April 18, 2023

Bug fixes

    Fixed a deadlock in the threading implementation when closing a connection without reading all messages.

11.0.1

April 6, 2023

Bug fixes

    Restored the C extension in the source distribution.

11.0

April 2, 2023

Backwards-incompatible changes

The Sans-I/O implementation was moved.

Aliases provide compatibility for all previously public APIs according to the backwards-compatibility policy.

    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.

Sans-I/O protocol constructors now use keyword-only arguments.

If you instantiate ServerProtocol or ClientProtocol directly, make sure you are using keyword arguments.

Closing a connection without an empty close frame is OK.

Receiving an empty close frame now results in ConnectionClosedOK instead of ConnectionClosedError.

As a consequence, calling WebSocket.close() without arguments in a browser isn’t reported as an error anymore.

serve() times out on the opening handshake after 10 seconds by default.

You can adjust the timeout with the open_timeout parameter. Set it to None to disable the timeout entirely.
New features

websockets 10.0 introduces a implementation on top of threading.

It may be more convenient if you don’t need to manage many connections and you’re more comfortable with threading than asyncio.

It is particularly suited to client applications that establish only one connection. It may be used for servers handling few connections.

See connect() and serve() for details.

    Added open_timeout to serve().

    Made it possible to close a server without closing existing connections.

    Added select_subprotocol to customize negotiation of subprotocols in the Sans-I/O layer.

Improvements

    Added platform-independent wheels.

    Improved error handling in broadcast().

    Set server_hostname automatically on TLS connections when providing a sock argument to connect().


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/www/py-websockets/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/www/py-websockets/PLIST
cvs rdiff -u -r1.16 -r1.17 pkgsrc/www/py-websockets/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-websockets/Makefile
diff -u pkgsrc/www/py-websockets/Makefile:1.18 pkgsrc/www/py-websockets/Makefile:1.19
--- pkgsrc/www/py-websockets/Makefile:1.18      Sun Nov  6 18:45:53 2022
+++ pkgsrc/www/py-websockets/Makefile   Tue May 16 22:48:21 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2022/11/06 18:45:53 adam Exp $
+# $NetBSD: Makefile,v 1.19 2023/05/16 22:48:21 wiz Exp $
 
-DISTNAME=      websockets-10.4
+DISTNAME=      websockets-11.0.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/websockets/}

Index: pkgsrc/www/py-websockets/PLIST
diff -u pkgsrc/www/py-websockets/PLIST:1.11 pkgsrc/www/py-websockets/PLIST:1.12
--- pkgsrc/www/py-websockets/PLIST:1.11 Tue Nov 23 21:02:13 2021
+++ pkgsrc/www/py-websockets/PLIST      Tue May 16 22:48:21 2023
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.11 2021/11/23 21:02:13 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2023/05/16 22:48:21 wiz Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/websockets/__init__.py
 ${PYSITELIB}/websockets/__init__.pyc
@@ -52,6 +51,9 @@ ${PYSITELIB}/websockets/imports.pyo
 ${PYSITELIB}/websockets/legacy/__init__.py
 ${PYSITELIB}/websockets/legacy/__init__.pyc
 ${PYSITELIB}/websockets/legacy/__init__.pyo
+${PYSITELIB}/websockets/legacy/async_timeout.py
+${PYSITELIB}/websockets/legacy/async_timeout.pyc
+${PYSITELIB}/websockets/legacy/async_timeout.pyo
 ${PYSITELIB}/websockets/legacy/auth.py
 ${PYSITELIB}/websockets/legacy/auth.pyc
 ${PYSITELIB}/websockets/legacy/auth.pyo
@@ -76,6 +78,9 @@ ${PYSITELIB}/websockets/legacy/protocol.
 ${PYSITELIB}/websockets/legacy/server.py
 ${PYSITELIB}/websockets/legacy/server.pyc
 ${PYSITELIB}/websockets/legacy/server.pyo
+${PYSITELIB}/websockets/protocol.py
+${PYSITELIB}/websockets/protocol.pyc
+${PYSITELIB}/websockets/protocol.pyo
 ${PYSITELIB}/websockets/py.typed
 ${PYSITELIB}/websockets/server.py
 ${PYSITELIB}/websockets/server.pyc
@@ -85,6 +90,27 @@ ${PYSITELIB}/websockets/speedups.so
 ${PYSITELIB}/websockets/streams.py
 ${PYSITELIB}/websockets/streams.pyc
 ${PYSITELIB}/websockets/streams.pyo
+${PYSITELIB}/websockets/sync/__init__.py
+${PYSITELIB}/websockets/sync/__init__.pyc
+${PYSITELIB}/websockets/sync/__init__.pyo
+${PYSITELIB}/websockets/sync/client.py
+${PYSITELIB}/websockets/sync/client.pyc
+${PYSITELIB}/websockets/sync/client.pyo
+${PYSITELIB}/websockets/sync/compatibility.py
+${PYSITELIB}/websockets/sync/compatibility.pyc
+${PYSITELIB}/websockets/sync/compatibility.pyo
+${PYSITELIB}/websockets/sync/connection.py
+${PYSITELIB}/websockets/sync/connection.pyc
+${PYSITELIB}/websockets/sync/connection.pyo
+${PYSITELIB}/websockets/sync/messages.py
+${PYSITELIB}/websockets/sync/messages.pyc
+${PYSITELIB}/websockets/sync/messages.pyo
+${PYSITELIB}/websockets/sync/server.py
+${PYSITELIB}/websockets/sync/server.pyc
+${PYSITELIB}/websockets/sync/server.pyo
+${PYSITELIB}/websockets/sync/utils.py
+${PYSITELIB}/websockets/sync/utils.pyc
+${PYSITELIB}/websockets/sync/utils.pyo
 ${PYSITELIB}/websockets/typing.py
 ${PYSITELIB}/websockets/typing.pyc
 ${PYSITELIB}/websockets/typing.pyo

Index: pkgsrc/www/py-websockets/distinfo
diff -u pkgsrc/www/py-websockets/distinfo:1.16 pkgsrc/www/py-websockets/distinfo:1.17
--- pkgsrc/www/py-websockets/distinfo:1.16      Sun Nov  6 18:45:53 2022
+++ pkgsrc/www/py-websockets/distinfo   Tue May 16 22:48:21 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2022/11/06 18:45:53 adam Exp $
+$NetBSD: distinfo,v 1.17 2023/05/16 22:48:21 wiz Exp $
 
-BLAKE2s (websockets-10.4.tar.gz) = 01a0c4ddd9c08eb9b5ca6b19c5bfd35c103378afc10a649134ba094c8a100361
-SHA512 (websockets-10.4.tar.gz) = fa24ce1cf11d7dae5915f7581cca01dadb8ddc497d956e06385ce4b6712f91dd271f2547f742b18f65c7efc02419841114214d4d7d7be91915cdb66b28305938
-Size (websockets-10.4.tar.gz) = 84877 bytes
+BLAKE2s (websockets-11.0.3.tar.gz) = 8c2bd7262ad117f6f391d8973c4c0a47d6d05bba29f1e492008b3d9c8fef47c1
+SHA512 (websockets-11.0.3.tar.gz) = 7c08b8ca84d91a57fc9a5324b51b1c1e68b98c85c6e5d2599211a72afee7fa553ad53fdbb1a776cd0bce792df54f1a956ed27f1b797324437dbec9e5c0bc4feb
+Size (websockets-11.0.3.tar.gz) = 104235 bytes



Home | Main Index | Thread Index | Old Index