From bbdcd169940415511a56aafb48228c78ee3eb927 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 3 Aug 2025 23:32:40 +0800 Subject: [PATCH] drop python-six compatibility links --- python-urllib3.spec | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index bf9e073..35a63af 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 2.3.0 -Release: 1 +Release: 2 Summary: Sanity-friendly HTTP client for Python License: MIT URL: https://github.com/urllib3/urllib3 @@ -44,7 +44,7 @@ BuildRequires: python3-hypercorn BuildRequires: python3-httpx %endif -Requires: ca-certificates python3-idna python3-six python3-pysocks +Requires: ca-certificates python3-idna python3-pysocks %description -n python3-urllib3 Python3 HTTP module with connection pooling and file POST abilities. @@ -68,16 +68,10 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %install %pyproject_install -rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/six.py -rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/__pycache__/six.* -rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/ssl_match_hostname/ - +find %{buildroot} mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/ mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ cp -a %{SOURCE1} %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname.py -ln -s %{python3_sitelib}/six.py %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py -ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.opt-1.pyc %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ -ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ %if %{with tests} %check @@ -87,13 +81,15 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib} %{__python3} -m pyt %endif %files -n python3-urllib3 -%defattr(-,root,root) %license LICENSE.txt %doc CHANGES.rst README.md %{python3_sitelib}/urllib3/ %{python3_sitelib}/urllib3-*.dist-info %changelog +* Sun Aug 03 2025 Funda Wang - 2.3.0-2 +- drop python-six compatibility links + * Wed Feb 26 2025 Dongxing Wang - 2.3.0-1 - Update to 2.3.0 Added the proxy_is_tunneling property to HTTPConnection and HTTPSConnection -- Gitee