From e5be2031361e516f73b50978fc2118657fdeed50 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Mon, 4 Dec 2023 15:27:29 +0800 Subject: [PATCH] Add Anolis PyPI repository --- pip.aliyun.conf | 5 ++++- pip.loongarch.conf | 5 ++++- python-pip.spec | 11 +++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/pip.aliyun.conf b/pip.aliyun.conf index 04a5698..b643bf9 100644 --- a/pip.aliyun.conf +++ b/pip.aliyun.conf @@ -1,5 +1,8 @@ [global] index-url = https://mirrors.aliyun.com/pypi/simple/ +extra-index-url = https://pypi.openanolis.cn/prod/simple/ [install] -trusted-host=mirrors.aliyun.com +trusted-host = + mirrors.aliyun.com + pypi.openanolis.cn diff --git a/pip.loongarch.conf b/pip.loongarch.conf index fd77def..f35c58e 100644 --- a/pip.loongarch.conf +++ b/pip.loongarch.conf @@ -1,8 +1,11 @@ [global] timeout = 60 index-url = https://pypi.loongnix.cn/loongson/pypi -extra-index-url = https://pypi.org/simple +extra-index-url = + https://pypi.openanolis.cn/prod/simple + https://pypi.org/simple [install] trusted-host = pypi.loongnix.cn + pypi.openanolis.cn pypi.org diff --git a/python-pip.spec b/python-pip.spec index cd47c88..122f020 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -1,4 +1,6 @@ -%define anolis_release 1 +%define anolis_release 2 + +%define debug_package %{nil} %bcond_with tests %bcond_with doc @@ -17,7 +19,6 @@ Source1: pip.aliyun.conf Source2: pip.loongarch.conf Source10: 0005-pip-allow-different-versions.patch -BuildArch: noarch BuildRequires: pkgconfig(python3) %if %{with tests} BuildRequires: git-core mercurial subversion breezy @@ -94,6 +95,7 @@ Packages" or "Pip Installs Python". %package -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel Summary: The pip wheel +Buildarch: noarch Requires: ca-certificates %{bundled 3} @@ -109,6 +111,7 @@ Summary: A documentation for a tool for installing and managing Python pa BuildRequires: python3-sphinx python3-sphinx-inline-tabs python3-sphinx-copybutton BuildRequires: python3-myst-parser +Buildarch: noarch Requires: python3-%{pypi_name} = %{EVR} %description -n python3-%{pypi_name}-doc @@ -231,6 +234,10 @@ pytest_k='not completion' %endif %changelog +* Mon Dec 04 2023 Funda Wang - 23.3.1-2 +- Add Anolis PyPI repository +- Make python3-pip as arch-dependent, as it contains arch-dependent configurations + * Thu Oct 26 2023 Funda Wang - 23.3.1-1 - New verison 23.3.1 -- Gitee