diff --git a/pip-22.3.1.tar.gz b/pip-23.0.1.tar.gz similarity index 65% rename from pip-22.3.1.tar.gz rename to pip-23.0.1.tar.gz index ec953311ec442fba35da4cc7348f81b3d7435f83..022c605f0b37bdd3e10d62af88ad7ca4fd9479eb 100644 Binary files a/pip-22.3.1.tar.gz and b/pip-23.0.1.tar.gz differ diff --git a/pip.aliyun.conf b/pip.aliyun.conf new file mode 100644 index 0000000000000000000000000000000000000000..04a56982f9319420881516557150f94854ceb139 --- /dev/null +++ b/pip.aliyun.conf @@ -0,0 +1,5 @@ +[global] +index-url = https://mirrors.aliyun.com/pypi/simple/ + +[install] +trusted-host=mirrors.aliyun.com diff --git a/python-pip.spec b/python-pip.spec index 60ef5d07b46330a356ed5c7c62afd792b90110e8..7844a4be0d88156ac753150992ccacdf8e4bc3fc 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -4,20 +4,21 @@ %bcond_with doc %global srcname pip -%global base_version 22.3.1 +%global base_version 23.0.1 %global upstream_version %{base_version}%{?prerel} %global python_wheel_name %{srcname}-%{upstream_version}-py3-none-any.whl %global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) Name: python-pip -Version: 22.3.1 +Version: %{upstream_version} Release: %{anolis_release}%{?dist} Summary: A tool for installing and managing Python package -License: iMIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD) +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/%{upstream_version}/%{srcname}-%{upstream_version}.tar.gz +Source1: pip.aliyun.conf BuildArch: noarch BuildRequires: python3-devel @@ -82,27 +83,27 @@ Packages" or "Pip Installs Python". %global bundled() %{expand: Provides: bundled(python%{1}dist(cachecontrol)) = 0.12.11 -Provides: bundled(python%{1}dist(certifi)) = 2022.9.24 -Provides: bundled(python%{1}dist(chardet)) = 5 -Provides: bundled(python%{1}dist(colorama)) = 0.4.5 +Provides: bundled(python%{1}dist(certifi)) = 2022.12.7 +Provides: bundled(python%{1}dist(chardet)) = 5.1 +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.7 +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(packaging)) = 21.3 -Provides: bundled(python%{1}dist(pep517)) = 0.13 -Provides: bundled(python%{1}dist(platformdirs)) = 2.5.2 +Provides: bundled(python%{1}dist(platformdirs)) = 2.6.2 Provides: bundled(python%{1}dist(pygments)) = 2.13 Provides: bundled(python%{1}dist(pyparsing)) = 3.0.9 -Provides: bundled(python%{1}dist(requests)) = 2.28.1 +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.5.1 +Provides: bundled(python%{1}dist(rich)) = 12.6 Provides: bundled(python%{1}dist(setuptools)) = 44 Provides: bundled(python%{1}dist(six)) = 1.16 Provides: bundled(python%{1}dist(tenacity)) = 8.1 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.12 +Provides: bundled(python%{1}dist(urllib3)) = 1.26.14 Provides: bundled(python%{1}dist(webencodings)) = 0.5.1 } @@ -262,6 +263,8 @@ rm %{buildroot}%{python3_sitelib}/pip-%{upstream_version}.dist-info/RECORD mkdir -p %{buildroot}%{python_wheel_dir} install -p dist/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir} +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf + %if %{with tests} %check %{_rpmconfigdir}/pythonbundles.py src/pip/_vendor/vendor.txt --compare-with '%{bundled 3}' @@ -281,6 +284,7 @@ pytest_k='not completion' %{_mandir}/man1/pip3.* %{_mandir}/man1/pip3-*.* %endif +%config(noreplace) %{_sysconfdir}/pip.conf %{_bindir}/pip %{_bindir}/pip3 %{_bindir}/pip-3 @@ -304,6 +308,10 @@ pytest_k='not completion' %{python_wheel_dir}/%{python_wheel_name} %changelog +* Thu Mar 02 2023 Funda Wang - 23.0.1-1 +- New version 23.0.1 +- Default to aliyun.com mirror for pip + * Mon Jan 23 2023 Funda Wang - 22.3.1-1 - New version 22.3.1