]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-37662: Documented venv.EnvBuilder.upgrade_dependencies(). (GH-15768)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Sep 2019 07:31:56 +0000 (00:31 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 07:31:56 +0000 (00:31 -0700)
(cherry picked from commit 264e034f990240e2aa379d8484b15b9e70c1fad5)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Doc/library/venv.rst

index 1e825c3c21e84358b97c1d424f68c92569e002ea..a834ac75eb1b5185ead08c1568b6098221085bb7 100644 (file)
@@ -186,6 +186,14 @@ creation according to their needs, the :class:`EnvBuilder` class.
         Installs activation scripts appropriate to the platform into the virtual
         environment.
 
+    .. method:: upgrade_dependencies(context)
+
+       Upgrades the core venv dependency packages (currently ``pip`` and
+       ``setuptools``) in the environment. This is done by shelling out to the
+       ``pip`` executable in the environment.
+
+       .. versionadded:: 3.8
+
     .. method:: post_setup(context)
 
         A placeholder method which can be overridden in third party