diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..1a4c2bd --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,26 @@ +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/geventhttpclient-1.1.0.tar.gz b/geventhttpclient-1.1.0.tar.gz deleted file mode 100644 index bfe87bf..0000000 --- a/geventhttpclient-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:860a6984fcc5bcb780c0551423284b79146dc5da1b44bceac4d8b13a6d23facc -size 148484 diff --git a/geventhttpclient-1.3.1.tar.gz b/geventhttpclient-1.3.1.tar.gz new file mode 100644 index 0000000..c627b9f --- /dev/null +++ b/geventhttpclient-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd87af8854f5fb05738916c8973671f7035568aec69b7c842887d6faf9c0a01d +size 82598 diff --git a/python-geventhttpclient.changes b/python-geventhttpclient.changes index 73423fe..97587b9 100644 --- a/python-geventhttpclient.changes +++ b/python-geventhttpclient.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 14 15:17:18 UTC 2019 - Tomáš Chvátal + +- Update to 1.3.1: + * no upstream changelog +- Switch to singlespec +- Enable tests + ------------------------------------------------------------------- Tue Sep 8 08:46:46 UTC 2015 - tbechtold@suse.com diff --git a/python-geventhttpclient.spec b/python-geventhttpclient.spec index 8ada1d1..d2588de 100644 --- a/python-geventhttpclient.spec +++ b/python-geventhttpclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-geventhttpclient # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -12,25 +12,33 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geventhttpclient -Version: 1.1.0 +Version: 1.3.1 Release: 0 +Summary: HTTP client library for gevent License: MIT -Summary: http client library for gevent -Url: http://github.com/gwik/geventhttpclient Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -Requires: python-gevent >= 0.13 -Requires: python-backports.ssl_match_hostname -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +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 +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 high performance, concurrent HTTP client library for python using gevent. @@ -43,21 +51,31 @@ streaming and support HTTP 1.1 persistent connections. More generally it is designed for efficiently pulling from REST APIs and streaming API's like Twitter's. -Safe SSL support is provided by default. - -Python 2.6 and 2.7 are supported as well as gevent 0.13 and gevent 1.0. - %prep %setup -q -n geventhttpclient-%{version} +cp %{SOURCE1} . %build -CFLAGS="%{optflags}" python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand rm -r %{buildroot}%{$python_sitearch}/geventhttpclient/tests/ +%python_expand %fdupes %{buildroot}%{$python_sitearch} -%files -%defattr(-,root,root,-) +%check +# online tests: +# test_client_simple +# test_client_without_leading_slash +# test_request_with_headers +# test_response_context_manager +# test_client_ssl +# test_ssl_fail_invalid_certificate +# test_multi_queries_greenlet_safe +%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} $python -mpytest src/geventhttpclient/tests -k 'not (test_client_simple or test_client_without_leading_slash or test_request_with_headers or test_response_context_manager or test_client_ssl or test_ssl_fail_invalid_certificate or test_multi_queries_greenlet_safe)' + +%files %{python_files} +%license LICENSE-MIT %{python_sitearch}/* %changelog