Skip to content

Commits

Commits on Jul 13, 2023

  1. Copy the full SHA
    af51bd7 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. 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>
    4 people committed Apr 18, 2023
    Copy the full SHA
    ece20db View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. 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
    zooba committed Apr 17, 2023
    Copy the full SHA
    eb5fd31 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. Copy the full SHA
    ebc8103 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 2, 2023

  1. Copy the full SHA
    9dee973 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. 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.
    hugovk committed Dec 14, 2022
    Copy the full SHA
    3192c00 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 26, 2022

  1. Copy the full SHA
    a508631 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 14, 2022

  1. gh-98251: Allow venv to pass along PYTHON* variables to pip and ensur…

    …epip when they do not impact path resolution (GH-98259)
    zooba committed Oct 14, 2022
    Copy the full SHA
    2fe44f7 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 17, 2022

  1. Copy the full SHA
    2cd70ff View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Copy the full SHA
    1172172 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. Copy the full SHA
    aedb519 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. 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>
    3 people committed May 19, 2022
    Copy the full SHA
    30deeac View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Copy the full SHA
    54f67ad View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. 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*.
    hroncok committed Mar 18, 2022
    Copy the full SHA
    48d9262 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Copy the full SHA
    f4e325c View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Copy the full SHA
    6811fda View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. 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>
    cclauss and terryjreedy committed Oct 6, 2021
    Copy the full SHA
    745c9d9 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. bpo-43749: Ensure current exe is copied when using venv on windows (G…

    …H-25216)
    
    Automerge-Triggered-By: GH:vsajip
    inorton committed May 19, 2021
    Copy the full SHA
    5d6e463 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)

    Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
    ZackerySpytz and batisteo committed Jul 28, 2020
    Copy the full SHA
    c82dda1 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 25, 2020

  1. Copy the full SHA
    ef16958 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. Copy the full SHA
    da7d1f0 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Apr 2, 2020

  1. Copy the full SHA
    45217af View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Copy the full SHA
    58ec58a View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 5, 2020

  1. Copy the full SHA
    787b6d5 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 14, 2020

  1. 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.
    vsajip committed Jan 14, 2020
    Copy the full SHA
    7d63780 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. 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
    d-goldin authored and vsajip committed Jan 14, 2020
    Copy the full SHA
    4b0d91a View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 29, 2019

  1. Fix old mention of virtualenv (GH-17417)

    Automerge-Triggered-By: @brettcannon
    brettcannon authored and miss-islington committed Nov 29, 2019
    Copy the full SHA
    1df65f7 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 27, 2019

  1. 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!
    uranusjr authored and vsajip committed Nov 27, 2019
    Copy the full SHA
    d9aa216 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 23, 2019

  1. 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
    brettcannon authored and miss-islington committed Nov 23, 2019
    Copy the full SHA
    84b1ff6 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 7, 2019

  1. Copy the full SHA
    e310af9 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 11, 2019

  1. 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
    ```
    danabr authored and Yhg1s committed Sep 11, 2019
    Copy the full SHA
    5209e58 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Copy the full SHA
    574b324 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Aug 21, 2019

  1. 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).
    brettcannon committed Aug 21, 2019
    Copy the full SHA
    48ede6b View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Aug 12, 2019

  1. 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
    d3r3kk authored and zooba committed Aug 12, 2019
    Copy the full SHA
    732775d View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jun 29, 2019

  1. 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
    zooba committed Jun 29, 2019
    Copy the full SHA
    9048c49 View commit details
    View at this point in the history
    Browse the repository at this point in the history
Older