[packages/python3-geventhttpclient] Up to 2.3.3

arekm arekm at pld-linux.org
Sat Mar 15 02:09:04 CET 2025


commit 42883abc3ac5be5a4445b075daa383f0bbe56c31
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 15 00:15:13 2025 +0100

    Up to 2.3.3

 python-geventhttpclient.spec  | 175 ------------------------------------------
 python3-geventhttpclient.spec |  90 ++++++++++++++++++++++
 2 files changed, 90 insertions(+), 175 deletions(-)
---
diff --git a/python-geventhttpclient.spec b/python-geventhttpclient.spec
deleted file mode 100644
index b6a48c8..0000000
--- a/python-geventhttpclient.spec
+++ /dev/null
@@ -1,175 +0,0 @@
-#
-# Conditional build:
-%bcond_with	tests	# py.test tests [use network]
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	geventhttpclient
-Summary:	A high performance, concurrent HTTP client library
-Summary(pl.UTF-8):	Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP
-Name:		python-%{module}
-# keep 1.x here for python2 support
-Version:	1.5.5
-Release:	3
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/geventhttpclient/
-Source0:	https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
-# Source0-md5:	921c99dae79636616b4826423a870c9a
-URL:		https://pypi.org/project/geventhttpclient/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-# older versions generate pythonegg(backports.ssl_match_hostname) dependency
-BuildRequires:	python-devel >= 1:2.7.9
-BuildRequires:	python-modules >= 1:2.7.9
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-brotli
-BuildRequires:	python-certifi
-BuildRequires:	python-dpkt
-BuildRequires:	python-gevent >= 0.13
-BuildRequires:	python-pytest
-BuildRequires:	python-six
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.4
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-brotli
-BuildRequires:	python3-certifi
-BuildRequires:	python3-dpkt
-BuildRequires:	python3-gevent >= 0.13
-BuildRequires:	python3-pytest
-BuildRequires:	python3-six
-%endif
-%endif
-Requires:	python-modules >= 1:2.7.9
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A high performance, concurrent HTTP client library for Python 2 using
-gevent.
-
-geventhttpclient use a fast HTTP parser, written in C, originating
-from nginx, extracted and modified by Joyent.
-
-geventhttpclient has been specifically designed for high concurrency,
-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.
-
-%description -l pl.UTF-8
-Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP dla Pythona
-2, wykorzystująca gevent.
-
-geventhttpclient wykorzystuje szybki parser HTTP, napisany w C,
-pochodzący z serwera nginx, wyciągniety i zmodyfikowany przez Joyenta.
-
-geventhttpclient został zaprojektowany w szczególności z myślą o
-dużym zrównolegleniu, przesyłaniu strumieni i obsłudze trwałych
-połączeń HTTP 1.1. Bardziej ogólnie, jest przeznaczony do wydajnego
-pobierania z API REST-owych oraz strumieniowych, takich jak Twitter.
-
-Domyślnie dostępna jest obsługa bezpiecznego SSL.
-
-%package -n python3-%{module}
-Summary:	A high performance, concurrent HTTP client library
-Summary(pl.UTF-8):	Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-A high performance, concurrent HTTP client library for Python 3 using
-gevent.
-
-geventhttpclient use a fast HTTP parser, written in C, originating
-from nginx, extracted and modified by Joyent.
-
-geventhttpclient has been specifically designed for high concurrency,
-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.
-
-%description -n python3-%{module} -l pl.UTF-8
-Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP dla Pythona
-3, wykorzystująca gevent.
-
-geventhttpclient wykorzystuje szybki parser HTTP, napisany w C,
-pochodzący z serwera nginx, wyciągniety i zmodyfikowany przez Joyenta.
-
-geventhttpclient został zaprojektowany w szczególności z myślą o
-dużym zrównolegleniu, przesyłaniu strumieni i obsłudze trwałych
-połączeń HTTP 1.1. Bardziej ogólnie, jest przeznaczony do wydajnego
-pobierania z API REST-owych oraz strumieniowych, takich jak Twitter.
-
-Domyślnie dostępna jest obsługa bezpiecznego SSL.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%{__rm} -r src/geventhttpclient.egg-info
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/$(echo build-2/lib.*) \
-%{__python} -m pytest src
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/$(echo build-3/lib.*) \
-%{__python3} -m pytest src
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.mdown
-%dir %{py_sitedir}/geventhttpclient
-%{py_sitedir}/geventhttpclient/*.py[co]
-%attr(755,root,root) %{py_sitedir}/geventhttpclient/_parser.so
-%{py_sitedir}/geventhttpclient-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.mdown
-%dir %{py3_sitedir}/geventhttpclient
-%{py3_sitedir}/geventhttpclient/*.py
-%{py3_sitedir}/geventhttpclient/__pycache__
-%attr(755,root,root) %{py3_sitedir}/geventhttpclient/_parser.cpython-*.so
-%{py3_sitedir}/geventhttpclient-%{version}-py*.egg-info
-%endif
diff --git a/python3-geventhttpclient.spec b/python3-geventhttpclient.spec
new file mode 100644
index 0000000..471ee8a
--- /dev/null
+++ b/python3-geventhttpclient.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_with	tests	# py.test tests [use network]
+
+%define 	module	geventhttpclient
+Summary:	A high performance, concurrent HTTP client library
+Summary(pl.UTF-8):	Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP
+Name:		python3-%{module}
+Version:	2.3.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/geventhttpclient/
+Source0:	https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
+# Source0-md5:	ec29adc387f88926d4419d3873dbe4b6
+URL:		https://pypi.org/project/geventhttpclient/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	python3-devel >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-brotli
+BuildRequires:	python3-certifi
+BuildRequires:	python3-dpkt
+BuildRequires:	python3-gevent >= 0.13
+BuildRequires:	python3-pytest
+BuildRequires:	python3-six
+%endif
+Requires:	python3-modules >= 1:3.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A high performance, concurrent HTTP client library for Python 2 using
+gevent.
+
+geventhttpclient use a fast HTTP parser, written in C, originating
+from nginx, extracted and modified by Joyent.
+
+geventhttpclient has been specifically designed for high concurrency,
+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.
+
+%description -l pl.UTF-8
+Biblioteka bardzo wydajnego, wielowątkowego klienta HTTP dla Pythona
+2, wykorzystująca gevent.
+
+geventhttpclient wykorzystuje szybki parser HTTP, napisany w C,
+pochodzący z serwera nginx, wyciągniety i zmodyfikowany przez Joyenta.
+
+geventhttpclient został zaprojektowany w szczególności z myślą o
+dużym zrównolegleniu, przesyłaniu strumieni i obsłudze trwałych
+połączeń HTTP 1.1. Bardziej ogólnie, jest przeznaczony do wydajnego
+pobierania z API REST-owych oraz strumieniowych, takich jak Twitter.
+
+Domyślnie dostępna jest obsługa bezpiecznego SSL.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%{__rm} -r src/geventhttpclient.egg-info
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/$(echo build-3/lib.*) \
+%{__python3} -m pytest src
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{py3_sitedir}/geventhttpclient
+%{py3_sitedir}/geventhttpclient/*.py
+%{py3_sitedir}/geventhttpclient/__pycache__
+%attr(755,root,root) %{py3_sitedir}/geventhttpclient/_parser.cpython-*.so
+%{py3_sitedir}/geventhttpclient-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-geventhttpclient.git/commitdiff/42883abc3ac5be5a4445b075daa383f0bbe56c31



More information about the pld-cvs-commit mailing list