Skip to content

v4.67.14

Choose a tag to compare

@github-actions github-actions released this 17 Nov 22:23
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.

Bug fixes

  • An environment name that combines an interpreter prefix with an explicit version, such as pypy-3.10, now works together with other factors. pypy-3.10-lint or tests-cpython-3.13 used to fail with conflicting factors, because the prefix and the version were read as two separate Python factors. With ignore_base_python_conflict, such an environment name now takes precedence over base_python as other Python factors already do, so pypy-3.10-lint runs on pypy3.10 instead of the configured base_python (#4404) by @syahra712 and @gaborbernat.
  • A set_env entry with an empty name, such as =value in tox.ini or an environment file, or "" = "value" in a TOML table, now fails as invalid instead of passing an unnamed variable to the commands, which broke them on Windows (#4423) by @arindam77 and @gaborbernat. (#4422)
  • When tox writes set_env entries back out as lines, for example to combine a {[section]set_env} reference with an --override, a value ending in a backslash no longer swallows the environment marker that follows it, which made a variable scoped to one platform apply everywhere (#4426) by @anwang132 and @gaborbernat. (#4425)
  • An environment specific --override that appends with +=, such as testenv:py.deps+=pytest-xdist, now appends to the value the environment inherits from [testenv] or env_run_base instead of replacing it. Appending to a set such as labels adds to it, and appending to a single value such as description fails with an error, as it already did within one section (#4434) by @hemtilva and @gaborbernat. (#4432)
  • --use-feature in deps or a requirements file now accepts any feature name and leaves the check to pip, instead of rejecting every name other than 2020-resolver and fast-deps (#4436) by @Doomguy-BFG9000 and @gaborbernat. (#4435)
  • A duration just under a whole minute, hour or day, such as 59.999 seconds, is now shown as 1 minute instead of 60 seconds, and a hundredth of a second after a whole minute, hour or day, as in 1 minute 0.01 seconds, is no longer dropped (#4420) by @syahra712 and @gaborbernat.
  • Changing system_site_packages now recreates the environment. Before, tox reused the existing environment, which kept the old setting because virtualenv applies it only when it creates one. An environment created with the setting on by an earlier tox release is recreated once after upgrading (#4393) by @abhishekcpp007 and @gaborbernat.
  • Honor encoding declarations in the first two lines of requirements files before trying UTF-8 or the locale encoding. A declared encoding Python does not know fails the environment with an error naming the file instead of an internal error (#4440) by @Ramji-Purwar and @gaborbernat.
  • Recognize reversed extra markers such as "dev" == extra when selecting package dependencies (#4397) by @Jinyong-Li and @gaborbernat.
  • Report circular requirements and constraints file includes with a clear error instead of raising RecursionError (#4439) by @Ramji-Purwar and @gaborbernat.
  • tox config and {[testenv:NAME]commands} references now keep the - and ! exit-code prefixes of commands, so an inherited ignored or inverted command no longer turns into a plain one (#4421) by @anubhavlal07 and @gaborbernat.
  • {factor:label} now resolves a labeled factor value that contains a dash, such as flit-core, instead of falling back to its default (#4406) by @gaborbernat.
  • {factor:label} now resolves to the factor the label's group put in the environment name when two groups share a value. Before, with factors = [{ source = ["py312", "py313"] }, { target = ["py312", "py313"] }], the environment migrate-py313-py312 read py312 for both labels (#4402) by @Kernel-Hunter and @gaborbernat.
  • tox now treats a Windows junction where a run environment's directory, or its log or tmp folder, should live as it treats a symlink: it replaces the junction without touching the files of its target, also when the target is missing. A junction at the environment directory itself makes tox fail with is a link where this environment should live unless -r is given, instead of raising FileExistsError (#4418) by @subotac and @gaborbernat.

Documentation

  • Explain in the pkg_dir reference that it belongs to packaging environments and show how a run environment refers to it (#4428) by @vudigapranav and @gaborbernat. (#4424)
  • Document that package staging creates the work directory with owner-only access, why a process running as another account then fails to import from an environment, and how to opt out by creating the work directory or changing its mode (#4448) by @gaborbernat. (#4444)

Packaging

New Contributors

🐍 PyPI release

📜 Full Changelog