diff options
author | leot <leot@pkgsrc.org> | 2017-04-14 13:10:13 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2017-04-14 13:10:13 +0000 |
commit | 0f6aed78b92274186e8e309216e8fb1f152f89e3 (patch) | |
tree | 6392e145c61c3129119912b0a451fb73bc4f40dd /www | |
parent | cbf9f4f5caef98d9bd2f079c69a48ba8aba70676 (diff) | |
download | pkgsrc-0f6aed78b92274186e8e309216e8fb1f152f89e3.tar.gz |
Update www/py-h2 to 2.5.2
Changes:
2.5.2 (2017-01-27)
------------------
- Resolved issue where the ``HTTP2-Settings`` header value for plaintext
upgrade that was emitted by ``initiate_upgrade_connection`` included the
*entire* ``SETTINGS`` frame, instead of just the payload.
- Resolved issue where the ``HTTP2-Settings`` header value sent by a client for
plaintext upgrade would be ignored by ``initiate_upgrade_connection``, rather
than have those settings applied appropriately.
2.4.3 (2017-01-27)
------------------
- Resolved issue where the ``HTTP2-Settings`` header value for plaintext
upgrade that was emitted by ``initiate_upgrade_connection`` included the
*entire* ``SETTINGS`` frame, instead of just the payload.
- Resolved issue where the ``HTTP2-Settings`` header value sent by a client for
plaintext upgrade would be ignored by ``initiate_upgrade_connection``, rather
than have those settings applied appropriately.
2.3.4 (2017-01-27)
------------------
- Resolved issue where the ``HTTP2-Settings`` header value for plaintext
upgrade that was emitted by ``initiate_upgrade_connection`` included the
*entire* ``SETTINGS`` frame, instead of just the payload.
- Resolved issue where the ``HTTP2-Settings`` header value sent by a client for
plaintext upgrade would be ignored by ``initiate_upgrade_connection``, rather
than have those settings applied appropriately.
2.5.1 (2016-12-17)
------------------
Bugfixes
~~~~~~~~
- Remote peers are now allowed to send zero or any positive number as a value
for ``SETTINGS_MAX_HEADER_LIST_SIZE``, where previously sending zero would
raise a ``InvalidSettingsValueError``.
2.5.0 (2016-10-25)
------------------
API Changes (Backward-Compatible)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Added a new ``H2Configuration`` object that allows rich configuration of
a ``H2Connection``. This object supersedes the prior keyword arguments to the
``H2Connection`` object, which are now deprecated and will be removed in 3.0.
- Added support for automated window management via the
``acknowledge_received_data`` method. See the documentation for more details.
- Added a ``DenialOfServiceError`` that is raised whenever a behaviour that
looks like a DoS attempt is encountered: for example, an overly large
decompressed header list. This is a subclass of ``ProtocolError``.
- Added support for setting and managing ``SETTINGS_MAX_HEADER_LIST_SIZE``.
This setting is now defaulted to 64kB.
- Added ``h2.errors.ErrorCodes``, an enum that is used to store all the HTTP/2
error codes. This allows us to use a better printed representation of the
error code in most places that it is used.
- The ``error_code`` fields on ``ConnectionTerminated`` and ``StreamReset``
events have been updated to be instances of ``ErrorCodes`` whenever they
correspond to a known error code. When they are an unknown error code, they
are instead ``int``. As ``ErrorCodes`` is a subclass of ``int``, this is
non-breaking.
- Deprecated the other fields in ``h2.errors``. These will be removed in 3.0.0.
Bugfixes
~~~~~~~~
- Correctly reject request header blocks with neither :authority nor Host
headers, or header blocks which contain mismatched :authority and Host
headers, per RFC 7540 Section 8.1.2.3.
- Correctly expect that responses to HEAD requests will have no body regardless
of the value of the Content-Length header, and reject those that do.
- Correctly refuse to send header blocks that contain neither :authority nor
Host headers, or header blocks which contain mismatched :authority and Host
headers, per RFC 7540 Section 8.1.2.3.
- Hyper-h2 will now reject header field names and values that contain leading
or trailing whitespace.
- Correctly strip leading/trailing whitespace from header field names and
values.
- Correctly refuse to send header blocks with a TE header whose value is not
``trailers``, per RFC 7540 Section 8.1.2.2.
- Correctly refuse to send header blocks with connection-specific headers,
per RFC 7540 Section 8.1.2.2.
- Correctly refuse to send header blocks that contain duplicate pseudo-header
fields, or with pseudo-header fields that appear after ordinary header fields,
per RFC 7540 Section 8.1.2.1.
This may cause passing a dictionary as the header block to ``send_headers``
to throw a ``ProtocolError``, because dictionaries are unordered and so they
may trip this check. Passing dictionaries here is deprecated, and callers
should change to using a sequence of 2-tuples as their header blocks.
- Correctly reject trailers that contain HTTP/2 pseudo-header fields, per RFC
7540 Section 8.1.2.1.
- Correctly refuse to send trailers that contain HTTP/2 pseudo-header fields,
per RFC 7540 Section 8.1.2.1.
- Correctly reject responses that do not contain the ``:status`` header field,
per RFC 7540 Section 8.1.2.4.
- Correctly refuse to send responses that do not contain the ``:status`` header
field, per RFC 7540 Section 8.1.2.4.
- Correctly update the maximum frame size when the user updates the value of
that setting. Prior to this release, if the user updated the maximum frame
size hyper-h2 would ignore the update, preventing the remote peer from using
the higher frame sizes.
2.4.2 (2016-10-25)
------------------
Bugfixes
~~~~~~~~
- Correctly update the maximum frame size when the user updates the value of
that setting. Prior to this release, if the user updated the maximum frame
size hyper-h2 would ignore the update, preventing the remote peer from using
the higher frame sizes.
2.3.3 (2016-10-25)
------------------
Bugfixes
~~~~~~~~
- Correctly update the maximum frame size when the user updates the value of
that setting. Prior to this release, if the user updated the maximum frame
size hyper-h2 would ignore the update, preventing the remote peer from using
the higher frame sizes.
2.2.7 (2016-10-25)
------------------
*Final 2.2.X release*
Bugfixes
~~~~~~~~
- Correctly update the maximum frame size when the user updates the value of
that setting. Prior to this release, if the user updated the maximum frame
size hyper-h2 would ignore the update, preventing the remote peer from using
the higher frame sizes.
2.4.1 (2016-08-23)
------------------
Bugfixes
~~~~~~~~
- Correctly expect that responses to HEAD requests will have no body regardless
of the value of the Content-Length header, and reject those that do.
2.3.2 (2016-08-23)
------------------
Bugfixes
~~~~~~~~
- Correctly expect that responses to HEAD requests will have no body regardless
of the value of the Content-Length header, and reject those that do.
2.4.0 (2016-07-01)
------------------
API Changes (Backward-Compatible)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Adds ``additional_data`` to ``H2Connection.close_connection``, allowing the
user to send additional debug data on the GOAWAY frame.
- Adds ``last_stream_id`` to ``H2Connection.close_connection``, allowing the
user to manually control what the reported last stream ID is.
- Add new method: ``prioritize``.
- Add support for emitting stream priority information when sending headers
frames using three new keyword arguments: ``priority_weight``,
``priority_depends_on``, and ``priority_exclusive``.
- Add support for "related events": events that fire simultaneously on a single
frame.
2.3.1 (2016-05-12)
------------------
Bugfixes
~~~~~~~~
- Resolved ``AttributeError`` encountered when receiving more than one sequence
of CONTINUATION frames on a given connection.
2.2.5 (2016-05-12)
------------------
Bugfixes
~~~~~~~~
- Resolved ``AttributeError`` encountered when receiving more than one sequence
of CONTINUATION frames on a given connection.
2.3.0 (2016-04-26)
------------------
API Changes (Backward-Compatible)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Added a new flag to the ``H2Connection`` constructor: ``header_encoding``,
that controls what encoding is used (if any) to decode the headers from bytes
to unicode. This defaults to UTF-8 for backward compatibility. To disable the
decode and use bytes exclusively, set the field to False, None, or the empty
string. This affects all headers, including those pushed by servers.
- Bumped the minimum version of HPACK allowed from 2.0 to 2.2.
- Added support for advertising RFC 7838 Alternative services.
- Allowed users to provide ``hpack.HeaderTuple`` and
``hpack.NeverIndexedHeaderTuple`` objects to all methods that send headers.
- Changed all events that carry headers to emit ``hpack.HeaderTuple`` and
``hpack.NeverIndexedHeaderTuple`` instead of plain tuples. This allows users
to maintain header indexing state.
- Added support for plaintext upgrade with the ``initiate_upgrade_connection``
method.
Bugfixes
~~~~~~~~
- Automatically ensure that all ``Authorization`` and ``Proxy-Authorization``
headers, as well as short ``Cookie`` headers, are prevented from being added
to encoding contexts.
2.2.4 (2016-04-25)
------------------
Bugfixes
~~~~~~~~
- Correctly forbid pseudo-headers that were not defined in RFC 7540.
- Ignore AltSvc frames, rather than exploding when receiving them.
2.1.5 (2016-04-25)
------------------
*Final 2.1.X release*
Bugfixes
~~~~~~~~
- Correctly forbid pseudo-headers that were not defined in RFC 7540.
- Ignore AltSvc frames, rather than exploding when receiving them.
Diffstat (limited to 'www')
-rw-r--r-- | www/py-h2/Makefile | 6 | ||||
-rw-r--r-- | www/py-h2/PLIST | 42 | ||||
-rw-r--r-- | www/py-h2/distinfo | 12 | ||||
-rw-r--r-- | www/py-h2/patches/patch-setup.py | 15 |
4 files changed, 39 insertions, 36 deletions
diff --git a/www/py-h2/Makefile b/www/py-h2/Makefile index b4bd689c416..f320affb1b8 100644 --- a/www/py-h2/Makefile +++ b/www/py-h2/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2016/06/01 12:35:13 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2017/04/14 13:10:13 leot Exp $ -DISTNAME= h2-2.2.3 +DISTNAME= h2-2.5.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www MASTER_SITES= ${MASTER_SITE_PYPI:=h/h2/} @@ -13,7 +13,7 @@ LICENSE= mit USE_LANGUAGES= # none DEPENDS+= ${PYPKGPREFIX}-hyperframe>=3.1:../../www/py-hyperframe -DEPENDS+= ${PYPKGPREFIX}-hpack>=2.0:../../net/py-hpack +DEPENDS+= ${PYPKGPREFIX}-hpack>=2.2:../../net/py-hpack .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/py-h2/PLIST b/www/py-h2/PLIST index 966d505553a..6e1c489a1bd 100644 --- a/www/py-h2/PLIST +++ b/www/py-h2/PLIST @@ -1,33 +1,39 @@ -@comment $NetBSD: PLIST,v 1.1 2016/02/16 13:49:56 leot Exp $ +@comment $NetBSD: PLIST,v 1.2 2017/04/14 13:10:13 leot 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}/h2/__init__.py -${PYSITELIB}/h2/__init__.pyc ${PYSITELIB}/h2/__init__.pyo -${PYSITELIB}/h2/connection.py -${PYSITELIB}/h2/connection.pyc +${PYSITELIB}/h2/__init__.pyc +${PYSITELIB}/h2/config.pyo +${PYSITELIB}/h2/config.pyc ${PYSITELIB}/h2/connection.pyo -${PYSITELIB}/h2/errors.py -${PYSITELIB}/h2/errors.pyc +${PYSITELIB}/h2/connection.pyc ${PYSITELIB}/h2/errors.pyo -${PYSITELIB}/h2/events.py -${PYSITELIB}/h2/events.pyc +${PYSITELIB}/h2/errors.pyc ${PYSITELIB}/h2/events.pyo -${PYSITELIB}/h2/exceptions.py -${PYSITELIB}/h2/exceptions.pyc +${PYSITELIB}/h2/events.pyc ${PYSITELIB}/h2/exceptions.pyo -${PYSITELIB}/h2/frame_buffer.py -${PYSITELIB}/h2/frame_buffer.pyc +${PYSITELIB}/h2/exceptions.pyc ${PYSITELIB}/h2/frame_buffer.pyo -${PYSITELIB}/h2/settings.py -${PYSITELIB}/h2/settings.pyc +${PYSITELIB}/h2/frame_buffer.pyc ${PYSITELIB}/h2/settings.pyo -${PYSITELIB}/h2/stream.py -${PYSITELIB}/h2/stream.pyc +${PYSITELIB}/h2/settings.pyc ${PYSITELIB}/h2/stream.pyo -${PYSITELIB}/h2/utilities.py -${PYSITELIB}/h2/utilities.pyc +${PYSITELIB}/h2/stream.pyc ${PYSITELIB}/h2/utilities.pyo +${PYSITELIB}/h2/utilities.pyc +${PYSITELIB}/h2/windows.pyo +${PYSITELIB}/h2/windows.pyc +${PYSITELIB}/h2/config.py +${PYSITELIB}/h2/connection.py +${PYSITELIB}/h2/errors.py +${PYSITELIB}/h2/events.py +${PYSITELIB}/h2/exceptions.py +${PYSITELIB}/h2/frame_buffer.py +${PYSITELIB}/h2/settings.py +${PYSITELIB}/h2/stream.py +${PYSITELIB}/h2/utilities.py +${PYSITELIB}/h2/windows.py diff --git a/www/py-h2/distinfo b/www/py-h2/distinfo index 16543542b17..9ebdae4fdbb 100644 --- a/www/py-h2/distinfo +++ b/www/py-h2/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.2 2016/04/20 16:10:14 leot Exp $ +$NetBSD: distinfo,v 1.3 2017/04/14 13:10:13 leot Exp $ -SHA1 (h2-2.2.3.tar.gz) = 0c6c3ce06169b54217ff144ef4680953feb25e10 -RMD160 (h2-2.2.3.tar.gz) = 12b1e8ed50e0772239be638ac830590820f8c82f -SHA512 (h2-2.2.3.tar.gz) = 103ea2b4b48d0407f3e5075ed29e7bd3c5ca3e62b0655c051bf3410e828ce25dd7e7401667ff6d10c425656d1a2b53aebe0a505165f1d8d8232cc9927ce6dafa -Size (h2-2.2.3.tar.gz) = 60811 bytes -SHA1 (patch-setup.py) = f1b4b724e17bbe03a8ef64b4cdfe71cad4b46da6 +SHA1 (h2-2.5.2.tar.gz) = 20f11085faa4b88c5190949d79d7674fe65f62fe +RMD160 (h2-2.5.2.tar.gz) = 6de354e7341500b02b032c87132b3a8b90fa202e +SHA512 (h2-2.5.2.tar.gz) = cc7a013c9c48b9a62ad075a265f83e88f1b1fe6eb04a6e1e71b1d60bda2905c9994ceb0473c063149846f49a07477fb2ad7809e6f69f3f05550f58f252e8de04 +Size (h2-2.5.2.tar.gz) = 93755 bytes +SHA1 (patch-setup.py) = f549406f993fee558347c0e1d7ff1fe4f4595a15 diff --git a/www/py-h2/patches/patch-setup.py b/www/py-h2/patches/patch-setup.py index bd70c89ba91..fca9a856a76 100644 --- a/www/py-h2/patches/patch-setup.py +++ b/www/py-h2/patches/patch-setup.py @@ -1,20 +1,17 @@ -$NetBSD: patch-setup.py,v 1.2 2016/04/20 16:10:14 leot Exp $ +$NetBSD: patch-setup.py,v 1.3 2017/04/14 13:10:13 leot Exp $ Avoid too strict version requirements. ---- setup.py.orig 2016-04-13 11:17:13.000000000 +0000 +--- setup.py.orig 2016-08-23 13:35:40.000000000 +0000 +++ setup.py -@@ -61,10 +61,10 @@ setup( +@@ -61,8 +61,8 @@ setup( 'Programming Language :: Python :: Implementation :: PyPy', ], install_requires=[ - 'hyperframe>=3.1, <5, !=4.0.0', -- 'hpack>=2.0, <3', +- 'hpack>=2.2, <3', + 'hyperframe>=3.1', -+ 'hpack>=2.0', ++ 'hpack>=2.2', ], extras_require={ -- ':python_version == "2.7" or python_version == "3.3"': ['enum34>=1.0.4, <2'], -+ ':python_version == "2.7" or python_version == "3.3"': ['enum34>=1.0.4'], - } - ) + ':python_version == "2.7" or python_version == "3.3"': ['enum34>=1.0.4, <2'], |