From db0d01f340e6db5094b27c4fd16ab47678c84b64f6ea97790483e0e1ddbee126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 12 Sep 2019 10:06:12 +0000 Subject: [PATCH] - Update to 3.1.1: * Ignore WINDOW_UPDATE and RST_STREAM frames received after stream closure. - Drop patch pytest5.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-h2?expand=0&rev=16 --- h2-3.1.0.tar.gz | 3 --- h2-3.1.1.tar.gz | 3 +++ pytest5.patch | 24 ------------------------ python-h2.changes | 7 +++++++ python-h2.spec | 4 +--- 5 files changed, 11 insertions(+), 30 deletions(-) delete mode 100644 h2-3.1.0.tar.gz create mode 100644 h2-3.1.1.tar.gz delete mode 100644 pytest5.patch diff --git a/h2-3.1.0.tar.gz b/h2-3.1.0.tar.gz deleted file mode 100644 index bcdf35d..0000000 --- a/h2-3.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd07e865a3272ac6ef195d8904de92dc7b38dc28297ec39cfa22716b6d62e6eb -size 2213210 diff --git a/h2-3.1.1.tar.gz b/h2-3.1.1.tar.gz new file mode 100644 index 0000000..102d25f --- /dev/null +++ b/h2-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8a32bd282594424c0ac55845377eea13fa54fe4a8db012f3a198ed923dc3ab4 +size 2214612 diff --git a/pytest5.patch b/pytest5.patch deleted file mode 100644 index 1409bb1..0000000 --- a/pytest5.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 04eb49ca8c7302a6dcb1f3b93994e928a260a12b Mon Sep 17 00:00:00 2001 -From: pgjones -Date: Sat, 20 Jul 2019 13:23:03 +0100 -Subject: [PATCH] Update dependencies - -Note that pytest>=5 cannot be used whilst Python 2 is still -supported. This will pass with pytest==5.0.1 though. ---- - test/test_invalid_headers.py | 2 +- - 3 files changed, 9 insertions(+), 9 deletions(-) - -diff --git a/test/test_invalid_headers.py b/test/test_invalid_headers.py -index bff071b3..a3799507 100644 ---- a/test/test_invalid_headers.py -+++ b/test/test_invalid_headers.py -@@ -204,7 +204,7 @@ def test_pseudo_headers_rejected_in_trailer(self, frame_factory): - # Raise exception if pseudo header in trailer - with pytest.raises(h2.exceptions.ProtocolError) as e: - c.receive_data(trailer) -- assert "pseudo-header in trailer" in str(e) -+ assert "pseudo-header in trailer" in str(e.value) - - # Test appropriate response frame is generated - expected_frame = frame_factory.build_goaway_frame( diff --git a/python-h2.changes b/python-h2.changes index 4fe9232..813c19b 100644 --- a/python-h2.changes +++ b/python-h2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Sep 12 10:04:22 UTC 2019 - Tomáš Chvátal + +- Update to 3.1.1: + * Ignore WINDOW_UPDATE and RST_STREAM frames received after stream closure. +- Drop patch pytest5.patch + ------------------------------------------------------------------- Fri Jul 26 10:02:54 UTC 2019 - Tomáš Chvátal diff --git a/python-h2.spec b/python-h2.spec index 10ac2f2..6f2dc5e 100644 --- a/python-h2.spec +++ b/python-h2.spec @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-h2 -Version: 3.1.0 +Version: 3.1.1 Release: 0 Summary: HTTP/2 State-Machine based protocol implementation License: MIT Group: Development/Languages/Python URL: https://github.com/python-hyper/hyper-h2 Source0: https://files.pythonhosted.org/packages/source/h/h2/h2-%{version}.tar.gz -Patch0: pytest5.patch BuildRequires: %{python_module hpack >= 2.3} BuildRequires: %{python_module hyperframe >= 5.2.0} BuildRequires: %{python_module hypothesis} @@ -51,7 +50,6 @@ your programming paradigm. %prep %setup -q -n h2-%{version} -%patch0 -p1 %build %python_build