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: Sun Aug 25 10:35:50 UTC 2024
Modified Files:
pkgsrc/www/py-websockets: Makefile PLIST distinfo
Log Message:
py-websockets: update to 13.0.
13.0
August 20, 2024
Backwards-incompatible changes
websockets 13.0 requires Python ≥ 3.8.
websockets 12.0 is the last version supporting Python 3.7.
Receiving the request path in the second parameter of connection handlers is deprecated.
If you implemented the connection handler of a server as:
async def handler(request, path):
...
You should switch to the pattern recommended since version 10.1:
async def handler(request):
path = request.path # only if handler() uses the path argument
...
The ssl_context argument of connect() and serve() in the threading implementation is renamed to ssl.
This aligns the API of the threading implementation with the asyncio implementation.
For backwards compatibility, ssl_context is still supported.
The WebSocketServer class in the threading implementation is renamed to Server.
This change should be transparent because this class shouldn’t be instantiated directly; serve() returns an instance.
Regardless, an alias provides backwards compatibility.
New features
websockets 11.0 introduces a new asyncio implementation.
This new implementation is intended to be a drop-in replacement for the current implementation. It will become the default in a future release.
Please try it and report any issue that you encounter! The upgrade guide explains everything you need to know about the upgrade process.
Validated compatibility with Python 3.12 and 3.13.
Added environment variables to configure debug logs, the Server and User-Agent headers, as well as security limits.
If you were monkey-patching constants, be aware that they were renamed, which will break your configuration. You must switch to the environment variables.
Improvements
The error message in server logs when a header is too long is more explicit.
Bug fixes
Fixed a bug in the threading implementation that could prevent the program from exiting when a connection wasn’t closed properly.
Redirecting from a ws:// URI to a wss:// URI now works.
broadcast(raise_exceptions=True) no longer crashes when there isn’t any exception.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/py-websockets/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/py-websockets/PLIST
cvs rdiff -u -r1.18 -r1.19 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.20 pkgsrc/www/py-websockets/Makefile:1.21
--- pkgsrc/www/py-websockets/Makefile:1.20 Fri Oct 27 09:06:02 2023
+++ pkgsrc/www/py-websockets/Makefile Sun Aug 25 10:35:49 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2023/10/27 09:06:02 adam Exp $
+# $NetBSD: Makefile,v 1.21 2024/08/25 10:35:49 wiz Exp $
-DISTNAME= websockets-12.0
+DISTNAME= websockets-13.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=w/websockets/}
@@ -10,7 +10,8 @@ HOMEPAGE= https://github.com/aaugustin/w
COMMENT= Implementation of the WebSocket Protocol (RFC 6455)
LICENSE= modified-bsd
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-websockets/PLIST
diff -u pkgsrc/www/py-websockets/PLIST:1.13 pkgsrc/www/py-websockets/PLIST:1.14
--- pkgsrc/www/py-websockets/PLIST:1.13 Fri Oct 27 09:06:02 2023
+++ pkgsrc/www/py-websockets/PLIST Sun Aug 25 10:35:49 2024
@@ -1,14 +1,36 @@
-@comment $NetBSD: PLIST,v 1.13 2023/10/27 09:06:02 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.14 2024/08/25 10:35:49 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/websockets/__init__.py
${PYSITELIB}/websockets/__init__.pyc
${PYSITELIB}/websockets/__init__.pyo
${PYSITELIB}/websockets/__main__.py
${PYSITELIB}/websockets/__main__.pyc
${PYSITELIB}/websockets/__main__.pyo
+${PYSITELIB}/websockets/asyncio/__init__.py
+${PYSITELIB}/websockets/asyncio/__init__.pyc
+${PYSITELIB}/websockets/asyncio/__init__.pyo
+${PYSITELIB}/websockets/asyncio/async_timeout.py
+${PYSITELIB}/websockets/asyncio/async_timeout.pyc
+${PYSITELIB}/websockets/asyncio/async_timeout.pyo
+${PYSITELIB}/websockets/asyncio/client.py
+${PYSITELIB}/websockets/asyncio/client.pyc
+${PYSITELIB}/websockets/asyncio/client.pyo
+${PYSITELIB}/websockets/asyncio/compatibility.py
+${PYSITELIB}/websockets/asyncio/compatibility.pyc
+${PYSITELIB}/websockets/asyncio/compatibility.pyo
+${PYSITELIB}/websockets/asyncio/connection.py
+${PYSITELIB}/websockets/asyncio/connection.pyc
+${PYSITELIB}/websockets/asyncio/connection.pyo
+${PYSITELIB}/websockets/asyncio/messages.py
+${PYSITELIB}/websockets/asyncio/messages.pyc
+${PYSITELIB}/websockets/asyncio/messages.pyo
+${PYSITELIB}/websockets/asyncio/server.py
+${PYSITELIB}/websockets/asyncio/server.pyc
+${PYSITELIB}/websockets/asyncio/server.pyo
${PYSITELIB}/websockets/auth.py
${PYSITELIB}/websockets/auth.pyc
${PYSITELIB}/websockets/auth.pyo
@@ -51,18 +73,12 @@ ${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
${PYSITELIB}/websockets/legacy/client.py
${PYSITELIB}/websockets/legacy/client.pyc
${PYSITELIB}/websockets/legacy/client.pyo
-${PYSITELIB}/websockets/legacy/compatibility.py
-${PYSITELIB}/websockets/legacy/compatibility.pyc
-${PYSITELIB}/websockets/legacy/compatibility.pyo
${PYSITELIB}/websockets/legacy/framing.py
${PYSITELIB}/websockets/legacy/framing.pyc
${PYSITELIB}/websockets/legacy/framing.pyo
@@ -85,8 +101,7 @@ ${PYSITELIB}/websockets/py.typed
${PYSITELIB}/websockets/server.py
${PYSITELIB}/websockets/server.pyc
${PYSITELIB}/websockets/server.pyo
-${PYSITELIB}/websockets/speedups.c
-${PYSITELIB}/websockets/speedups.so
+${PYSITELIB}/websockets/speedups.pyi
${PYSITELIB}/websockets/streams.py
${PYSITELIB}/websockets/streams.pyc
${PYSITELIB}/websockets/streams.pyo
Index: pkgsrc/www/py-websockets/distinfo
diff -u pkgsrc/www/py-websockets/distinfo:1.18 pkgsrc/www/py-websockets/distinfo:1.19
--- pkgsrc/www/py-websockets/distinfo:1.18 Fri Oct 27 09:06:02 2023
+++ pkgsrc/www/py-websockets/distinfo Sun Aug 25 10:35:50 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2023/10/27 09:06:02 adam Exp $
+$NetBSD: distinfo,v 1.19 2024/08/25 10:35:50 wiz Exp $
-BLAKE2s (websockets-12.0.tar.gz) = 279ea3f36456a8d7db095afa6b35507870bb149b7783f729e70d7eeeb0e07ce4
-SHA512 (websockets-12.0.tar.gz) = f8f15440d31caafdebebc9b72328ccec54b0cbd42f21bf24ba7d7b141e7e29ebe9da1d50e2890c45a860b4cba36796fc99a281f75a00dc11d84890a39316b0fb
-Size (websockets-12.0.tar.gz) = 104994 bytes
+BLAKE2s (websockets-13.0.tar.gz) = 9588c2872ff414138eff75ba4d63cf6c1203bec10c173f2f90c6b0ddf947055a
+SHA512 (websockets-13.0.tar.gz) = a50f5dcc8271053376ec2826ae5ecac535799f002811a2e0853df87086a6176d1922d0863b9c8bd25c0232137f28f63415fc0f483e2ed571921840c7db1c4597
+Size (websockets-13.0.tar.gz) = 147622 bytes
Home |
Main Index |
Thread Index |
Old Index