From 0f59a2b972d437a811e470219790f28e574439bb Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski Date: Mon, 6 May 2019 11:50:12 -0400 Subject: [PATCH 1/3] bpo-36275: enhance documentation for venv.create() --- Doc/library/venv.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 412808ad44866d..3d52e563a95075 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -234,11 +234,12 @@ creation according to their needs, the :class:`EnvBuilder` class. There is also a module-level convenience function: .. function:: create(env_dir, system_site_packages=False, clear=False, \ - symlinks=False, with_pip=False) + symlinks=False, with_pip=False, prompt=None) Create an :class:`EnvBuilder` with the given keyword arguments, and call its :meth:`~EnvBuilder.create` method with the *env_dir* argument. + .. versionadded:: 3.3 .. versionchanged:: 3.4 Added the ``with_pip`` parameter From 4aa836e21bc91e5de0fda5c03a073a06943f1bdc Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski Date: Mon, 6 May 2019 12:03:19 -0400 Subject: [PATCH 2/3] bpo-36275: add versionchanged for prompt parameter in venv.create() --- Doc/library/venv.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 3d52e563a95075..f05d19839275cd 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -242,6 +242,8 @@ There is also a module-level convenience function: .. versionadded:: 3.3 .. versionchanged:: 3.4 Added the ``with_pip`` parameter + .. versionchanged:: 3.6 + Added the ``prompt`` parameter An example of extending ``EnvBuilder`` -------------------------------------- From 3122a107607ba2aaab74be13c337ed3070d8310d Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski Date: Mon, 6 May 2019 13:32:05 -0400 Subject: [PATCH 3/3] bpo-36275: add blank lines betrween directives --- Doc/library/venv.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index f05d19839275cd..4f083a3181e7a9 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -240,8 +240,10 @@ There is also a module-level convenience function: :meth:`~EnvBuilder.create` method with the *env_dir* argument. .. versionadded:: 3.3 + .. versionchanged:: 3.4 Added the ``with_pip`` parameter + .. versionchanged:: 3.6 Added the ``prompt`` parameter