diff --git a/dummy-certifi.patch b/dummy-certifi.patch index f45f5b1aacbd95023edc82727df18e0cf72e05a0..f873988b839b2887aaa02df4ce7eb9898ac4334a 100644 --- a/dummy-certifi.patch +++ b/dummy-certifi.patch @@ -4,14 +4,22 @@ Date: Sun, 26 Apr 2020 21:38:44 +0200 Subject: [PATCH] Dummy certifi patch --- - src/pip/_vendor/certifi/core.py | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) + src/pip/_vendor/certifi/core.py | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pip/_vendor/certifi/core.py b/src/pip/_vendor/certifi/core.py -index 8987449..128fa92 100644 +index 8987449..568d078 100644 --- a/src/pip/_vendor/certifi/core.py +++ b/src/pip/_vendor/certifi/core.py -@@ -51,9 +51,7 @@ except ImportError: +@@ -9,6 +9,7 @@ This module returns the installation location of cacert.pem or its contents. + import os + + try: ++ raise ImportError # force fallback + from importlib.resources import path as get_path, read_text + + _CACERT_CTX = None +@@ -51,9 +52,7 @@ except ImportError: # If we don't have importlib.resources, then we will just do the old logic # of assuming we're on the filesystem and munge the path directly. def where(): @@ -23,5 +31,5 @@ index 8987449..128fa92 100644 def contents(): -- -2.23.0 +1.8.3.1 diff --git a/python-pip.spec b/python-pip.spec index a6a064b33bb12a9b7c304a2f1f5c0d3f881fbfb6..13c82a3cceafb08d4cf3da74869a43f09c3e2a6c 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -6,7 +6,7 @@ pip is the package installer for Python. You can use pip to install packages fro %global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d}) Name: python-%{srcname} Version: 20.3.3 -Release: 2 +Release: 3 Summary: A tool for installing and managing Python packages License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD) URL: http://www.pip-installer.org @@ -115,6 +115,9 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} %{python_wheeldir}/%{python_wheelname} %changelog +* Thu Aug 19 2021 shixuantong - 20.3.3-3 +- update dummy-certifi.patch + * Sat Jul 24 2021 shixuantong - 20.3.3-2 - fix CVE-2021-3572