[Python-checkins] bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)

Miss Islington (bot) webhook-mailer at python.org
Mon Jun 15 18:01:28 EDT 2020


https://github.com/python/cpython/commit/678ffc42813c9fcf36324ba378632b8a3fc18fb6
commit: 678ffc42813c9fcf36324ba378632b8a3fc18fb6
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020年06月15日T15:01:19-07:00
summary:
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)
Co-authored-by: Xavier Fernandez <xav.fernandez at gmail.com>
(cherry picked from commit e63cc2f64668bd1d4581f8efa7089af7e08863b8)
Co-authored-by: Ned Deily <nad at python.org>
files:
A Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl
A Lib/ensurepip/_bundled/setuptools-47.1.0-py3-none-any.whl
A Misc/NEWS.d/next/Library/2020-05-28-16-51-00.bpo-38488.hFQNgA.rst
D Lib/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl
D Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl
M Lib/ensurepip/__init__.py
M Lib/test/test_venv.py
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 7c5baf0b5f1a7..94d40b0c8d010 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -9,13 +9,13 @@
 __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"),
 ]
 
 
@@ -102,8 +102,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 = pkgutil.get_data(
 "ensurepip",
 "_bundled/{}".format(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
index 8118df8ac1940..0000000000000
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
index 0000000000000..ea1d0f7c8604a
Binary files /dev/null and b/Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl differ
diff --git a/Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl b/Lib/ensurepip/_bundled/setuptools-47.1.0-py3-none-any.whl
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 82df6f63f4ee9..f87867ff98254 100644
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
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 5f00c7ba97a36..a1fc6759d8d00 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -471,7 +471,7 @@ def do_test_with_pip(self, system_site_packages):
 # 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
index 0000000000000..c44da9fecb605
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-05-28-16-51-00.bpo-38488.hFQNgA.rst
@@ -0,0 +1 @@
+Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /