[packages/python3-urllib3] up to 2.7.0
arekm
arekm at pld-linux.org
Tue Aug 18 09:22:55 CEST 2026
commit 084d0bb4e4b1cf15463466ed955aa1b63bf5ba9a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Aug 18 09:08:14 2026 +0200
up to 2.7.0
python3-urllib3.spec | 11 +++++++----
urllib3-parametrize-list.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/python3-urllib3.spec b/python3-urllib3.spec
index ba36c3b..3c9b4be 100644
--- a/python3-urllib3.spec
+++ b/python3-urllib3.spec
@@ -8,13 +8,14 @@
Summary: HTTP library with thread-safe connection pooling, file post, and more
Summary(pl.UTF-8): Biblioteka HTTP z bezpieczną wątkowo pulą połączeń, wysyłaniem plików itd.
Name: python3-%{module}
-Version: 2.6.3
+Version: 2.7.0
Release: 1
License: MIT
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/urllib3/
Source0: https://files.pythonhosted.org/packages/source/u/urllib3/%{module}-%{version}.tar.gz
-# Source0-md5: 2c381874816fe551f50a2551abae62b3
+# Source0-md5: e79707b798a66c8165c9c441440f4e80
+Patch0: urllib3-parametrize-list.patch
URL: https://urllib3.readthedocs.io/
%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
BuildRequires: glibc-localedb-all
@@ -101,17 +102,19 @@ Dokumentacja API modułu Pythona urllib3.
%prep
%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
%py3_build_pyproject
%if %{with tests}
# TestHTTPS_TLSv1_[23] tests: fail because of no ["extensions"]["tls"] key in quart request scope(???)
-# TestHTTPProxyManager and TestHTTPSProxyVerification: fail because of no ["extension"]["_transport"] key in quart request scope(???)
+# TestHTTPProxyManager and TestHTTPSProxyVerification: the CONNECT proxy in dummyserver/asgi_proxy.py
+# needs scope["extensions"]["_transport"] to hijack the socket; hypercorn 0.18 exposes no ASGI extensions at all
PYTHONPATH=$(pwd)/src \
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS="anyio.pytest_plugin,pytest_memray.plugin,pytest_socket,pytest_timeout" \
-%{__python3} -m pytest test -k 'not (test_client_intermediate or test_client_key_password or test_alpn_default or test_http2_probe_result_is_cached or test_basic_proxy or test_https_proxy or test_is_verified_http_proxy_to_https_target or test_is_verified_https_proxy_to_https_target or test_http_and_https_kwarg_ca_cert_data_proxy or test_https_proxy_with_proxy_ssl_context or test_oldapi or test_proxy_verified or test_headers or test_https_headers or test_proxy_pooling or test_scheme_host_case_insensitive or test_https_proxy_assert_fingerprint_md5 or test_https_proxy_assert_hostname or test_https_proxy_ipv4_san or test_https_proxy_ipv6_san or test_https_proxy_no_san_hostname_checks_common_name or test_proxy_https_target_tls_error)'
+%{__python3} -m pytest test -k 'not (test_client_intermediate or test_client_key_password or test_alpn_default or test_http2_probe_result_is_cached or test_basic_proxy or test_https_proxy or test_is_verified_http_proxy_to_https_target or test_is_verified_https_proxy_to_https_target or test_http_and_https_kwarg_ca_cert_data_proxy or test_https_proxy_with_proxy_ssl_context or test_oldapi or test_proxy_verified or test_headers or test_https_headers or test_proxy_pooling or test_scheme_host_case_insensitive or test_https_proxy_assert_fingerprint_md5 or test_https_proxy_assert_hostname or test_https_proxy_ipv4_san or test_https_proxy_ipv6_san or test_https_proxy_no_san_hostname_checks_common_name or test_proxy_https_target_tls_error or test_proxy_https_fqdn or test_cross_protocol_redirect)'
%endif
%if %{with doc}
diff --git a/urllib3-parametrize-list.patch b/urllib3-parametrize-list.patch
new file mode 100644
index 0000000..dc9189f
--- /dev/null
+++ b/urllib3-parametrize-list.patch
@@ -0,0 +1,11 @@
+--- urllib3-2.7.0.orig/test/test_util.py
++++ urllib3-2.7.0/test/test_util.py
+@@ -307,7 +307,7 @@ class TestUtil:
+
+ @pytest.mark.parametrize(
+ "url, expected_url",
+- chain(parse_url_host_map, non_round_tripping_parse_url_host_map),
++ list(chain(parse_url_host_map, non_round_tripping_parse_url_host_map)),
+ )
+ def test_parse_url(self, url: str, expected_url: Url) -> None:
+ returned_url = parse_url(url)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-urllib3.git/commitdiff/084d0bb4e4b1cf15463466ed955aa1b63bf5ba9a
More information about the pld-cvs-commit
mailing list