pypi virtualenv 21.16.0

one hour ago

Features

  • Require Python 3.10 or later to run virtualenv and create environments, matching pip's minimum. Use an older virtualenv release to create Python 3.9 environments (#3789) by @gaborbernat.

Bug fixes

  • A second Ctrl+C while seed packages install now exits right away; before, it could leave virtualenv hanging until killed (#3775) by @gaborbernat.
  • Keep cached wheels usable offline when several runs share app-data; before, one run could delete the embed update log while another wrote it, overwrite the wheel another had just recorded, or hold back a wheel a manual upgrade had just picked (#3786) by @darrenhuai and @gaborbernat.
  • Seeding now reports a seed package for which no wheel could be acquired as a seed failure, instead of crashing with AttributeError: 'NoneType' object has no attribute 'version_tuple' (#3778) by @waw666waw666 and @gaborbernat.
  • Skip a .whl file whose file name version is not a valid PEP 440 version, such as pip-latest-py3-none-any.whl in an --extra-search-dir, instead of failing seeding with InvalidVersion (#3788) by @TranHoaiPhu and @gaborbernat.

Documentation

  • Align the CPython support policy with pip's. Maintainers may drop support for a CPython release once it reaches end of life (#3789) by @gaborbernat.

Security

  • With --copies, the shared libpython copied into the environment now comes only from below the prefix the interpreter runs from, falling back to that prefix's lib folder. The build-time LIBDIR went stale once a CPython installation moved, so whoever owned the old path, such as another account's folder below /tmp, could supply the library the environment's interpreter loads (#3784) by @gaborbernat.
  • With --venv-redirect, an existing .venv redirect is now kept without looking up its target unless it holds a single folder name that is not a symlink, the shape virtualenv writes; a path, a drive, a network share such as \\host\share or .. no longer gets looked up. A checkout could ship such a redirect, and on Windows looking up a file on a network share signs in to that host as the current user (#3783) by @gaborbernat.

New Contributors

🐍 PyPI release

📜 Full Changelog

Don't miss a new virtualenv release

NewReleases is sending notifications on new releases.