]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)
authorXavier Fernandez <xav.fernandez@gmail.com>
Mon, 15 Jun 2020 19:16:48 +0000 (21:16 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 19:16:48 +0000 (15:16 -0400)
Lib/ensurepip/__init__.py
Lib/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl [deleted file]
Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl [new file with mode: 0644]
Lib/ensurepip/_bundled/setuptools-47.1.0-py3-none-any.whl [moved from Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl with 65% similarity]
Lib/test/test_venv.py
Misc/NEWS.d/next/Library/2020-05-28-16-51-00.bpo-38488.hFQNgA.rst [new file with mode: 0644]

index d62b1187f90d608055ab30b2b6bb22531da4ea95..21320a83198cab3a18e06630f0aa62424154606c 100644 (file)
@@ -12,13 +12,13 @@ from . import _bundled
 __all__ = ["version", "bootstrap"]
 
 
-_SETUPTOOLS_VERSION = "41.2.0"
+_SETUPTOOLS_VERSION = "47.1.0"
 
-_PIP_VERSION = "19.2.3"
+_PIP_VERSION = "20.1.1"
 
 _PROJECTS = [
-    ("setuptools", _SETUPTOOLS_VERSION),
-    ("pip", _PIP_VERSION),
+    ("setuptools", _SETUPTOOLS_VERSION, "py3"),
+    ("pip", _PIP_VERSION, "py2.py3"),
 ]
 
 
@@ -107,8 +107,8 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
         # Put our bundled wheels into a temporary directory and construct the
         # additional paths that need added to sys.path
         additional_paths = []
-        for project, version in _PROJECTS:
-            wheel_name = "{}-{}-py2.py3-none-any.whl".format(project, version)
+        for project, version, py_tag in _PROJECTS:
+            wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag)
             whl = resources.read_binary(
                 _bundled,
                 wheel_name,
diff --git a/Lib/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl b/Lib/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl
deleted file mode 100644 (file)
index 8118df8..0000000
Binary files a/Lib/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl and /dev/null differ
diff --git a/Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl b/Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl
new file mode 100644 (file)
index 0000000..ea1d0f7
Binary files /dev/null and b/Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl differ
similarity index 65%
rename from Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl
rename to Lib/ensurepip/_bundled/setuptools-47.1.0-py3-none-any.whl
index 82df6f63f4ee97380af0a29d8825ae775333b86d..f87867ff98254ac4d8341d64f1dfa7b2cd7ae84e 100644 (file)
Binary files a/Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl and b/Lib/ensurepip/_bundled/setuptools-47.1.0-py3-none-any.whl differ
index 44c62193bf7cc93e4708c6cbdc624f2012b50f90..ef6d7bd5ad7da0b6b43869c794a6cfcda55fea62 100644 (file)
@@ -513,7 +513,7 @@ class EnsurePipTest(BaseTest):
         #    executing pip with sudo, you may want sudo's -H flag."
         # where $HOME is replaced by the HOME environment variable.
         err = re.sub("^(WARNING: )?The directory .* or its parent directory "
-                     "is not owned by the current user .*$", "",
+                     "is not owned or is not writable by the current user.*$", "",
                      err, flags=re.MULTILINE)
         self.assertEqual(err.rstrip(), "")
         # Being fairly specific regarding the expected behaviour for the
diff --git a/Misc/NEWS.d/next/Library/2020-05-28-16-51-00.bpo-38488.hFQNgA.rst b/Misc/NEWS.d/next/Library/2020-05-28-16-51-00.bpo-38488.hFQNgA.rst
new file mode 100644 (file)
index 0000000..c44da9f
--- /dev/null
@@ -0,0 +1 @@
+Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.