From b217623bd9a1383d712956eb7bbea22be5652f14 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 8 Jan 2020 19:08:18 +0000 Subject: py-h2: updated to 3.1.1 3.1.1: Bugfixes - Ignore WINDOW_UPDATE and RST_STREAM frames received after stream closure. 3.1.0: API Changes (Backward-Incompatible) - ``h2.connection.H2Connection.data_to_send`` first and only argument ``amt`` was renamed to ``amount``. - Support for Python 3.3 has been removed. API Changes (Backward-Compatible) - ``h2.connection.H2Connection.send_data`` now supports ``data`` parameter being a ``memoryview`` object. - Refactor ping-related events: a ``h2.events.PingReceived`` event is fired when a PING frame is received and a ``h2.events.PingAckReceived`` event is fired when a PING frame with an ACK flag is received. ``h2.events.PingAcknowledged`` is deprecated in favour of the identical ``h2.events.PingAckReceived``. - Added ``ENABLE_CONNECT_PROTOCOL`` to ``h2.settings.SettingCodes``. - Support ``CONNECT`` requests with a ``:protocol`` pseudo header thereby supporting RFC 8441. - A limit to the number of closed streams kept in memory by the connection is applied. It can be configured by ``h2.connection.H2Connection.MAX_CLOSED_STREAMS``. Bugfixes - Debug logging when stream_id is None is now fixed and no longer errors. --- www/py-h2/Makefile | 18 +++++++++++++----- www/py-h2/distinfo | 10 +++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/www/py-h2/Makefile b/www/py-h2/Makefile index 47997e06c33..a4b0efe9f67 100644 --- a/www/py-h2/Makefile +++ b/www/py-h2/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2017/06/21 09:57:57 adam Exp $ +# $NetBSD: Makefile,v 1.6 2020/01/08 19:08:18 adam Exp $ -DISTNAME= h2-3.0.1 +DISTNAME= h2-3.1.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -CATEGORIES= www +CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=h/h2/} MAINTAINER= pkgsrc-users@NetBSD.org @@ -10,10 +10,18 @@ HOMEPAGE= http://hyper.rtfd.org/ COMMENT= HTTP/2 State-Machine based protocol implementation LICENSE= mit +DEPENDS+= ${PYPKGPREFIX}-hyperframe>=5.2.0:../../www/py-hyperframe +DEPENDS+= ${PYPKGPREFIX}-hpack>=2.3:../../net/py-hpack +TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} == 27 +DEPENDS+= ${PYPKGPREFIX}-enum34>=1.1.6:../../devel/py-enum34 +.endif + USE_LANGUAGES= # none -DEPENDS+= ${PYPKGPREFIX}-hyperframe>=3.1:../../www/py-hyperframe -DEPENDS+= ${PYPKGPREFIX}-hpack>=2.2:../../net/py-hpack +do-test: + cd ${WRKSRC} && pytest-${PYVERSSUFFIX} test .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/py-h2/distinfo b/www/py-h2/distinfo index dfb1b86ad2c..a6127ececae 100644 --- a/www/py-h2/distinfo +++ b/www/py-h2/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2017/06/21 09:57:57 adam Exp $ +$NetBSD: distinfo,v 1.5 2020/01/08 19:08:18 adam Exp $ -SHA1 (h2-3.0.1.tar.gz) = cf645989412368f6c925145e9e97f946b4e20ee4 -RMD160 (h2-3.0.1.tar.gz) = 209dbe04edb223e4408f4730cb7e0ef13a21c79e -SHA512 (h2-3.0.1.tar.gz) = 4206ed9b298477b02cb4ae6be3f3e421225f14b25c327a324544f8ffe2246b949d8f1f0171f2c6821afb32aa7a8c1ac976e1221217c0296d0e6ebea8877f4d02 -Size (h2-3.0.1.tar.gz) = 2208816 bytes +SHA1 (h2-3.1.1.tar.gz) = c3f8ec250f663f490e06f1c9133dc84ffd038a84 +RMD160 (h2-3.1.1.tar.gz) = b65a0b4dcc2ad03b1021648eb35d01b364fc7e1c +SHA512 (h2-3.1.1.tar.gz) = 6595b23f5b76eab7cd8b29fc96c9014fc58fe2974b306a067d5a0f6e3d2ce51a3e582bffc0004910eac7246add4347ac62db714de8f7def8196a65836db50d24 +Size (h2-3.1.1.tar.gz) = 2214612 bytes -- cgit v1.2.3