pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-websockets py-websockets: updated to 4.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6f0798c8d552
branches:  trunk
changeset: 371091:6f0798c8d552
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Nov 03 11:17:21 2017 +0000

description:
py-websockets: updated to 4.0.1

4.0:

Warning: Version 4.0 enables compression with the permessage-deflate extension.
In August 2017, Firefox and Chrome support it, but not Safari and IE.
Compression should improve performance but it increases RAM and CPU use.
If you want to disable compression, add compression=None when calling :func:`~server.serve()` or :func:`~client.connect()`.

Warning: Version 4.0 removes the ``state_name`` attribute of protocols.
Use protocol.state.name instead of protocol.state_name.

Also:
:class:`~protocol.WebSocketCommonProtocol` instances can be used as asynchronous iterators on Python ? 3.6. They yield incoming messages.
Added :func:`~websockets.server.unix_serve` for listening on Unix sockets.
Added the :attr:`~websockets.server.WebSocketServer.sockets` attribute.
Reorganized and extended documentation.
Aborted connections if they don't close within the configured timeout.
Rewrote connection termination to increase robustness in edge cases.
Stopped leaking pending tasks when :meth:`~asyncio.Task.cancel` is called on a connection while it's being closed.
Reduced verbosity of "Failing the WebSocket connection" logs.
Allowed extra_headers to override Server and User-Agent headers.

diffstat:

 www/py-websockets/Makefile |  16 ++++++++----
 www/py-websockets/PLIST    |  56 ++++++++++++++++++++++++++++++++++-----------
 www/py-websockets/distinfo |  10 ++++----
 3 files changed, 57 insertions(+), 25 deletions(-)

diffs (151 lines):

diff -r ca12bd8047a9 -r 6f0798c8d552 www/py-websockets/Makefile
--- a/www/py-websockets/Makefile        Fri Nov 03 11:05:42 2017 +0000
+++ b/www/py-websockets/Makefile        Fri Nov 03 11:17:21 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2017/08/22 08:47:50 adam Exp $
+# $NetBSD: Makefile,v 1.4 2017/11/03 11:17:21 adam Exp $
 
-DISTNAME=      websockets-3.4
+DISTNAME=      websockets-4.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/websockets/}
@@ -10,14 +10,18 @@
 COMMENT=       Implementation of the WebSocket Protocol (RFC 6455)
 LICENSE=       modified-bsd
 
-PYTHON_VERSIONS_ACCEPTED=      36 35 34
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/egg.mk"
 
-PLIST_VARS+=   py35p
+PLIST_VARS+=   py35 py36
 
-.if empty(_PYTHON_VERSION:M34*)
-PLIST.py35p=                           yes
+.if !empty(_PYTHON_VERSION:M35)
+PLIST.py35=            yes
+.endif
+.if !empty(_PYTHON_VERSION:M36)
+PLIST.py35=            yes
+PLIST.py36=            yes
 .endif
 
 .include "../../mk/bsd.pkg.mk"
diff -r ca12bd8047a9 -r 6f0798c8d552 www/py-websockets/PLIST
--- a/www/py-websockets/PLIST   Fri Nov 03 11:05:42 2017 +0000
+++ b/www/py-websockets/PLIST   Fri Nov 03 11:17:21 2017 +0000
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.3 2017/08/22 08:47:50 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2017/11/03 11:17:21 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/websockets/__init__.py
 ${PYSITELIB}/websockets/__init__.pyc
@@ -16,46 +15,75 @@
 ${PYSITELIB}/websockets/exceptions.py
 ${PYSITELIB}/websockets/exceptions.pyc
 ${PYSITELIB}/websockets/exceptions.pyo
+${PYSITELIB}/websockets/extensions/__init__.py
+${PYSITELIB}/websockets/extensions/__init__.pyc
+${PYSITELIB}/websockets/extensions/__init__.pyo
+${PYSITELIB}/websockets/extensions/base.py
+${PYSITELIB}/websockets/extensions/base.pyc
+${PYSITELIB}/websockets/extensions/base.pyo
+${PYSITELIB}/websockets/extensions/permessage_deflate.py
+${PYSITELIB}/websockets/extensions/permessage_deflate.pyc
+${PYSITELIB}/websockets/extensions/permessage_deflate.pyo
+${PYSITELIB}/websockets/extensions/test_base.py
+${PYSITELIB}/websockets/extensions/test_base.pyc
+${PYSITELIB}/websockets/extensions/test_base.pyo
+${PYSITELIB}/websockets/extensions/test_permessage_deflate.py
+${PYSITELIB}/websockets/extensions/test_permessage_deflate.pyc
+${PYSITELIB}/websockets/extensions/test_permessage_deflate.pyo
 ${PYSITELIB}/websockets/framing.py
 ${PYSITELIB}/websockets/framing.pyc
 ${PYSITELIB}/websockets/framing.pyo
 ${PYSITELIB}/websockets/handshake.py
 ${PYSITELIB}/websockets/handshake.pyc
 ${PYSITELIB}/websockets/handshake.pyo
+${PYSITELIB}/websockets/headers.py
+${PYSITELIB}/websockets/headers.pyc
+${PYSITELIB}/websockets/headers.pyo
 ${PYSITELIB}/websockets/http.py
 ${PYSITELIB}/websockets/http.pyc
 ${PYSITELIB}/websockets/http.pyo
 ${PYSITELIB}/websockets/protocol.py
 ${PYSITELIB}/websockets/protocol.pyc
 ${PYSITELIB}/websockets/protocol.pyo
-${PLIST.py35p}${PYSITELIB}/websockets/py35/__init__.py
-${PLIST.py35p}${PYSITELIB}/websockets/py35/__init__.pyc
-${PLIST.py35p}${PYSITELIB}/websockets/py35/__init__.pyo
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client.py
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client.pyc
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client.pyo
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client_server.py
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client_server.pyc
-${PLIST.py35p}${PYSITELIB}/websockets/py35/client_server.pyo
-${PLIST.py35p}${PYSITELIB}/websockets/py35/server.py
-${PLIST.py35p}${PYSITELIB}/websockets/py35/server.pyc
-${PLIST.py35p}${PYSITELIB}/websockets/py35/server.pyo
+${PYSITELIB}/websockets/py35/__init__.py
+${PYSITELIB}/websockets/py35/__init__.pyc
+${PYSITELIB}/websockets/py35/__init__.pyo
+${PYSITELIB}/websockets/py35/_test_client_server.py
+${PLIST.py35}${PYSITELIB}/websockets/py35/_test_client_server.pyc
+${PLIST.py35}${PYSITELIB}/websockets/py35/_test_client_server.pyo
+${PYSITELIB}/websockets/py36/__init__.py
+${PYSITELIB}/websockets/py36/__init__.pyc
+${PYSITELIB}/websockets/py36/__init__.pyo
+${PYSITELIB}/websockets/py36/_test_client_server.py
+${PLIST.py35}${PYSITELIB}/websockets/py36/_test_client_server.pyc
+${PLIST.py35}${PYSITELIB}/websockets/py36/_test_client_server.pyo
+${PYSITELIB}/websockets/py36/protocol.py
+${PLIST.py36}${PYSITELIB}/websockets/py36/protocol.pyc
+${PLIST.py36}${PYSITELIB}/websockets/py36/protocol.pyo
 ${PYSITELIB}/websockets/server.py
 ${PYSITELIB}/websockets/server.pyc
 ${PYSITELIB}/websockets/server.pyo
+${PYSITELIB}/websockets/speedups.c
 ${PYSITELIB}/websockets/speedups.so
 ${PYSITELIB}/websockets/test_client_server.py
 ${PYSITELIB}/websockets/test_client_server.pyc
 ${PYSITELIB}/websockets/test_client_server.pyo
+${PYSITELIB}/websockets/test_exceptions.py
+${PYSITELIB}/websockets/test_exceptions.pyc
+${PYSITELIB}/websockets/test_exceptions.pyo
 ${PYSITELIB}/websockets/test_framing.py
 ${PYSITELIB}/websockets/test_framing.pyc
 ${PYSITELIB}/websockets/test_framing.pyo
 ${PYSITELIB}/websockets/test_handshake.py
 ${PYSITELIB}/websockets/test_handshake.pyc
 ${PYSITELIB}/websockets/test_handshake.pyo
+${PYSITELIB}/websockets/test_headers.py
+${PYSITELIB}/websockets/test_headers.pyc
+${PYSITELIB}/websockets/test_headers.pyo
 ${PYSITELIB}/websockets/test_http.py
 ${PYSITELIB}/websockets/test_http.pyc
 ${PYSITELIB}/websockets/test_http.pyo
+${PYSITELIB}/websockets/test_localhost.pem
 ${PYSITELIB}/websockets/test_protocol.py
 ${PYSITELIB}/websockets/test_protocol.pyc
 ${PYSITELIB}/websockets/test_protocol.pyo
diff -r ca12bd8047a9 -r 6f0798c8d552 www/py-websockets/distinfo
--- a/www/py-websockets/distinfo        Fri Nov 03 11:05:42 2017 +0000
+++ b/www/py-websockets/distinfo        Fri Nov 03 11:17:21 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/08/22 08:47:50 adam Exp $
+$NetBSD: distinfo,v 1.3 2017/11/03 11:17:21 adam Exp $
 
-SHA1 (websockets-3.4.tar.gz) = 98955cea7efc3444c6135128aeca0290fadd2ebb
-RMD160 (websockets-3.4.tar.gz) = ef8aa6cbdfa6886e2c50196c0308fe9fb61eea0a
-SHA512 (websockets-3.4.tar.gz) = 24aacdbd2c9c1bad877d4bf37e45d7a32534d9a33a2bfea27dd8ddb16734dbd685317250c6564b237b86d75bc692fb798c61a7bb9391e693fbe1c00335fd472d
-Size (websockets-3.4.tar.gz) = 41618 bytes
+SHA1 (websockets-4.0.1.tar.gz) = 9118f0468bf3df933735ffdff5fa5f866abf16d5
+RMD160 (websockets-4.0.1.tar.gz) = 7a89af5de4eae356997a09b54cddfd25f9f83567
+SHA512 (websockets-4.0.1.tar.gz) = a60a453f33f1005c7ec7cee10f6ba6cca18628306de51872ad5a910f12f39831049f3a67ff4c3cc62efce47ce030b9e9d075d4418e8da2dcc594b8824ce21dfb
+Size (websockets-4.0.1.tar.gz) = 61839 bytes



Home | Main Index | Thread Index | Old Index