pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-wsproto



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Apr  7 15:58:33 UTC 2019

Modified Files:
        pkgsrc/www/py-wsproto: Makefile PLIST distinfo
        pkgsrc/www/py-wsproto/patches: patch-setup.py

Log Message:
py-wsproto: updated to 0.14.0

0.14.0:
* Bugfix clarify subprotocol type as str not bytes.
* Support HTTP/2 WebSockets. This requires a HTTP/2 parser (not
  included), with hyper-h2 recommended. It renames
  handshake_extensions and hence is a breaking change.
* Bugfix badly formatted type hints.
* Bugfix minor issues identified by type checking.

0.13.0:
* Introduce a send method on the conenction which accepts the new
  events. This requires the following usage changes, ::
    connection.accept(subprotocol=subprotocol) -> connection.send(AcceptConnection(subprotocol=subprotocol))
    connection.send_data(data) -> connection.send(Message(payload=payload))
    connection.close(code) -> connection.send(CloseConnection(code=code))
    connection.ping() -> connection.send(Ping())
    connection.pong() -> connection.send(Pong())

* The Event structure is altered to allow for events to be sent and
  received, this requires the following name changes in existing code, ::
    ConnectionRequested -> Request
    ConnectionEstablished -> AcceptConnection
    ConnectionClosed -> CloseConnection
    DataReceived -> Message
    TextReceived -> TextMessage
    BytesReceived -> BytesMessage
    PingReceived -> Ping
    PongReceived -> Pong

* Introduce RejectConnection and RejectData events to be used by a
  server connection to reject rather than accept a connection or by a
  client connection to emit the rejection response. The RejectData
  event represents the rejection response body, if present.
* Add an extra_headers field to the AcceptConnection event in order to
  customise the acceptance response in server mode or to emit this
  information in client mode.
* Switch from Fail events being returned to RemoteProtocolErrors being
  raised.
* Switch from ValueErrors to LocalProtocolErrors being raised when
  an action is taken that is incompatible with the connection state or
  websocket standard.
* Enforce version checking in SERVER mode, only 13 is supported.
* Add an event_hint to RemoteProtocolErrors to hint at how to respond
  to issues.
* Switch from a bytes_to_send method to the send method
  returning the bytes to send directly. Responses to Ping and Close
  messages must now be sent (via send), with the Ping and
  CloseConnection events gaining a response method. This
  allows ::
    if isinstance(event, Ping):
        bytes_to_send = connection.send(event.response())
* Separate the handshake from the active connection handling. This
  allows the handshake and connection to be seperately used. By
  default though WSConnection does both.
* receive_bytes is renamed to receive_data and
  WSConnection should be imported from wsproto rather than
  wsproto.connection.

0.12.0:
* Support h11 ~0.8.1.
* Support Python 3.7.
* Make the close-handshake more explicit, by sending a close frame on
  reciept of a close frame.
* Bugfix fix deflate after a non-compressable message.
* Bugfix connection header acceptance, by accepting Connection header
  values that are comma separated lists.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/py-wsproto/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-wsproto/PLIST \
    pkgsrc/www/py-wsproto/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-wsproto/patches/patch-setup.py

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-wsproto/Makefile
diff -u pkgsrc/www/py-wsproto/Makefile:1.2 pkgsrc/www/py-wsproto/Makefile:1.3
--- pkgsrc/www/py-wsproto/Makefile:1.2  Tue Feb 27 06:57:26 2018
+++ pkgsrc/www/py-wsproto/Makefile      Sun Apr  7 15:58:32 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2018/02/27 06:57:26 adam Exp $
+# $NetBSD: Makefile,v 1.3 2019/04/07 15:58:32 adam Exp $
 
-DISTNAME=      wsproto-0.11.0
+DISTNAME=      wsproto-0.14.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/wsproto/}
@@ -11,14 +11,16 @@ COMMENT=    Pure Python, pure state-machine
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-h11>=0.7.0:../../www/py-h11
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
 .include "../../lang/python/pyversion.mk"
-
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-enum34>=1.0.4:../../devel/py-enum34
 .endif
 
 USE_LANGUAGES= # none
 
+PYSETUPTESTTARGET=     pytest
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-wsproto/PLIST
diff -u pkgsrc/www/py-wsproto/PLIST:1.1 pkgsrc/www/py-wsproto/PLIST:1.2
--- pkgsrc/www/py-wsproto/PLIST:1.1     Mon Feb 26 12:09:18 2018
+++ pkgsrc/www/py-wsproto/PLIST Sun Apr  7 15:58:32 2019
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/02/26 12:09:18 leot Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/04/07 15:58:32 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -22,6 +22,12 @@ ${PYSITELIB}/wsproto/extensions.pyo
 ${PYSITELIB}/wsproto/frame_protocol.py
 ${PYSITELIB}/wsproto/frame_protocol.pyc
 ${PYSITELIB}/wsproto/frame_protocol.pyo
+${PYSITELIB}/wsproto/handshake.py
+${PYSITELIB}/wsproto/handshake.pyc
+${PYSITELIB}/wsproto/handshake.pyo
 ${PYSITELIB}/wsproto/utf8validator.py
 ${PYSITELIB}/wsproto/utf8validator.pyc
 ${PYSITELIB}/wsproto/utf8validator.pyo
+${PYSITELIB}/wsproto/utilities.py
+${PYSITELIB}/wsproto/utilities.pyc
+${PYSITELIB}/wsproto/utilities.pyo
Index: pkgsrc/www/py-wsproto/distinfo
diff -u pkgsrc/www/py-wsproto/distinfo:1.1 pkgsrc/www/py-wsproto/distinfo:1.2
--- pkgsrc/www/py-wsproto/distinfo:1.1  Mon Feb 26 12:09:18 2018
+++ pkgsrc/www/py-wsproto/distinfo      Sun Apr  7 15:58:32 2019
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1 2018/02/26 12:09:18 leot Exp $
+$NetBSD: distinfo,v 1.2 2019/04/07 15:58:32 adam Exp $
 
-SHA1 (wsproto-0.11.0.tar.gz) = acfb9cd1c58ed2573843a6390d03fdfe808c6fed
-RMD160 (wsproto-0.11.0.tar.gz) = cdf698bd685916b2c27f1b40394174cd2773dcc0
-SHA512 (wsproto-0.11.0.tar.gz) = 583e030dc88971b3733e5e84e5fbaa70d6043d01485cabbbf45470baa31e4f511aea55e108132fc298aeae0031542af7bdd22b7ae25b11832179025a2fde4bdd
-Size (wsproto-0.11.0.tar.gz) = 41179 bytes
-SHA1 (patch-setup.py) = 6c229f58d9dd44a46322c849535a2d9ad657ac1d
+SHA1 (wsproto-0.14.0.tar.gz) = 7a8de9f54c2bea675f673c4c344a81c59ac3412c
+RMD160 (wsproto-0.14.0.tar.gz) = 525936c256da69977097490353c2feaf18978285
+SHA512 (wsproto-0.14.0.tar.gz) = 91ffc51229434b8a3c1517b22a082dce0078e38e0f5e7ad016aca9b4d4f2a77c2f9901ea9227e80e61009e70d3ffebb44ed9ae4c988d54a9807b45076e81d43f
+Size (wsproto-0.14.0.tar.gz) = 51540 bytes
+SHA1 (patch-setup.py) = bf4b6885ce51d8ea1bd95c0eb98b16bec60f25d2

Index: pkgsrc/www/py-wsproto/patches/patch-setup.py
diff -u pkgsrc/www/py-wsproto/patches/patch-setup.py:1.1 pkgsrc/www/py-wsproto/patches/patch-setup.py:1.2
--- pkgsrc/www/py-wsproto/patches/patch-setup.py:1.1    Mon Feb 26 12:09:18 2018
+++ pkgsrc/www/py-wsproto/patches/patch-setup.py        Sun Apr  7 15:58:33 2019
@@ -1,19 +1,25 @@
-$NetBSD: patch-setup.py,v 1.1 2018/02/26 12:09:18 leot Exp $
+$NetBSD: patch-setup.py,v 1.2 2019/04/07 15:58:33 adam Exp $
 
+Do not install tests.
 Avoid too strict version requirements.
 
---- setup.py.orig      2017-12-31 17:19:40.000000000 +0000
+--- setup.py.orig      2018-09-23 11:26:23.000000000 +0000
 +++ setup.py
-@@ -47,10 +47,10 @@ setup(
+@@ -35,7 +35,7 @@ setup(
+     author='Benno Rice',
+     author_email='benno%jeamland.net@localhost',
+     url='https://github.com/python-hyper/wsproto/',
+-    packages=find_packages(),
++    packages=find_packages(exclude=['test']),
+     package_data={'': ['LICENSE', 'README.rst']},
+     package_dir={'wsproto': 'wsproto'},
+     include_package_data=True,
+@@ -55,7 +55,7 @@ setup(
          'Programming Language :: Python :: Implementation :: PyPy',
      ],
      install_requires=[
--        'h11 ~= 0.7.0',  # means: 0.7.x where x >= 0
-+        'h11>=0.7.0',
+-        'h11 ~= 0.8.1',  # means: 0.8.x where x >= 1
++        'h11>=0.8.1',
      ],
      extras_require={
-         ':python_version == "2.7" or python_version == "3.3"':
--            ['enum34>=1.0.4, <2'],
-+            ['enum34>=1.0.4'],
-     }
- )
+         ':python_version == "2.7"':



Home | Main Index | Thread Index | Old Index