pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-websockets 3.4:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bc77eee7141e
branches:  trunk
changeset: 367029:bc77eee7141e
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Aug 22 08:47:50 2017 +0000

description:
3.4:
Renamed :func:`~websockets.server.serve()` and :func:`~websockets.client.connect()`'s klass argument to create_protocol to reflect that it can also be a callable. For backwards compatibility, klass 
is still supported.
:func:`~websockets.server.serve` can be used as an asynchronous context manager on Python ? 3.5.
Added support for customizing handling of incoming connections with :meth:`~websockets.server.WebSocketServerProtocol.process_request()`.
Made read and write buffer sizes configurable.
Rewrote HTTP handling for simplicity and performance.
Added an optional C extension to speed up low level operations.
An invalid response status code during :func:`~websockets.client.connect` now raises :class:`~websockets.exceptions.InvalidStatusCode` with a code attribute.

diffstat:

 www/py-websockets/Makefile               |   4 ++--
 www/py-websockets/PLIST                  |  15 ++++++++++++++-
 www/py-websockets/distinfo               |  11 +++++------
 www/py-websockets/patches/patch-setup.py |  20 --------------------
 4 files changed, 21 insertions(+), 29 deletions(-)

diffs (97 lines):

diff -r 2840aaf23f15 -r bc77eee7141e www/py-websockets/Makefile
--- a/www/py-websockets/Makefile        Tue Aug 22 08:24:26 2017 +0000
+++ b/www/py-websockets/Makefile        Tue Aug 22 08:47:50 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2017/07/01 22:13:55 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2017/08/22 08:47:50 adam Exp $
 
-DISTNAME=      websockets-3.3
+DISTNAME=      websockets-3.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/websockets/}
diff -r 2840aaf23f15 -r bc77eee7141e www/py-websockets/PLIST
--- a/www/py-websockets/PLIST   Tue Aug 22 08:24:26 2017 +0000
+++ b/www/py-websockets/PLIST   Tue Aug 22 08:47:50 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/07/01 22:13:55 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/08/22 08:47:50 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -37,9 +37,13 @@
 ${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/server.py
 ${PYSITELIB}/websockets/server.pyc
 ${PYSITELIB}/websockets/server.pyo
+${PYSITELIB}/websockets/speedups.so
 ${PYSITELIB}/websockets/test_client_server.py
 ${PYSITELIB}/websockets/test_client_server.pyc
 ${PYSITELIB}/websockets/test_client_server.pyo
@@ -55,12 +59,21 @@
 ${PYSITELIB}/websockets/test_protocol.py
 ${PYSITELIB}/websockets/test_protocol.pyc
 ${PYSITELIB}/websockets/test_protocol.pyo
+${PYSITELIB}/websockets/test_speedups.py
+${PYSITELIB}/websockets/test_speedups.pyc
+${PYSITELIB}/websockets/test_speedups.pyo
 ${PYSITELIB}/websockets/test_uri.py
 ${PYSITELIB}/websockets/test_uri.pyc
 ${PYSITELIB}/websockets/test_uri.pyo
+${PYSITELIB}/websockets/test_utils.py
+${PYSITELIB}/websockets/test_utils.pyc
+${PYSITELIB}/websockets/test_utils.pyo
 ${PYSITELIB}/websockets/uri.py
 ${PYSITELIB}/websockets/uri.pyc
 ${PYSITELIB}/websockets/uri.pyo
+${PYSITELIB}/websockets/utils.py
+${PYSITELIB}/websockets/utils.pyc
+${PYSITELIB}/websockets/utils.pyo
 ${PYSITELIB}/websockets/version.py
 ${PYSITELIB}/websockets/version.pyc
 ${PYSITELIB}/websockets/version.pyo
diff -r 2840aaf23f15 -r bc77eee7141e www/py-websockets/distinfo
--- a/www/py-websockets/distinfo        Tue Aug 22 08:24:26 2017 +0000
+++ b/www/py-websockets/distinfo        Tue Aug 22 08:47:50 2017 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.1 2017/06/24 07:30:18 adam Exp $
+$NetBSD: distinfo,v 1.2 2017/08/22 08:47:50 adam Exp $
 
-SHA1 (websockets-3.3.tar.gz) = ab9a51b180e8ff557f49befb673bb5f21778b532
-RMD160 (websockets-3.3.tar.gz) = c97794ae8eace7c19f3b3041337044e6ce1d153b
-SHA512 (websockets-3.3.tar.gz) = 6f73a854bd00e7066c7a167eb218edcbed3eadfbe1f08d6d164192b0b2cd10263666eb55884cd8e1ddba08edf3bf951fc5ddb99fd32aa23ce4e5e2ad69b3ce8a
-Size (websockets-3.3.tar.gz) = 33852 bytes
-SHA1 (patch-setup.py) = 8cecab543470a7b9545d04de589dcd3b4deda7f9
+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
diff -r 2840aaf23f15 -r bc77eee7141e www/py-websockets/patches/patch-setup.py
--- a/www/py-websockets/patches/patch-setup.py  Tue Aug 22 08:24:26 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-setup.py,v 1.1 2017/06/24 07:30:18 adam Exp $
-
-Don't rely on UTF-8 being the default system encoding.
-https://github.com/aaugustin/websockets/commit/53f61fa9c4c3ba10789a1de86aa7a69b8f623414
-
---- setup.py.orig      2017-06-24 07:24:21.000000000 +0000
-+++ setup.py
-@@ -7,10 +7,10 @@ root_dir = os.path.abspath(os.path.dirna
- 
- description = "An implementation of the WebSocket Protocol (RFC 6455)"
- 
--with open(os.path.join(root_dir, 'README.rst')) as f:
-+with open(os.path.join(root_dir, 'README.rst'), encoding='utf-8') as f:
-     long_description = f.read()
- 
--with open(os.path.join(root_dir, 'websockets', 'version.py')) as f:
-+with open(os.path.join(root_dir, 'websockets', 'version.py'), encoding='utf-8') as f:
-     exec(f.read())
- 
- py_version = sys.version_info[:2]



Home | Main Index | Thread Index | Old Index