Hello community,
here is the log from the commit of package python-geventhttpclient for
openSUSE:Leap:15.2 checked in at 2020-02-21 10:50:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-geventhttpclient (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-geventhttpclient.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geventhttpclient"
Fri Feb 21 10:50:36 2020 rev:1 rq:775923 version:1.3.1
Changes:
--------
New Changes file:
--- /dev/null 2019-12-19 10:12:34.003146842 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-geventhttpclient.new.26092/python-geventhttpclient.changes
2020-02-21 10:50:36.603075891 +0100
@@ -0,0 +1,23 @@
+-------------------------------------------------------------------
+Fri Mar 22 10:03:15 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to skip online tests:
+ * gevent-mark-tests.patch
+
+-------------------------------------------------------------------
+Thu Mar 14 16:44:36 UTC 2019 - Jan Engelhardt <[email protected]>
+
+- Reduce marketing wording in the description.
+
+-------------------------------------------------------------------
+Thu Mar 14 15:17:18 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.3.1:
+ * no upstream changelog
+- Switch to singlespec
+- Enable tests
+
+-------------------------------------------------------------------
+Tue Sep 8 08:46:46 UTC 2015 - [email protected]
+
+- Initial packaging (version 1.1.0)
New:
----
LICENSE-MIT
gevent-mark-tests.patch
geventhttpclient-1.3.1.tar.gz
python-geventhttpclient.changes
python-geventhttpclient.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-geventhttpclient.spec ++++++
#
# spec file for package python-geventhttpclient
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-geventhttpclient
Version: 1.3.1
Release: 0
Summary: HTTP client library for gevent
License: MIT
Group: Development/Languages/Python
URL: http://github.com/gwik/geventhttpclient
Source:
https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/gwik/geventhttpclient/master/LICENSE-MIT
Patch0: gevent-mark-tests.patch
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi
Requires: python-gevent
Requires: python-six
%python_subpackages
%description
A concurrent HTTP client library for Python using gevent.
geventhttpclient uses a HTTP parser, written in C, originating from
nginx, extracted and modified by Joyent.
geventhttpclient has been designed for high concurrency and
streaming, and supports HTTP/1.1 persistent connections. More
generally, it is designed for pulling from REST APIs and streaming
APIs like Twitter's.
%prep
%setup -q -n geventhttpclient-%{version}
%patch0 -p1
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitearch}/geventhttpclient/tests/
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} $python
-mpytest src/geventhttpclient/tests -m 'not online'
%files %{python_files}
%license LICENSE-MIT
%{python_sitearch}/*
%changelog
++++++ LICENSE-MIT ++++++
http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright
Igor Sysoev.
Additional changes to http_parser.c are licensed under the same terms as NGINX
and
copyright Joyent, Inc. and other Node contributors. All rights reserved.
Python extension by Antonin Amand <[email protected]> licensed under
the same terms.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
++++++ gevent-mark-tests.patch ++++++
Index: geventhttpclient-1.3.1/src/geventhttpclient/tests/test_client.py
===================================================================
--- geventhttpclient-1.3.1.orig/src/geventhttpclient/tests/test_client.py
+++ geventhttpclient-1.3.1/src/geventhttpclient/tests/test_client.py
@@ -34,6 +34,7 @@ def wsgiserver(handler):
finally:
server.stop()
[email protected]
def test_client_simple():
client = HTTPClient('www.google.fr')
assert client.port == 80
@@ -42,6 +43,7 @@ def test_client_simple():
body = response.read()
assert len(body)
[email protected]
def test_client_without_leading_slash():
client = HTTPClient('www.google.fr')
with client.get("") as response:
@@ -50,9 +52,11 @@ def test_client_without_leading_slash():
assert(response.status_code in (200, 301, 302))
test_headers = {'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; de;
rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17'}
[email protected]
def test_client_with_default_headers():
client = HTTPClient.from_url('www.google.fr/', headers=test_headers)
[email protected]
def test_request_with_headers():
client = HTTPClient('www.google.fr')
response = client.get('/', headers=test_headers)
@@ -77,6 +81,7 @@ def test_build_request_invalid_host():
with pytest.raises(ValueError):
client._build_request('GET', 'http://www.spiegel.de/')
[email protected]
def test_response_context_manager():
client = HTTPClient.from_url('http://www.google.fr/')
r = None
@@ -89,6 +94,7 @@ def test_response_context_manager():
os.environ.get("TRAVIS") == "true",
reason="We have issues on travis with the SSL tests"
)
[email protected]
def test_client_ssl():
client = HTTPClient('www.google.fr', ssl=True)
assert client.port == 443
@@ -102,6 +108,7 @@ def test_client_ssl():
and os.environ.get("TRAVIS") == "true",
reason="We have issues on travis with the SSL tests"
)
[email protected]
def test_ssl_fail_invalid_certificate():
certs = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "oncert.pem")
@@ -110,6 +117,7 @@ def test_ssl_fail_invalid_certificate():
with pytest.raises(SSLError):
client.get('/')
[email protected]
def test_multi_queries_greenlet_safe():
client = HTTPClient('www.google.fr', concurrency=3)
group = gevent.pool.Group()