diff --git a/pip-23.0.1.tar.gz b/pip-23.1.tar.gz similarity index 67% rename from pip-23.0.1.tar.gz rename to pip-23.1.tar.gz index 022c605f0b37bdd3e10d62af88ad7ca4fd9479eb..ee369d238b4d5b639ec8a9c0878e5eb12e30a0ff 100644 Binary files a/pip-23.0.1.tar.gz and b/pip-23.1.tar.gz differ diff --git a/pip.loongarch.conf b/pip.loongarch.conf new file mode 100644 index 0000000000000000000000000000000000000000..fd77def5ba76999eaf35282ded8010919afa7038 --- /dev/null +++ b/pip.loongarch.conf @@ -0,0 +1,8 @@ +[global] +timeout = 60 +index-url = https://pypi.loongnix.cn/loongson/pypi +extra-index-url = https://pypi.org/simple +[install] +trusted-host = + pypi.loongnix.cn + pypi.org diff --git a/python-pip.spec b/python-pip.spec index 0b7c5787f39134a3b385cb3a607b1276ebc92505..192f0cc602bd5e141a2d2edbd2229fe038adae41 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 1 %bcond_with tests %bcond_with doc @@ -7,13 +7,14 @@ %global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) Name: python-pip -Version: 23.0.1 +Version: 23.1 Release: %{anolis_release}%{?dist} Summary: A tool for installing and managing Python package License: MIT AND Python-2.0.1 AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LGPL-2.1-only AND MPL-2.0 AND (Apache-2.0 OR BSD-2-Clause) URL: https://pip.pypa.io/ Source0: https://github.com/pypa/pip/archive/%{version}/%{pypi_name}-%{version}.tar.gz Source1: pip.aliyun.conf +Source2: pip.loongarch.conf Source10: 0005-pip-allow-different-versions.patch BuildArch: noarch @@ -36,21 +37,21 @@ Provides: bundled(python%{1}dist(colorama)) = 0.4.6 Provides: bundled(python%{1}dist(distlib)) = 0.3.6 Provides: bundled(python%{1}dist(distro)) = 1.8 Provides: bundled(python%{1}dist(idna)) = 3.4 -Provides: bundled(python%{1}dist(msgpack)) = 1.0.4 +Provides: bundled(python%{1}dist(msgpack)) = 1.0.5 Provides: bundled(python%{1}dist(packaging)) = 21.3 -Provides: bundled(python%{1}dist(platformdirs)) = 2.6.2 -Provides: bundled(python%{1}dist(pygments)) = 2.13 +Provides: bundled(python%{1}dist(platformdirs)) = 3.2.0 +Provides: bundled(python%{1}dist(pygments)) = 2.14.0 Provides: bundled(python%{1}dist(pyparsing)) = 3.0.9 Provides: bundled(python%{1}dist(pyproject-hooks)) = 1 Provides: bundled(python%{1}dist(requests)) = 2.28.2 -Provides: bundled(python%{1}dist(resolvelib)) = 0.8.1 -Provides: bundled(python%{1}dist(rich)) = 12.6 -Provides: bundled(python%{1}dist(setuptools)) = 44 +Provides: bundled(python%{1}dist(resolvelib)) = 1.0.1 +Provides: bundled(python%{1}dist(rich)) = 13.3.3 +Provides: bundled(python%{1}dist(setuptools)) = 67.6.1 Provides: bundled(python%{1}dist(six)) = 1.16 -Provides: bundled(python%{1}dist(tenacity)) = 8.1 +Provides: bundled(python%{1}dist(tenacity)) = 8.2.2 Provides: bundled(python%{1}dist(tomli)) = 2.0.1 -Provides: bundled(python%{1}dist(typing-extensions)) = 4.4 -Provides: bundled(python%{1}dist(urllib3)) = 1.26.14 +Provides: bundled(python%{1}dist(typing-extensions)) = 4.5.0 +Provides: bundled(python%{1}dist(urllib3)) = 1.26.15 Provides: bundled(python%{1}dist(webencodings)) = 0.5.1 } @@ -184,7 +185,11 @@ rm %{buildroot}%{python3_sitelib}/pip-%{version}.dist-info/RECORD mkdir -p %{buildroot}%{python_wheel_dir} install -p dist/%{pypi_name}-%{version}-py3-none-any.whl -t %{buildroot}%{python_wheel_dir} +%ifarch loongarch64 +install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pip.conf +%else install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf +%endif %if %{with tests} %check @@ -225,6 +230,9 @@ pytest_k='not completion' %endif %changelog +* Wed Apr 19 2023 Funda Wang - 23.1-1 +- New version 23.1 + * Tue Apr 11 2023 yuanhui - 23.0.1-3 - Optimize the spec file