Release History#
v20.25.0 (2023-12-01)#
Features - 20.25.0#
Bugfixes - 20.25.0#
v20.24.6 (2023-10-23)#
Bugfixes - 20.24.6#
v20.24.5 (2023-09-08)#
Bugfixes - 20.24.5#
Brew on macOS no longer allows copy builds - disallow choosing this by @gaborbernat. (#2640)
Upgrade embedded wheels:
setuptools to
68.2.0from68.1.2(#2642)
v20.24.4 (2023-08-30)#
Bugfixes - 20.24.4#
Upgrade embedded wheels:
setuptools to
68.1.2from68.1.0on3.8+wheel to
0.41.2from0.41.1on3.7+(#2628)
v20.24.3 (2023-08-11)#
Bugfixes - 20.24.3#
Misc - 20.24.3#
v20.24.2 (2023-07-24)#
Bugfixes - 20.24.2#
Upgrade embedded wheels:
pip to
23.2.1from23.2wheel to
0.41.0from0.40.0(#2614)
v20.24.1 (2023-07-19)#
Bugfixes - 20.24.1#
Upgrade embedded wheels:
pip to
23.2from23.1.2- by @arielkirkwood (#2611)
v20.24.0 (2023-07-14)#
Features - 20.24.0#
Export the prompt prefix as
VIRTUAL_ENV_PROMPTwhen activating a virtual environment - by @jimporter. (#2194)
Bugfixes - 20.24.0#
Fix test suite - by @gaborbernat. (#2592)
Upgrade embedded wheels:
setuptools to
68.0.0from67.8.0(#2607)
v20.23.1 (2023-06-16)#
Bugfixes - 20.23.1#
v20.23.0 (2023-04-27)#
Features - 20.23.0#
Do not install
wheelandsetuptoolsseed packages for Python 3.12+. To restore the old behaviour use:for
wheeluseVIRTUALENV_WHEEL=bundleenvironment variable or--wheel=bundleCLI flag,for
setuptoolsuseVIRTUALENV_SETUPTOOLS=bundleenvironment variable or--setuptools=bundleCLI flag.
3.12 support - by @gaborbernat. (#2558)
Bugfixes - 20.23.0#
v20.22.0 (2023-04-19)#
Features - 20.22.0#
Drop support for creating Python <=3.6 (including 2) interpreters. Removed pip of
20.3.4,21.3.1; wheel of0.37.1; setuptools of59.6.0,44.1.1,50.3.2- by @gaborbernat. (#2548)
v20.21.1 (2023-04-19)#
Bugfixes - 20.21.1#
Move the use of ‘let’ in nushell to ensure compatibility with future releases of nushell, where ‘let’ no longer assumes that its initializer is a full expressions. (#2527)
The nushell command ‘str collect’ has been superseded by the ‘str join’ command. The activate.nu script has been updated to reflect this change. (#2532)
Upgrade embedded wheels:
wheel to
0.40.0from0.38.4setuptools to
67.6.1from67.4.0pip to
23.1from23.0.1(#2546)
v20.21.0 (2023-03-12)#
Features - 20.21.0#
Make closure syntax explicitly starts with {||. (#2512)
Bugfixes - 20.21.0#
Add
printcommand to nushell print_prompt to ensure compatibility with future release of nushell, where intermediate commands no longer print their result to stdout. (#2514)Do not assume the default encoding. (#2515)
Make
ReentrantFileLockthread-safe and, thereby, fix race condition invirtualenv.cli_run- by @radoering. (#2516)
v20.20.0 (2023-02-28)#
Features - 20.20.0#
Change environment variable existence check in Nushell activation script to not use deprecated command. (#2506)
Bugfixes - 20.20.0#
Discover CPython implementations distributed on Windows by any organization - by @faph. (#2504)
Upgrade embedded setuptools to
67.4.0from67.1.0and pip to23.0.1from23.0- by @gaborbernat. (#2510)
v20.19.0 (2023-02-07)#
Features - 20.19.0#
v20.18.0 (2023-02-06)#
Features - 20.18.0#
Drop
3.6runtime support (can still create2.7+) - by @gaborbernat. (#2489)
Bugfixes - 20.18.0#
Fix broken prompt in Nushell when activating virtual environment - by @kubouc. (#2481)
Bump embedded pip to
23.0and setuptools to67.1- by @gaborbernat. (#2489)
v20.17.1 (2022-12-05)#
Bugfixes - 20.17.1#
A
pyorpythonspec means any Python rather thanCPython- by @gaborbernat. (#2460)Make
activate.nurespectVIRTUAL_ENV_DISABLE_PROMPTand not set the prompt if reqeusted - by @m-lima. (#2461)
v20.17.0 (2022-11-27)#
Features - 20.17.0#
Bugfixes - 20.17.0#
Do not use deprecated API from
importlib.resourceson Python 3.10 or later - by @gaborbernat. (#2448)Upgrade embedded setuptools to
65.6.3from65.5.1- by @gaborbernat. (#2451)
v20.16.7 (2022-11-12)#
Bugfixes - 20.16.7#
Use parent directory of python executable for pyvenv.cfg “home” value per PEP 405 - by @vfazio. (#2440)
In POSIX virtual environments, try alternate binary names if
sys._base_executabledoes not exist - by @vfazio. (#2442)Upgrade embedded wheel to
0.38.4and pip to22.3.1from22.3and setuptools to65.5.1from65.5.0- by @gaborbernat. (#2443)
v20.16.6 (2022-10-25)#
Features - 20.16.6#
Drop unneeded shims for PyPy3 directory structure (#2426)
Bugfixes - 20.16.6#
Fix selected scheme on debian derivatives for python 3.10 when
python3-distutilsis not installed or thevenvscheme is not avaiable - by @asottile. (#2350)Allow the test suite to pass even with the original C shell (rather than
tcsh) - by @kulikjak. (#2418)Fix fallback handling of downloading wheels for bundled packages - by @schaap. (#2429)
Upgrade embedded setuptools to
65.5.0from65.3.0and pip to22.3from22.2.2- by @gaborbernat. (#2434)
v20.16.5 (2022-09-07)#
Bugfixes - 20.16.5#
Do not turn echo off for subsequent commands in batch activators (
activate.batanddeactivate.bat) - by @pawelszramowski. (#2411)
v20.16.4 (2022-08-29)#
Bugfixes - 20.16.4#
Bump embed setuptools to
65.3- by @gaborbernat. (#2405)
v20.16.3 (2022-08-04)#
Bugfixes - 20.16.3#
Upgrade embedded pip to
22.2.2from22.2.1and setuptools to63.4.1from63.2.0- by @gaborbernat. (#2395)
v20.16.2 (2022-07-27)#
Bugfixes - 20.16.2#
Bump embeded pip from
22.2to22.2.1- by @gaborbernat. (#2391)
v20.16.1 (2022-07-26)#
Features - 20.16.1#
v20.16.0 (2022-07-25)#
Features - 20.16.0#
Drop support for running under Python 2 (still can generate Python 2 environments) - by @gaborbernat. (#2382)
Upgrade embedded pip to
22.2from22.1.2and setuptools to63.2.0from62.6.0- by @gaborbernat. (#2383)
v20.15.1 (2022-06-28)#
Bugfixes - 20.15.1#
v20.15.0 (2022-06-25)#
Features - 20.15.0#
Bugfixes - 20.15.0#
Upgrade embedded setuptools to
62.3.3from62.6.0and pip to22.1.2from22.0.4- by @gaborbernat. (#2348)Use
shlex.quoteinstead of deprecatedpipes.quotein Python 3 - by @frenzymadness. (#2351)
v20.14.1 (2022-04-11)#
Features - 20.14.1#
Support for creating a virtual environment from a Python 2.7 framework on macOS 12 - by @nickhutchinson. (#2284)
Bugfixes - 20.14.1#
Upgrade embedded setuptools to
62.1.0from61.0.0- by @gaborbernat. (#2327)
v20.14.0 (2022-03-25)#
Features - 20.14.0#
Bugfixes - 20.14.0#
Upgrade embedded setuptools to
61.0.0from60.10.0- by @gaborbernat. (#2322)
v20.13.4 (2022-03-18)#
Bugfixes - 20.13.4#
Improve performance of python startup inside created virtualenvs - by @asottile. (#2317)
Upgrade embedded setuptools to
60.10.0from60.9.3- by @gaborbernat. (#2320)
v20.13.3 (2022-03-07)#
Bugfixes - 20.13.3#
Avoid symlinking the contents of
/usrinto PyPy3.8+ virtualenvs - by @stefanor. (#2310)Bump embed pip from
22.0.3to22.0.4- by @gaborbernat. (#2311)
v20.13.2 (2022-02-24)#
Bugfixes - 20.13.2#
Upgrade embedded setuptools to
60.9.3from60.6.0- by @gaborbernat. (#2306)
v20.13.1 (2022-02-05)#
Bugfixes - 20.13.1#
v20.13.0 (2022-01-02)#
Features - 20.13.0#
Bugfixes - 20.13.0#
v20.12.1 (2022-01-01)#
Bugfixes - 20.12.1#
Try using previous updates of
pip,setuptools&wheelwhen inside an update grace period rather than always falling back to embedded wheels - by @mayeut. (#2265)New patch versions of
pip,setuptools&wheelare now returned in the expected timeframe. - by @mayeut. (#2266)Manual upgrades of
pip,setuptools&wheelare not discarded by a periodic update - by @mayeut. (#2267)
v20.12.0 (2021-12-31)#
Features - 20.12.0#
Bugfixes - 20.12.0#
Ugrade embedded setuptools to
60.2.0from60.1.1- by @gaborbernat. (#2263)
v20.11.2 (2021-12-29)#
Bugfixes - 20.11.2#
v20.11.1 (2021-12-29)#
Bugfixes - 20.11.1#
Bump embed setuptools to
60.1.1from60.1.0- by @gaborbernat. (#2258)
v20.11.0 (2021-12-28)#
Features - 20.11.0#
Avoid deprecation warning from py-filelock argument - by @ofek. (#2237)
Upgrade embedded setuptools to
61.1.0from58.3.0- by @gaborbernat. (#2240)Drop the runtime dependency of
backports.entry-points-selectable- by @hroncok. (#2246)Fish: PATH variables should not be quoted when being set - by @d3dave. (#2248)
v20.10.0 (2021-11-01)#
Features - 20.10.0#
If a
"venv"install scheme exists insysconfig, virtualenv now uses it to create new virtual environments. This allows Python distributors, such as Fedora, to patch/replace the default install scheme without affecting the paths in new virtual environments. A similar technique was proposed to Python, for the venv module - byhroncok(#2208)The activated virtualenv prompt is now always wrapped in parentheses. This affects venvs created with the
--promptattribute, and matches virtualenv’s behaviour on par with venv. (#2224)
Bugfixes - 20.10.0#
v20.9.0 (2021-10-23)#
Features - 20.9.0#
Bugfixes - 20.9.0#
Fixed path collision that could lead to a PermissionError or writing to system directories when using PyPy3.8 - by @mgorny. (#2182)
Upgrade embedded setuptools to
58.3.0from58.1.0and pip to21.3.1from21.2.4- by @gaborbernat. (#2205)Remove stray closing parenthesis in activate.bat - by @SiggyBar. (#2221)
v20.8.1 (2021-09-24)#
Bugfixes - 20.8.1#
Fixed a bug where while creating a venv on top of an existing one, without cleaning, when seeded wheel version mismatch occurred, multiple
.dist-infodirectories may be present, confounding entrypoint discovery - by @arcivanov (#2185)Bump embed setuptools from
58.0.4to58.1.0- by @gaborbernat. (#2195)
Misc - 20.8.1#
v20.8.0 (2021-09-16)#
upgrade embedded setuptools to
58.0.4from57.4.0and pip to21.2.4from21.2.3Add nushell activation script
v20.7.2 (2021-08-10)#
Bugfixes - 20.7.2#
Upgrade embedded pip to
21.2.3from21.2.2and wheel to0.37.0from0.36.2- by @gaborbernat. (#2168)
v20.7.1 (2021-08-09)#
Bugfixes - 20.7.1#
Fix unpacking dictionary items in PythonInfo.install_path (#2165)
v20.7.0 (2021-07-31)#
Bugfixes - 20.7.0#
upgrade embedded pip to
21.2.2from21.1.3and setuptools to57.4.0from57.1.0- by @gaborbernat (#2159)
Deprecations and Removals - 20.7.0#
Removed
xonshactivator due to this breaking fairly often the CI and lack of support from those packages maintainers, upstream is encouraged to continue supporting the project as a plugin - by @gaborbernat. (#2160)
v20.6.0 (2021-07-14)#
Features - 20.6.0#
Support Python interpreters without
distutils(fallback tosyconfigin these cases) - by @gaborbernat. (#1910)
v20.5.0 (2021-07-13)#
Features - 20.5.0#
Plugins now use ‘selectable’ entry points - by @jaraco. (#2093)
add libffi-7.dll to the hard-coded list of dlls for PyPy (#2141)
Use the better maintained
platformdirsinstead ofappdirs- by @gaborbernat. (#2142)
Bugfixes - 20.5.0#
Bump pip the embedded pip
21.1.3and setuptools to57.1.0- by @gaborbernat. (#2135)
Deprecations and Removals - 20.5.0#
Drop python
3.4support as it has been over 2 years since EOL - by @gaborbernat. (#2141)
v20.4.7 (2021-05-24)#
Bugfixes - 20.4.7#
Upgrade embedded pip to
21.1.2and setuptools to57.0.0- by @gaborbernat. (#2123)
v20.4.6 (2021-05-05)#
Bugfixes - 20.4.6#
Fix
site.getsitepackages()broken on python2 on debian - by @freundTech. (#2105)
v20.4.5 (2021-05-05)#
Bugfixes - 20.4.5#
Bump pip to
21.1.1from21.0.1- by @gaborbernat. (#2104)Fix
site.getsitepackages()ignoring--system-site-packageson python2 - by @freundTech. (#2106)
v20.4.4 (2021-04-20)#
Bugfixes - 20.4.4#
Built in discovery class is always preferred over plugin supplied classes. (#2087)
Upgrade embedded setuptools to
56.0.0by @gaborbernat. (#2094)
v20.4.3 (2021-03-16)#
Bugfixes - 20.4.3#
Bump embedded setuptools from
52.0.0to54.1.2- by @gaborbernat (#2069)Fix PyPy3 stdlib on Windows is incorrect - by @gaborbernat. (#2071)
v20.4.2 (2021-02-01)#
Bugfixes - 20.4.2#
Running virtualenv
--upgrade-embed-wheelscrashes - by @gaborbernat. (#2058)
v20.4.1 (2021-01-31)#
Bugfixes - 20.4.1#
Bump embedded pip and setuptools packages to latest upstream supported (
21.0.1and52.0.0) - by @gaborbernat. (#2060)
v20.4.0 (2021-01-19)#
Features - 20.4.0#
On the programmatic API allow passing in the environment variable dictionary to use, defaults to
os.environif not specified - by @gaborbernat. (#2054)
Bugfixes - 20.4.0#
Upgrade embedded setuptools to
51.3.3from51.1.2- by @gaborbernat. (#2055)
v20.3.1 (2021-01-13)#
Bugfixes - 20.3.1#
Bump embed pip to
20.3.3, setuptools to51.1.1and wheel to0.36.2- by @gaborbernat. (#2036)Allow unfunctioning of pydoc to fail freely so that virtualenvs can be activated under Zsh with set -e (since otherwise
unset -fandunfunctionexit with 1 if the function does not exist in Zsh) - by @d125q. (#2049)Drop cached python information if the system executable is no longer present (for example when the executable is a shim and the mapped executable is replaced - such is the case with pyenv) - by @gaborbernat. (#2050)
v20.3.0 (2021-01-10)#
Features - 20.3.0#
The builtin discovery takes now a
--try-first-withargument and is first attempted as valid interpreters. One can use this to force discovery of a given python executable when the discovery order/mechanism raises errors - by @gaborbernat. (#2046)
Bugfixes - 20.3.0#
On Windows python
3.7+distributions where the exe shim is missing fallback to the old ways - by @gaborbernat. (#1986)When discovering interpreters on Windows, via the PEP-514, prefer
PythonCorereleases over other ones. virtualenv is used via pip mostly by this distribution, so prefer it over other such as conda - by @gaborbernat. (#2046)
v20.2.2 (2020-12-07)#
Bugfixes - 20.2.2#
Bump pip to
20.3.1, setuptools to51.0.0and wheel to0.36.1- by @gaborbernat. (#2029)
v20.2.1 (2020-11-23)#
No significant changes.
v20.2.0 (2020-11-21)#
Features - 20.2.0#
Optionally skip VCS ignore directive for entire virtualenv directory, using option
no-vcs-ignore, by defaultFalse. (#2003)Add
--read-only-app-dataoption to allow for creation based on an existing app data cache which is non-writable. This may be useful (for example) to produce a docker image where the app-data is pre-populated.ENV \ VIRTUALENV_OVERRIDE_APP_DATA=/opt/virtualenv/cache \ VIRTUALENV_SYMLINK_APP_DATA=1 RUN virtualenv venv && rm -rf venv ENV VIRTUALENV_READ_ONLY_APP_DATA=1 USER nobody # this virtualenv has symlinks into the read-only app-data cache RUN virtualenv /tmp/venv
Bugfixes - 20.2.0#
v20.1.0 (2020-10-25)#
Features - 20.1.0#
The python specification can now take one or more values, first found is used to create the virtual environment - by @gaborbernat. (#1995)
v20.0.35 (2020-10-15)#
Bugfixes - 20.0.35#
Bump embedded setuptools from
50.3.0to50.3.1- by @gaborbernat. (#1982)After importing virtualenv passing cwd to a subprocess calls breaks with
invalid directory- by @gaborbernat. (#1983)
v20.0.34 (2020-10-12)#
Bugfixes - 20.0.34#
Align with venv module when creating virtual environments with builtin creator on Windows 3.7 and later - by @gaborbernat. (#1782)
Handle Cygwin path conversion in the activation script - by @davidcoghlan. (#1969)
v20.0.33 (2020-10-04)#
Bugfixes - 20.0.33#
Fix
Nonetype error in cygwin if POSIX path in dest - by @danyeaw. (#1962)Fix Python 3.4 incompatibilities (added back to the CI) - by @gaborbernat. (#1963)
v20.0.32 (2020-10-01)#
Bugfixes - 20.0.32#
For activation scripts always use UNIX line endings (unless it’s BATCH shell related) - by @saytosid. (#1818)
Upgrade embedded pip to
20.2.1and setuptools to49.4.0- by @gaborbernat. (#1918)Avoid spawning new windows when doing seed package upgrades in the background on Windows - by @gaborbernat. (#1928)
Fix a bug that reading and writing on the same file may cause race on multiple processes. (#1938)
Upgrade embedded setuptools to
50.2.0and pip to20.2.3- by @gaborbernat. (#1939)Provide correct path for bash activator in cygwin or msys2 - by @danyeaw. (#1940)
Relax importlib requirement to allow version<3 - by @usamasadiq (#1953)
pth files were not processed on CPython2 if $PYTHONPATH was pointing to site-packages/ - by @navytux. (#1959) (#1960)
v20.0.31 (2020-08-17)#
Bugfixes - 20.0.31#
Upgrade embedded pip to
20.2.1, setuptools to49.6.0and wheel to0.35.1- by @gaborbernat. (#1918)
v20.0.30 (2020-08-04)#
Bugfixes - 20.0.30#
Upgrade pip to
20.2.1and setuptools to49.2.1- by @gaborbernat. (#1915)
v20.0.29 (2020-07-31)#
Bugfixes - 20.0.29#
Upgrade embedded pip from version
20.1.2to20.2- by @gaborbernat. (#1909)
v20.0.28 (2020-07-24)#
Bugfixes - 20.0.28#
Fix test suite failing if run from system Python - by @gaborbernat. (#1882)
Provide
setup_loggingflag to python API so that users can bypass logging handling if their application already performs this - by @gaborbernat. (#1896)Use
\ninstead if\r\nas line separator for report (because Python already performs this transformation automatically upon write to the logging pipe) - by @gaborbernat. (#1905)
v20.0.27 (2020-07-15)#
Bugfixes - 20.0.27#
v20.0.26 (2020-07-07)#
Bugfixes - 20.0.26#
Bump dependency
distutils >= 0.3.1- by @gaborbernat. (#1880)Improve periodic update handling:
better logging output while running and enable logging on background process call (
_VIRTUALENV_PERIODIC_UPDATE_INLINEmay be used to debug behaviour inline)fallback to unverified context when querying the PyPi for release date,
stop downloading wheels once we reach the embedded version,
by @gaborbernat. (#1883)
Do not print error message if the application exists with
SystemExit(0)- by @gaborbernat. (#1885)Upgrade embedded setuptools from
47.3.1to49.1.0for Python3.5+- by @gaborbernat. (#1887)
v20.0.25 (2020-06-23)#
Bugfixes - 20.0.25#
Fix that when the
app-dataseeders image creation fails the exception is silently ignored. Avoid two virtual environment creations to step on each others toes by using a lock while creating the base images. By @gaborbernat. (#1869)
v20.0.24 (2020-06-22)#
Features - 20.0.24#
Ensure that the seeded packages do not get too much out of date:
add a CLI flag that triggers upgrade of embedded wheels under
upgrade-embed-wheelsperiodically (once every 14 days) upgrade the embedded wheels in a background process, and use them if they have been released for more than 28 days (can be disabled via
no-periodic-update)
More details under Wheels - by @gaborbernat. (#1821)
Upgrade embed wheel content:
ship wheels for Python
3.9and3.10upgrade setuptools for Python
3.5+from47.1.1to47.3.1
by @gaborbernat. (#1841)
Display the installed seed package versions in the final summary output, for example:
created virtual environment CPython3.8.3.final.0-64 in 350ms creator CPython3Posix(dest=/x, clear=True, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/y/virtualenv) added seed packages: pip==20.1.1, setuptools==47.3.1, wheel==0.34.2
by @gaborbernat. (#1864)
Bugfixes - 20.0.24#
Do not generate/overwrite
.gitignoreif it already exists at destination path - by @gaborbernat. (#1862)Improve error message for no
.dist-infoinside theapp-datacopy seeder - by @gaborbernat. (#1867)
Improved Documentation - 20.0.24#
How seeding mechanisms discover (and automatically keep it up to date) wheels at Wheels - by @gaborbernat. (#1821)
How distributions should handle shipping their own embedded wheels at Embed wheels for distributions - by @gaborbernat. (#1840)
v20.0.23 (2020-06-12)#
Bugfixes - 20.0.23#
Fix typo in
setup.cfg- by @RowdyHowell. (#1857)
v20.0.22 (2020-06-12)#
Bugfixes - 20.0.22#
Relax
importlib.resourcesrequirement to also allow version 2 - by @asottile. (#1846)Upgrade embedded setuptools to
44.1.1for python 2 and47.1.1for python3.5+ - by @gaborbernat. (#1855)
v20.0.21 (2020-05-20)#
Features - 20.0.21#
Generate ignore file for version control systems to avoid tracking virtual environments by default. Users should remove these files if still want to track. For now we support only git by @gaborbernat. (#1806)
Bugfixes - 20.0.21#
Fix virtualenv fails sometimes when run concurrently,
--clear-app-dataconflicts withclearflag when abbreviation is turned on. To bypass this while allowing abbreviated flags on the command line we had to move it toreset-app-data- by @gaborbernat. (#1824)Upgrade embedded
setuptoolsto46.4.0from46.1.3on Python3.5+, andpipfrom20.1to20.1.1- by @gaborbernat. (#1827)Seeder pip now correctly handles
--extra-search-dir- by @frenzymadness. (#1834)
v20.0.20 (2020-05-04)#
Bugfixes - 20.0.20#
Fix download fails with python 3.4 - by @gaborbernat. (#1809)
Fixes older CPython2 versions use
_get_makefile_filenameinstead ofget_makefile_filenameonsysconfig- by @ianw. (#1810)Fix download is
Trueby default - by @gaborbernat. (#1813)Fail
app-dataseed operation when wheel download fails and better error message - by @gaborbernat. (#1814)
v20.0.19 (2020-05-03)#
Bugfixes - 20.0.19#
Fix generating a Python 2 environment from Python 3 creates invalid python activator - by @gaborbernat. (#1776)
Fix pinning seed packages via
app-dataseeder raisedInvalid Requirement- by @gaborbernat. (#1779)Do not stop interpreter discovery if we fail to find the system interpreter for a executable during discovery - by @gaborbernat. (#1781)
On CPython2 POSIX platforms ensure
syconfig.get_makefile_filenameexists within the virtual environment (this is used by some c-extension based libraries - e.g. numpy - for building) - by @gaborbernat. (#1783)Better handling of options
copiesandsymlinks. Introduce priority of where the option is set to follow the order: CLI, env var, file, hardcoded. If both set at same level prefers copy over symlink. - by @gaborbernat. (#1784)Upgrade pip for Python
2.7and3.5+from20.0.2to20.1- by @gaborbernat. (#1793)Fix CPython is not discovered from Windows registry, and discover pythons from Windows registry in decreasing order by version - by @gaborbernat. (#1796)
v20.0.18 (2020-04-16)#
Bugfixes - 20.0.18#
Importing setuptools before cli_run could cause our python information query to fail due to setuptools patching
distutils.dist.Distribution- by @gaborbernat. (#1771)
v20.0.17 (2020-04-09)#
Features - 20.0.17#
Extend environment variables checked for configuration to also check aliases (e.g. setting either
VIRTUALENV_COPIESorVIRTUALENV_ALWAYS_COPYwill work) - by @gaborbernat. (#1763)
v20.0.16 (2020-04-04)#
Bugfixes - 20.0.16#
Allow seed wheel files inside the
extra-search-dirfolders that do not haveRequires-Pythonmetadata specified, these are considered compatible with all python versions - by @gaborbernat. (#1757)
v20.0.15 (2020-03-27)#
Features - 20.0.15#
Upgrade embedded setuptools to
46.1.3from46.1.1- by @gaborbernat. (#1752)
v20.0.14 (2020-03-25)#
Features - 20.0.14#
Remove
__PYVENV_LAUNCHER__on macOs for Python3.7.(<8)and3.8.(<3)on interpreter startup viapthfile, this pulls in the upstream patch - by @gaborbernat. (#1704)Upgrade embedded setuptools for Python
3.5+to46.1.1, for Python2.7to44.1.0- by @gaborbernat. (#1745)
Bugfixes - 20.0.14#
Fix discovery of interpreter by name from
PATHthat does not match a spec format - by @gaborbernat. (#1746)
v20.0.13 (2020-03-19)#
Bugfixes - 20.0.13#
Do not fail when the pyc files is missing for the host Python 2 - by @gaborbernat. (#1738)
Support broken Packaging pythons that put the include headers under distutils pattern rather than sysconfig one - by @gaborbernat. (#1739)
v20.0.12 (2020-03-19)#
Bugfixes - 20.0.12#
Fix relative path discovery of interpreters - by @gaborbernat. (#1734)
v20.0.11 (2020-03-18)#
Features - 20.0.11#
Improve error message when the host python does not satisfy invariants needed to create virtual environments (now we print which host files are incompatible/missing and for which creators when no supported creator can be matched, however we found creators that can describe the given Python interpreter - will still print no supported creator for Jython, however print exactly what host files do not allow creation of virtual environments in case of CPython/PyPy) - by @gaborbernat. (#1716)
Bugfixes - 20.0.11#
Support Python 3 Framework distributed via XCode in macOs Catalina and before - by @gaborbernat. (#1663)
Fix Windows Store Python support, do not allow creation via symlink as that’s not going to work by design - by @gaborbernat. (#1709)
Fix
activate_this.pythrowsAttributeErroron Windows when virtual environment was created via cross python mechanism - by @gaborbernat. (#1710)Fix
--no-pip,--no-setuptools,--no-wheelnot being respected - by @gaborbernat. (#1712)Allow missing
.pyfiles if a compiled.pycversion is available - by @tucked. (#1714)Do not fail if the distutils/setuptools patch happens on a C-extension loader (such as
zipimporteron Python 3.7 or earlier) - by @gaborbernat. (#1715)Support Python 2 implementations that require the landmark files and
site.pyto be in platform standard library instead of the standard library path of the virtual environment (notably some RHEL ones, such as the Docker imageamazonlinux:1) - by @gaborbernat. (#1719)Allow the test suite to pass even when called with the system Python - to help repackaging of the tool for Linux distributions - by @gaborbernat. (#1721)
Also generate
pipx.yconsole script besidepip-x.yto be compatible with how pip installs itself - by @gaborbernat. (#1723)Automatically create the application data folder if it does not exists - by @gaborbernat. (#1728)
Improved Documentation - 20.0.11#
supports details now explicitly what Python installations we support - by @gaborbernat. (#1714)
v20.0.10 (2020-03-10)#
Bugfixes - 20.0.10#
Fix acquiring python information might be altered by distutils configuration files generating incorrect layout virtual environments - by @gaborbernat. (#1663)
Upgrade embedded setuptools to
46.0.0from45.3.0on Python3.5+- by @gaborbernat. (#1702)
Improved Documentation - 20.0.10#
Document requirements (pip + index server) when installing via pip under the installation section - by @gaborbernat. (#1618)
Document installing from non PEP-518 systems - @gaborbernat. (#1619)
Document installing latest unreleased version from Github - @gaborbernat. (#1620)
v20.0.9 (2020-03-08)#
Bugfixes - 20.0.9#
pythonw.exeworks aspython.exeon Windows - by @gaborbernat. (#1686)Handle legacy loaders for virtualenv import hooks used to patch distutils configuration load - by @gaborbernat. (#1690)
Support for python 2 platforms that store landmark files in
platstdliboverstdlib(e.g. RHEL) - by @gaborbernat. (#1694)Upgrade embedded setuptools to
45.3.0from45.2.0for Python3.5+- by @gaborbernat. (#1699)
v20.0.8 (2020-03-04)#
Bugfixes - 20.0.8#
Having distutils configuration files that set
prefixandinstall_scriptscause installation of packages in the wrong location - by @gaborbernat. (#1663)Fix
PYTHONPATHbeing overridden on Python 2 — by @jd. (#1673)Fix list configuration value parsing from config file or environment variable - by @gaborbernat. (#1674)
Fix Batch activation script shell prompt to display environment name by default - by @spetafree. (#1679)
Fix startup on Python 2 is slower for virtualenv - this was due to setuptools calculating it’s working set distribution - by @gaborbernat. (#1682)
Fix entry points are not populated for editable installs on Python 2 due to setuptools working set being calculated before
easy_install.pthruns - by @gaborbernat. (#1684)Fix
attr:import fails for setuptools - by @gaborbernat. (#1685)
v20.0.7 (2020-02-26)#
Bugfixes - 20.0.7#
Disable distutils fixup for python 3 until pypa/pip #7778 is fixed and released - by @gaborbernat. (#1669)
v20.0.6 (2020-02-26)#
Bugfixes - 20.0.6#
Fix global site package always being added with bundled macOs python framework builds - by @gaborbernat. (#1561)
Fix generated scripts use host version info rather than target - by @gaborbernat. (#1600)
Fix circular prefix reference with single elements (accept these as if they were system executables, print a info about them referencing themselves) - by @gaborbernat. (#1632)
Handle the case when the application data folder is read-only:
the application data folder is now controllable via
app-data,clear-app-datanow cleans the entire application data folder, not just theapp-dataseeder path,check if the application data path passed in does not exist or is read-only, and fallback to a temporary directory,
temporary directory application data is automatically cleaned up at the end of execution,
symlink-app-datais alwaysFalsewhen the application data is temporary
by @gaborbernat. (#1640)
Fix PyPy 2 builtin modules are imported from standard library, rather than from builtin - by @gaborbernat. (#1652)
Fix creation of entry points when path contains spaces - by @nsoranzo. (#1660)
Fix relative paths for the zipapp (for python
3.7+) - by @gaborbernat. (#1666)
v20.0.5 (2020-02-21)#
Features - 20.0.5#
Also create
pythonX.Xexecutables when creating pypy virtualenvs - by @asottile (#1612)Fail with better error message if trying to install source with unsupported
setuptools, allowsetuptools-scm >= 2and move to legacysetuptools-scmformat to support better older platforms (CentOS 7and such) - by @gaborbernat. (#1621)Report of the created virtual environment is now split across four short lines rather than one long - by @gaborbernat (#1641)
Bugfixes - 20.0.5#
Add macOs Python 2 Framework support (now we test it with the CI via brew) - by @gaborbernat (#1561)
Fix losing of libpypy-c.so when the pypy executable is a symlink - by @asottile (#1614)
Discover python interpreter in a case insensitive manner - by @PrajwalM2212 (#1624)
Fix cross interpreter support when the host python sets
sys.base_executablebased on__PYVENV_LAUNCHER__- by @cjolowicz (#1643)
v20.0.4 (2020-02-14)#
Features - 20.0.4#
Bugfixes - 20.0.4#
v20.0.3 (2020-02-12)#
Bugfixes - 20.0.3#
On Python 2 with Apple Framework builds the global site package is no longer added when the
system-site-packagesis not specified - by @gaborbernat. (#1561)Fix system python discovery mechanism when prefixes contain relative parts (e.g.
..) by resolving paths within the python information query - by @gaborbernat. (#1583)Expose a programmatic API as
from virtualenv import cli_run- by @gaborbernat. (#1585)Fix
app-dataseederinjects a extra.dist-info.virtualenvpath that breaksimportlib.metadata, now we inject an extra.virtualenv- by @gaborbernat. (#1589)
Improved Documentation - 20.0.3#
Document a programmatic API as
from virtualenv import cli_rununder Programmatic API - by @gaborbernat. (#1585)
v20.0.2 (2020-02-11)#
Features - 20.0.2#
Print out a one line message about the created virtual environment when no
verboseis set, this can now be silenced to get back the original behaviour via thequietflag - by @pradyunsg. (#1557)Allow virtualenv’s app data cache to be overridden by
VIRTUALENV_OVERRIDE_APP_DATA- by @asottile. (#1559)Passing in the virtual environment name/path is now required (no longer defaults to
venv) - by @gaborbernat. (#1568)Add a CLI flag
with-tracebackthat allows displaying the stacktrace of the virtualenv when a failure occurs - by @gaborbernat. (#1572)
Bugfixes - 20.0.2#
Support long path names for generated virtual environment console entry points (such as
pip) when using theapp-dataseeder- by @gaborbernat. (#997)Improve python discovery mechanism:
do not fail if there are executables that fail to query (e.g. for not having execute access to it) on the
PATH,beside the prefix folder also try with the platform dependent binary folder within that,
by @gaborbernat. (#1545)
When copying (either files or trees) do not copy the permission bits, last access time, last modification time, and flags as access to these might be forbidden (for example in case of the macOs Framework Python) and these are not needed for the user to use the virtual environment - by @gaborbernat. (#1561)
While discovering a python executables interpreters that cannot be queried are now displayed with info level rather than warning, so now they’re no longer shown by default (these can be just executables to which we don’t have access or that are broken, don’t warn if it’s not the target Python we want) - by @gaborbernat. (#1574)
The
app-dataseederno longer symlinks the packages on UNIX and copies on Windows. Instead by default always copies, however now has thesymlink-app-dataflag allowing users to request this less robust but faster method - by @gaborbernat. (#1575)
Improved Documentation - 20.0.2#
Add link to the legacy documentation for the changelog by @jezdez. (#1547)
Fine tune the documentation layout: default width of theme, allow tables to wrap around, soft corners for code snippets - by @pradyunsg. (#1548)
v20.0.1 (2020-02-10)#
Features - 20.0.1#
upgrade embedded setuptools to
45.2.0from45.1.0for Python3.4+- by @gaborbernat. (#1554)
Bugfixes - 20.0.1#
Virtual environments created via relative path on Windows creates bad console executables - by @gaborbernat. (#1552)
Seems sometimes venvs created set their base executable to themselves; we accept these without question, so we handle virtual environments as system pythons causing issues - by @gaborbernat. (#1553)
v20.0.0. (2020-02-10)#
Improved Documentation - 20.0.0.#
Fixes typos, repeated words and inconsistent heading spacing. Rephrase parts of the development documentation and CLI documentation. Expands shorthands like
env varandconfigto their full forms. Uses descriptions from respective documentation, for projects listed inrelated links- by @pradyunsg. (#1540)
v20.0.0b2 (2020-02-04)#
Features - 20.0.0b2#
Improve base executable discovery mechanism:
print at debug level why we refuse some candidates,
when no candidates match exactly, instead of hard failing fallback to the closest match where the priority of matching attributes is: python implementation, major version, minor version, architecture, patch version, release level and serial (this is to facilitate things to still work when the OS upgrade replace/upgrades the system python with a never version, than what the virtualenv host python was created with),
always resolve system_executable information during the interpreter discovery, and the discovered environment is the system interpreter instead of the venv/virtualenv (this happened before lazily the first time we accessed, and caused reporting that the created virtual environment is of type of the virtualenv host python version, instead of the system pythons version - these two can differ if the OS upgraded the system python underneath and the virtualenv host was created via copy),
by @gaborbernat. (#1515)
Generate
bashandfishactivators on Windows too (as these can be available with git bash, cygwin or mysys2) - by @gaborbernat. (#1527)Upgrade the bundled
wheelpackage from0.34.0to0.34.2- by @gaborbernat. (#1531)
Bugfixes - 20.0.0b2#
Bash activation script should have no extensions instead of
.sh(this fixes the virtualenvwrapper integration) - by @gaborbernat. (#1508)Show less information when we run with a single verbosity (
-v):no longer shows accepted interpreters information (as the last proposed one is always the accepted one),
do not display the
str_specattribute forPythonSpecas these can be deduced from the other attributes,for the
app-dataseeder do not show the type of lock, only the path to the app data directory,
By @gaborbernat. (#1510)
Fixed cannot discover a python interpreter that has already been discovered under a different path (such is the case when we have multiple symlinks to the same interpreter) - by @gaborbernat. (#1512)
Support relative paths for
-p- by @gaborbernat. (#1514)Creating virtual environments in parallel fail with cannot acquire lock within app data - by @gaborbernat. (#1516)
pth files were not processed under Debian CPython2 interpreters - by @gaborbernat. (#1517)
Fix prompt not displayed correctly with upcoming fish 3.10 due to us not preserving
$pipestatus- by @krobelus. (#1530)Stable order within
pyenv.cfgand addinclude-system-site-packagesonly for creators that reference a global Python - by user:gaborbernat. (#1535)
Improved Documentation - 20.0.0b2#
Create the first iteration of the new documentation - by @gaborbernat. (#1465)
Project readme is now of type MarkDown instead of reStructuredText - by @gaborbernat. (#1531)
v20.0.0b1 (2020-01-28)#
First public release of the rewrite. Everything is brand new and just added.
--downloaddefaults toFalseNo longer replaces builtin
sitemodule with custom version baked within virtualenv code itself. A simple shim module is used to fix up things on Python 2 only.
Warning
The current virtualenv is the second iteration of implementation. From version 0.8 all the way to 16.7.9
we numbered the first iteration. Version 20.0.0b1 is a complete rewrite of the package, and as such this release
history starts from there. The old changelog is still available in the
legacy branch documentation.