diff --git a/python-urllib3.spec b/python-urllib3.spec index 5c4a2b5ca4d27e59f50d9a674bfaa9c2f6ddf58b..12948196bbac5c3eac60fb7bad22035251fad19e 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -5,8 +5,8 @@ %bcond_without tests Name: python-%{srcname} -Version: 1.26.9 -Release: %{anolis_release}%{dist} +Version: 1.26.13 +Release: %{anolis_release}%{dist} Summary: Python HTTP library with thread-safe connection pooling and file post License: MIT @@ -76,24 +76,15 @@ sed -i -e 's/^import mock/from unittest import mock/' \ -e 's/^from mock import /from unittest.mock import /' \ test/*.py docs/conf.py +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install - -# Unbundle the Python 3 build -rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py -rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/six.* - -mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/ -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__/ - +%pyproject_install %if %{with tests} %check @@ -105,9 +96,11 @@ ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc \ %license LICENSE.txt %doc CHANGES.rst README.rst %{python3_sitelib}/urllib3/ -%{python3_sitelib}/urllib3-*.egg-info/ - +%{python3_sitelib}/urllib3-%{version}.dist-info/ -%changelog +%changelog +* Tue Jan 03 2023 mgb01105731 - 1.26.13-1 +- update to version 1.26.13 + * Wed Apr 20 2022 Zhongling He 1.26.9-1 - Init package from upstream v1.26.9 diff --git a/urllib3-1.26.13.tar.gz b/urllib3-1.26.13.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7f7b1a5bf97ebb3e976a998a2d1979f02e3cc18c Binary files /dev/null and b/urllib3-1.26.13.tar.gz differ diff --git a/urllib3-1.26.9.tar.gz b/urllib3-1.26.9.tar.gz deleted file mode 100644 index f91a35433b185adca8e17e9e2bce01e390601949..0000000000000000000000000000000000000000 Binary files a/urllib3-1.26.9.tar.gz and /dev/null differ