diff --git a/LICENSE-MIT b/LICENSE-MIT deleted file mode 100644 index 1a4c2bd..0000000 --- a/LICENSE-MIT +++ /dev/null @@ -1,26 +0,0 @@ -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 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. diff --git a/gevent-mark-tests.patch b/gevent-mark-tests.patch deleted file mode 100644 index 32d1a0e..0000000 --- a/gevent-mark-tests.patch +++ /dev/null @@ -1,64 +0,0 @@ -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() - -+@pytest.mark.online - 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) - -+@pytest.mark.online - 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'} -+@pytest.mark.online - def test_client_with_default_headers(): - client = HTTPClient.from_url('www.google.fr/', headers=test_headers) - -+@pytest.mark.online - 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/') - -+@pytest.mark.online - 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" - ) -+@pytest.mark.online - 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" - ) -+@pytest.mark.online - 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('/') - -+@pytest.mark.online - def test_multi_queries_greenlet_safe(): - client = HTTPClient('www.google.fr', concurrency=3) - group = gevent.pool.Group() diff --git a/geventhttpclient-1.3.1.tar.gz b/geventhttpclient-1.3.1.tar.gz deleted file mode 100644 index c627b9f..0000000 --- a/geventhttpclient-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd87af8854f5fb05738916c8973671f7035568aec69b7c842887d6faf9c0a01d -size 82598 diff --git a/geventhttpclient-1.4.4.tar.gz b/geventhttpclient-1.4.4.tar.gz new file mode 100644 index 0000000..e2c6a89 --- /dev/null +++ b/geventhttpclient-1.4.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f59e5153f22e4a0be27b48aece8e45e19c1da294f8c49442b1c9e4d152c5c4c3 +size 57620 diff --git a/python-geventhttpclient.changes b/python-geventhttpclient.changes index 2bd6448..868080b 100644 --- a/python-geventhttpclient.changes +++ b/python-geventhttpclient.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Aug 1 05:08:20 UTC 2020 - John Vandenberg + +- Remove gevent-mark-tests.patch and LICENSE-MIT that are + now incorporated upstream +- Update to v1.4.4 + * Add kwargs to exception objects representation +- from v1.4.3 + * Fix Unhandled UnicodeDecodeError exception if response with + status 400 and request contains binary payload +- from v1.4.0 + * httpparser: update http parser to 2.9.4 + ------------------------------------------------------------------- Tue Jan 14 11:07:00 UTC 2020 - Tomáš Chvátal diff --git a/python-geventhttpclient.spec b/python-geventhttpclient.spec index fbb7f63..777cbf0 100644 --- a/python-geventhttpclient.spec +++ b/python-geventhttpclient.spec @@ -18,17 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geventhttpclient -Version: 1.3.1 +Version: 1.4.4 Release: 0 Summary: HTTP client library for gevent License: MIT Group: Development/Languages/Python URL: https://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 dpkt} BuildRequires: %{python_module gevent} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} @@ -54,15 +53,12 @@ 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 @@ -70,6 +66,7 @@ cp %{SOURCE1} . %pytest_arch -m 'not online' -k 'not test_cookielib_compatibility' %files %{python_files} +%doc README.mdown %license LICENSE-MIT %{python_sitearch}/*