From a52fdcee0cacec11319a540a79055f4021181fc7d6852f46618c27bbd90b5d8d Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 8 Jan 2026 03:21:00 +0000 Subject: [PATCH] - Add missing BuildRequires on urllib3. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geventhttpclient?expand=0&rev=34 --- .gitattributes | 23 ++++ .gitignore | 1 + geventhttpclient-2.3.1.tar.gz | 3 + geventhttpclient-2.3.7.tar.gz | 3 + python-geventhttpclient-2.3.1.tar.gz | 3 + python-geventhttpclient-2.3.7.tar.gz | 3 + python-geventhttpclient.changes | 179 +++++++++++++++++++++++++++ python-geventhttpclient.spec | 92 ++++++++++++++ 8 files changed, 307 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 geventhttpclient-2.3.1.tar.gz create mode 100644 geventhttpclient-2.3.7.tar.gz create mode 100644 python-geventhttpclient-2.3.1.tar.gz create mode 100644 python-geventhttpclient-2.3.7.tar.gz create mode 100644 python-geventhttpclient.changes create mode 100644 python-geventhttpclient.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/geventhttpclient-2.3.1.tar.gz b/geventhttpclient-2.3.1.tar.gz new file mode 100644 index 0000000..da95bee --- /dev/null +++ b/geventhttpclient-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b40ddac8517c456818942c7812f555f84702105c82783238c9fcb8dc12675185 +size 69345 diff --git a/geventhttpclient-2.3.7.tar.gz b/geventhttpclient-2.3.7.tar.gz new file mode 100644 index 0000000..efee424 --- /dev/null +++ b/geventhttpclient-2.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06c28d3d1aabddbaaf61721401a0e5852b216a1845ef2580f3819161e44e9b1c +size 83708 diff --git a/python-geventhttpclient-2.3.1.tar.gz b/python-geventhttpclient-2.3.1.tar.gz new file mode 100644 index 0000000..86e8bc0 --- /dev/null +++ b/python-geventhttpclient-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:762fd4ced1106b9d45b5e1ae39a4e6be20545e626877f04ea264296889b18ff2 +size 52164 diff --git a/python-geventhttpclient-2.3.7.tar.gz b/python-geventhttpclient-2.3.7.tar.gz new file mode 100644 index 0000000..1122f88 --- /dev/null +++ b/python-geventhttpclient-2.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b35a749829cf0e7d5284759dbed9b012c48669f1e841d0d2528446c605671739 +size 53397 diff --git a/python-geventhttpclient.changes b/python-geventhttpclient.changes new file mode 100644 index 0000000..f1d03b5 --- /dev/null +++ b/python-geventhttpclient.changes @@ -0,0 +1,179 @@ +------------------------------------------------------------------- +Thu Jan 8 03:20:27 UTC 2026 - Steve Kowalik + +- Add missing BuildRequires on urllib3. + +------------------------------------------------------------------- +Mon Dec 29 21:45:41 UTC 2025 - Andreas Prittwitz + +- Update to 2.3.7 + * Reenabled test_cookielib_compatibility, fixed upstream + https://github.com/gwik/geventhttpclient/issues/119 + * Reenabled test_no_module_ssl.py, fixed upstream + https://github.com/geventhttpclient/geventhttpclient/issues/180 + * Fixed failing tests test_simple_ssl, test_timeout_on_connect, + test_network_timeout and test_verify_self_signed_fail + by copying missing files to tests directory and deleting + geventhttpclient-%{version}/tests/ coming from the + github tarball + * Update GitHub action versions, build using Python 3.14, update + cibuildwheel to 3.3.0 by @cyberw in #237 + + - Changes in 2.3.6 + * Explicitly support python 3.13 and 3.14 and build using 3.13 + by @cyberw in #236 + + - Changes in 2.3.5 + * Fix #230 + * Fix Headers.extend by @ml31415 in #231 + + - Changes in 2.3.4 + * test: Increase the read of the TLS handshake in + sni_checker_server() by @sebastianas in #228 + + - Changes in 2.3.3 + * Fixed github action publishing issue + * Fixed #225 + * Move project source back to src/geventhttpclient + by @ml31415 in #220 + +------------------------------------------------------------------- +Wed Oct 15 13:15:40 UTC 2025 - Jordi Massaguer + +- Fix build for 15.7: Use the right python version + +------------------------------------------------------------------- +Wed Aug 20 06:54:38 UTC 2025 - Max Lin + +- Disabled some sni_ssl unittest which just failed on Leap 16.0 + * test_implicit_sni_from_host_in_ssl, test_implicit_sni_from_header_in_ssl, + and test_explicit_sni_in_ssl + +------------------------------------------------------------------- +Tue Oct 8 08:27:30 UTC 2024 - Daniel Garcia + +- Update to 2.3.1: + * Fix locust backwards compatibility by @ml31415 in #218 +- 2.3.0: + * Clean up readme and example code by @ml31415 in #212 + * Fix for #179 and improved multipart form handling by @ml31415 in #213 + * requests compatibility layer by @ml31415 in #209 + * Fixed #186 and improved package build by @ml31415 in #214 + * Add pre-commit hooks by @ml31415 in #215 + * Add requests compatibility to README by @ml31415 in #216 +- 2.2.1: + * URL refactoring by @ml31415 in #206 + * Switch default ssl protocol to PROTOCOL_TLS_CLIENT and improve tests by @ml31415 in #207 + * Fixes #40 max_retries and max_redirects by @ml31415 in #208 + * Use test.pypi.org before publishing by @ml31415 in #211 +- 2.2.0: + * Fixes http.client patching by @ml31415 in #200 + * Better headers by @ml31415 in #203 +- 2.1.1: + * Reduce httpbin dependency by @ml31415 in #199 + * Fix publishing build issue by @ml31415 in #201 +- 2.1.0: + * Spring cleaning (mostly test updates) by @ml31415 in #191 + * Drop support for outdated python and gevent versions by @ml31415 in #192 + * Upgrade llhttp v6.0.11 by @ml31415 in #193 + * Github actions and project metadata improvements by @ml31415 in #195 + * Benchmarks updated; some tests parametrized by @ml31415 in #196 + * More spring cleaning by @ml31415 in #197 +- 2.0.12: + * port examples to Python3 by @a-detiste in #185 + * add response cookies to cookiejar before verify_status by @onestay in #188 + +------------------------------------------------------------------- +Thu Dec 7 22:50:28 UTC 2023 - Dirk Müller + +- update to 2.0.11: + * Support Python 3.12 + * Disable unit tests for no ssl module + fixes for build + +------------------------------------------------------------------- +Fri Aug 25 12:18:29 UTC 2023 - Markéta Machová + +- Skip both tests in test_no_module_ssl.py, failing with new gevent + +------------------------------------------------------------------- +Thu May 4 20:36:44 UTC 2023 - Dirk Müller + +- update to 2.0.9: + * Add square brackets for Host header when using IPv6 address + * Enable ppc64le wheels + +------------------------------------------------------------------- +Fri Nov 4 10:52:22 UTC 2022 - pgajdos@suse.com + +- version update to 2.0.8 + * lot of changes, see + https://github.com/geventhttpclient/geventhttpclient/releases +- do not require python-six +- deleted patches + - remove_mock.patch (upstreamed) + +------------------------------------------------------------------- +Tue Feb 16 14:50:32 UTC 2021 - Ben Greiner + +- Update to 1.4.5 + * Don't auto parse query string. Add params keyword argument. +- don't try to set a nonexistend attribute for a test + gh#gwik/geventhttpclient#137 + +------------------------------------------------------------------- +Mon Dec 14 00:36:02 UTC 2020 - Benjamin Greiner + +- Fix condition around BuildRequirement + +------------------------------------------------------------------- +Sun Dec 13 20:26:16 UTC 2020 - Matej Cepl + +- We don't need to break Python 2.7 + +------------------------------------------------------------------- +Fri Dec 11 23:08:43 UTC 2020 - Matej Cepl + +- Add remove_mock.patch to remove dependency on the external mock + package (gh#gwik/geventhttpclient#135). + +------------------------------------------------------------------- +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 + +- skip test test_cookielib_compatibility as it is borked upstream + +------------------------------------------------------------------- +Fri Mar 22 10:03:15 UTC 2019 - Tomáš Chvátal + +- Add patch to skip online tests: + * gevent-mark-tests.patch + +------------------------------------------------------------------- +Thu Mar 14 16:44:36 UTC 2019 - Jan Engelhardt + +- Reduce marketing wording in the description. + +------------------------------------------------------------------- +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 + +- Initial packaging (version 1.1.0) diff --git a/python-geventhttpclient.spec b/python-geventhttpclient.spec new file mode 100644 index 0000000..3ed6c6a --- /dev/null +++ b/python-geventhttpclient.spec @@ -0,0 +1,92 @@ +# +# spec file for package python-geventhttpclient +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-geventhttpclient +Version: 2.3.7 +Release: 0 +Summary: HTTP client library for gevent +License: MIT +URL: https://github.com/gwik/geventhttpclient +Source: https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz +# Needed for tests +Source1: https://github.com/gwik/geventhttpclient/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module Brotli} +BuildRequires: %{python_module certifi} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module dpkt} +BuildRequires: %{python_module gevent} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module urllib3} +BuildRequires: %{python_module wheel} +%if 0%{?suse_version} <= 1500 +BuildRequires: python-mock +%endif +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Brotli +Requires: python-certifi +Requires: python-gevent +Requires: python-urllib3 +%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 +%autosetup -p1 -n geventhttpclient-%{version} +tar -xvf %{SOURCE1} geventhttpclient-%{version}/tests/ +%if 0%{?suse_version} >= 1600 +cp geventhttpclient-%{version}/tests/{common.py,conftest.py,__init__.py,oncert.pem,server.crt,server.key} %{builddir}/geventhttpclient-%{version}/tests +rm -rf geventhttpclient-%{version}/tests/ +%else +cp geventhttpclient-%{version}/tests/{common.py,conftest.py,__init__.py,oncert.pem,server.crt,server.key} /home/abuild/rpmbuild/BUILD/geventhttpclient-%{version}/tests +rm -rf geventhttpclient-%{version}/tests/ +%endif + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%if 0%{?suse_version} > 1600 +%pytest_arch -m 'not network' +%else +%pytest_arch -m 'not network' +%endif + +%files %{python_files} +%doc README.md +%license LICENSE-MIT +%{python_sitearch}/geventhttpclient +%{python_sitearch}/geventhttpclient-%{version}.dist-info + +%changelog