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: adam
Date: Tue Nov 26 19:08:55 UTC 2019
Modified Files:
pkgsrc/www/py-websockets: Makefile PLIST distinfo
Log Message:
py-websockets: updated to 8.1
8.1
Added compatibility with Python 3.8.
8.0.2
Restored the ability to pass a socket with the sock parameter of :func:`~server.serve`.
Removed an incorrect assertion when a connection drops.
8.0.1
Restored the ability to import WebSocketProtocolError from websockets.
8.0
Warning
Version 8.0 drops compatibility with Python 3.4 and 3.5.
Note
Version 8.0 expects process_request to be a coroutine.
Previously, it could be a function or a coroutine.
If you're passing a process_request argument to :func:`~server.serve` or :class:`~server.WebSocketServerProtocol`, or if you're overriding :meth:`~protocol.WebSocketServerProtocol.process_request` in
a subclass, define it with async def instead of def.
For backwards compatibility, functions are still mostly supported, but mixing functions and coroutines won't work in some inheritance scenarios.
Note
Version 8.0 changes the behavior of the max_queue parameter.
If you were setting max_queue=0 to make the queue of incoming messages unbounded, change it to max_queue=None.
Note
Version 8.0 deprecates the host , port , and secure attributes of :class:`~protocol.WebSocketCommonProtocol`.
Use :attr:`~protocol.WebSocketCommonProtocol.local_address` in servers and :attr:`~protocol.WebSocketCommonProtocol.remote_address` in clients instead of host and port.
Note
Version 8.0 renames the WebSocketProtocolError exception to :exc:`ProtocolError` .
A WebSocketProtocolError alias provides backwards compatibility.
Note
Version 8.0 adds the reason phrase to the return type of the low-level API :func:`~http.read_response` .
Also:
:meth:`~protocol.WebSocketCommonProtocol.send`, :meth:`~protocol.WebSocketCommonProtocol.ping`, and :meth:`~protocol.WebSocketCommonProtocol.pong` support bytes-like types :class:`bytearray` and
:class:`memoryview` in addition to :class:`bytes`.
Added :exc:`~exceptions.ConnectionClosedOK` and :exc:`~exceptions.ConnectionClosedError` subclasses of :exc:`~exceptions.ConnectionClosed` to tell apart normal connection termination from errors.
Added :func:`~auth.basic_auth_protocol_factory` to enforce HTTP Basic Auth on the server side.
:func:`~client.connect` handles redirects from the server during the handshake.
:func:`~client.connect` supports overriding host and port.
Added :func:`~client.unix_connect` for connecting to Unix sockets.
Improved support for sending fragmented messages by accepting asynchronous iterators in :meth:`~protocol.WebSocketCommonProtocol.send`.
Prevented spurious log messages about :exc:`~exceptions.ConnectionClosed` exceptions in keepalive ping task. If you were using ping_timeout=None as a workaround, you can remove it.
Changed :meth:`WebSocketServer.close() <server.WebSocketServer.close>` to perform a proper closing handshake instead of failing the connection.
Avoided a crash when a extra_headers callable returns None.
Improved error messages when HTTP parsing fails.
Enabled readline in the interactive client.
Added type hints (PEP 484).
Added a FAQ to the documentation.
Added documentation for extensions.
Documented how to optimize memory usage.
Improved API documentation.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/www/py-websockets/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/www/py-websockets/PLIST
cvs rdiff -u -r1.6 -r1.7 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.8 pkgsrc/www/py-websockets/Makefile:1.9
--- pkgsrc/www/py-websockets/Makefile:1.8 Tue Nov 6 14:31:48 2018
+++ pkgsrc/www/py-websockets/Makefile Tue Nov 26 19:08:55 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2018/11/06 14:31:48 adam Exp $
+# $NetBSD: Makefile,v 1.9 2019/11/26 19:08:55 adam Exp $
-DISTNAME= websockets-7.0
+DISTNAME= websockets-8.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=w/websockets/}
@@ -13,15 +13,4 @@ LICENSE= modified-bsd
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/egg.mk"
-
-PLIST_VARS+= py35 py36
-
-.if !empty(_PYTHON_VERSION:M35)
-PLIST.py35= yes
-.endif
-.if !empty(_PYTHON_VERSION:M3[67])
-PLIST.py35= yes
-PLIST.py36= yes
-.endif
-
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-websockets/PLIST
diff -u pkgsrc/www/py-websockets/PLIST:1.7 pkgsrc/www/py-websockets/PLIST:1.8
--- pkgsrc/www/py-websockets/PLIST:1.7 Tue Nov 6 14:31:48 2018
+++ pkgsrc/www/py-websockets/PLIST Tue Nov 26 19:08:55 2019
@@ -1,21 +1,21 @@
-@comment $NetBSD: PLIST,v 1.7 2018/11/06 14:31:48 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2019/11/26 19:08:55 adam 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}/${EGG_INFODIR}/zip-safe
${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/auth.py
+${PYSITELIB}/websockets/auth.pyc
+${PYSITELIB}/websockets/auth.pyo
${PYSITELIB}/websockets/client.py
${PYSITELIB}/websockets/client.pyc
${PYSITELIB}/websockets/client.pyo
-${PYSITELIB}/websockets/compatibility.py
-${PYSITELIB}/websockets/compatibility.pyc
-${PYSITELIB}/websockets/compatibility.pyo
${PYSITELIB}/websockets/exceptions.py
${PYSITELIB}/websockets/exceptions.pyc
${PYSITELIB}/websockets/exceptions.pyo
@@ -43,26 +43,15 @@ ${PYSITELIB}/websockets/http.pyo
${PYSITELIB}/websockets/protocol.py
${PYSITELIB}/websockets/protocol.pyc
${PYSITELIB}/websockets/protocol.pyo
-${PYSITELIB}/websockets/py35/__init__.py
-${PYSITELIB}/websockets/py35/__init__.pyc
-${PYSITELIB}/websockets/py35/__init__.pyo
-${PYSITELIB}/websockets/py35/client.py
-${PLIST.py35}${PYSITELIB}/websockets/py35/client.pyc
-${PLIST.py35}${PYSITELIB}/websockets/py35/client.pyo
-${PYSITELIB}/websockets/py35/server.py
-${PLIST.py35}${PYSITELIB}/websockets/py35/server.pyc
-${PLIST.py35}${PYSITELIB}/websockets/py35/server.pyo
-${PYSITELIB}/websockets/py36/__init__.py
-${PYSITELIB}/websockets/py36/__init__.pyc
-${PYSITELIB}/websockets/py36/__init__.pyo
-${PYSITELIB}/websockets/py36/protocol.py
-${PLIST.py36}${PYSITELIB}/websockets/py36/protocol.pyc
-${PLIST.py36}${PYSITELIB}/websockets/py36/protocol.pyo
+${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/typing.py
+${PYSITELIB}/websockets/typing.pyc
+${PYSITELIB}/websockets/typing.pyo
${PYSITELIB}/websockets/uri.py
${PYSITELIB}/websockets/uri.pyc
${PYSITELIB}/websockets/uri.pyo
Index: pkgsrc/www/py-websockets/distinfo
diff -u pkgsrc/www/py-websockets/distinfo:1.6 pkgsrc/www/py-websockets/distinfo:1.7
--- pkgsrc/www/py-websockets/distinfo:1.6 Tue Nov 6 14:31:48 2018
+++ pkgsrc/www/py-websockets/distinfo Tue Nov 26 19:08:55 2019
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2018/11/06 14:31:48 adam Exp $
+$NetBSD: distinfo,v 1.7 2019/11/26 19:08:55 adam Exp $
-SHA1 (websockets-7.0.tar.gz) = b27a72fcfbfc3cb37794d579f7242b8f178d8003
-RMD160 (websockets-7.0.tar.gz) = a1b1cc9b3d79a4319060502bd747f3007150bd96
-SHA512 (websockets-7.0.tar.gz) = 3f3493c920ca3e07c143fdc443a2b1da142dda52ca6291566a3042daee6f5f702a9b091411a915da3896fe0f48cf174d9ef6fd40cf09483bc90928ee67ebd438
-Size (websockets-7.0.tar.gz) = 49257 bytes
+SHA1 (websockets-8.1.tar.gz) = 4695741b2ceb70e29ee33b7252814a09078975e4
+RMD160 (websockets-8.1.tar.gz) = 692203dc40eaade9a43b8506749c09fbdbe8ec6a
+SHA512 (websockets-8.1.tar.gz) = 408e35d7a908830d51b3b9b73a1c34b1b2dbabbbbd2431515bc0fba7f6ec7db402a55fd00dc737d344549fd5d5f2d90e27cef7cd5f7847e4a1545d3c74db007c
+Size (websockets-8.1.tar.gz) = 58874 bytes
Home |
Main Index |
Thread Index |
Old Index