Commits
Commits on Jul 13, 2023
-
Copy the full SHA af51bd7View commit details
Commits on Apr 18, 2023
-
gh-95299: Stop installing setuptools as a part of ensurepip and venv (#…
…101039) Remove the bundled setuptools wheel from ensurepip, and stop installing setuptools in environments created by venv. Co-Authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Copy the full SHA ece20dbView commit details
Commits on Apr 17, 2023
-
gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-1…
…03591) Also touches the affected files in meaningless ways to ensure they get updated when pulling
Copy the full SHA eb5fd31View commit details
Commits on Apr 11, 2023
-
Copy the full SHA ebc8103View commit details
Commits on Dec 14, 2022
-
gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177
) gh-100176: Remove redundant compat code for Python 3.2 and older Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we can remove this old compatibility check and unindent the old else-block. Also, in the unindented block, replace a .format() call with an f-string. Plus similar changes in the documentation.
Copy the full SHA 3192c00View commit details
Commits on Oct 14, 2022
-
gh-98251: Allow venv to pass along PYTHON* variables to pip and ensur…
…epip when they do not impact path resolution (GH-98259)
Copy the full SHA 2fe44f7View commit details
Commits on Sep 17, 2022
-
Copy the full SHA 2cd70ffView commit details
Commits on Jun 27, 2022
-
Copy the full SHA 1172172View commit details
Commits on May 19, 2022
-
gh-92675: venv: Fix ensure_directories() to again accept a Path for e…
…nv_dir (#92676) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Copy the full SHA 30deeacView commit details
Commits on Apr 13, 2022
-
bpo-43218: Prevent venv creation when the target directory contains a…
… PATH separator. (GH-24530)
Copy the full SHA 54f67adView commit details
Commits on Mar 18, 2022
-
bpo-45413: Define "posix_venv", "nt_venv" and "venv" sysconfig instal…
…lation schemes (GH-31034) Define *posix_venv* and *nt_venv* sysconfig installation schemes to be used for bootstrapping new virtual environments. Add *venv* sysconfig installation scheme to get the appropriate one of the above. The schemes are identical to the pre-existing *posix_prefix* and *nt* install schemes. The venv module now uses the *venv* scheme to create new virtual environments instead of hardcoding the paths depending only on the platform. Downstream Python distributors customizing the *posix_prefix* or *nt* install scheme in a way that is not compatible with the install scheme used in virtual environments are encouraged not to customize the *venv* schemes. When Python itself runs in a virtual environment, sysconfig.get_default_scheme and sysconfig.get_preferred_scheme with `key="prefix"` returns *venv*.
Copy the full SHA 48d9262View commit details
Commits on Oct 7, 2021
-
Copy the full SHA 6811fdaView commit details
Commits on Oct 6, 2021
-
Fix typos in the Lib directory (GH-28775)
Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Copy the full SHA 745c9d9View commit details
Commits on May 19, 2021
-
bpo-43749: Ensure current exe is copied when using venv on windows (G…
…H-25216) Automerge-Triggered-By: GH:vsajip
Copy the full SHA 5d6e463View commit details
Commits on Jul 28, 2020
-
bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)
Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
Copy the full SHA c82dda1View commit details
Commits on May 20, 2020
-
Copy the full SHA da7d1f0View commit details
Commits on Mar 17, 2020
-
bpo-39656: Ensure
bin/python3.#
is always present in virtual enviro……nments on POSIX (GH-19030)
Copy the full SHA 58ec58aView commit details
Commits on Feb 5, 2020
-
Copy the full SHA 787b6d5View commit details
Commits on Jan 14, 2020
-
bpo-38901: Allow setting a venv's prompt to the basename of the curre…
…nt directory. (GH-17946) When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to configure the prompt for the created venv.
Copy the full SHA 7d63780View commit details -
venv: Suppress warning message when bash hashing is disabled. (GH-17966)
When using python's built-in venv activaton script warnings are printed when hashing is disabled in bash or zsh, like; `bash: hash: hashing disabled` This output is not really useful to the end-user and has been disabled in `virtualenv` for long. This commit is based on: pypa/virtualenv@28e85bc
Copy the full SHA 4b0d91aView commit details
Commits on Nov 29, 2019
-
Fix old mention of virtualenv (GH-17417)
Automerge-Triggered-By: @brettcannon
Copy the full SHA 1df65f7View commit details
Commits on Nov 27, 2019
-
bpo-38927: Use python -m pip to upgrade venv deps (GH-17403)
I suggest you add `bpo-NNNNN: ` as a prefix for the first commit for future PRs. Thanks!
Copy the full SHA d9aa216View commit details
Commits on Nov 23, 2019
-
bpo-38899: virtual environment activation for fish should use
source
(GH-17359) The previously documented use of `.` is considered deprecated (https://fishshell.com/docs/current/commands.html#source). https://bugs.python.org/issue38899 Automerge-Triggered-By: @brettcannon
Copy the full SHA 84b1ff6View commit details
Commits on Sep 11, 2019
-
bpo-37885: venv: Don't produce unbound variable warning on deactivate (…
…GH-15330) Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning: ``` $ python3 -m venv test $ source test/bin/activate (test) $ deactivate -bash: $1: unbound variable ```
Copy the full SHA 5209e58View commit details -
Copy the full SHA 574b324View commit details
Commits on Aug 21, 2019
-
bpo-37663: have venv activation scripts all consistently use __VENV_P…
…ROMPT__ for prompt customization (GH-14941) The activation scripts generated by venv were inconsistent in how they changed the shell's prompt. Some used `__VENV_PROMPT__` exclusively, some used `__VENV_PROMPT__` if it was set even though by default `__VENV_PROMPT__` is always set and the fallback matched the default, and one ignored `__VENV_PROMPT__` and used `__VENV_NAME__` instead (and even used a differing format to the default prompt). This change now has all activation scripts use `__VENV_PROMPT__` only and relies on the fact that venv sets that value by default. The color of the customization is also now set in fish to the blue from the Python logo for as hex color support is built into that shell (much like PowerShell where the built-in green color is used).
Copy the full SHA 48ede6bView commit details
Commits on Aug 12, 2019
-
bpo-37354: Make Powershell Activate.ps1 script static to allow for si…
…gning (GH-14967) - Remove use of replacement text in the script - Make use of the pyvenv.cfg file for prompt value. - Add parameters to allow more flexibility - Make use of the current path, and assumptions about where env puts things, to compensate - Make the script a bit more 'idiomatic' Powershell - Add script documentation (Get-Help .\.venv\Scripts\Activate.ps1 shows PS help page now
Copy the full SHA 732775dView commit details
Commits on Jun 29, 2019
-
bpo-37369: Fix initialization of sys members when launched via an app…
… container (GH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
Copy the full SHA 9048c49View commit details