SHA256
14
0
forked from pool/python-h2

Accepting request 730347 from devel:languages:python

- 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/request/show/730347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-h2?expand=0&rev=6
This commit is contained in:
2019-09-23 10:08:55 +00:00
committed by Git OBS Bridge
5 changed files with 11 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd07e865a3272ac6ef195d8904de92dc7b38dc28297ec39cfa22716b6d62e6eb
size 2213210

3
h2-3.1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b8a32bd282594424c0ac55845377eea13fa54fe4a8db012f3a198ed923dc3ab4
size 2214612

View File

@@ -1,24 +0,0 @@
From 04eb49ca8c7302a6dcb1f3b93994e928a260a12b Mon Sep 17 00:00:00 2001
From: pgjones <philip.graham.jones@googlemail.com>
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(

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 12 10:04:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <tchvatal@suse.com>

View File

@@ -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