Repository navigation
v4.67.14
·
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-lintortests-cpython-3.13used to fail withconflicting factors, because the prefix and the version were read as two separate Python factors. Withignore_base_python_conflict, such an environment name now takes precedence overbase_pythonas other Python factors already do, sopypy-3.10-lintruns onpypy3.10instead of the configuredbase_python(#4404) by @syahra712 and @gaborbernat. - A
set_enventry with an empty name, such as=valueintox.inior 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_enventries 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
--overridethat appends with+=, such astestenv:py.deps+=pytest-xdist, now appends to the value the environment inherits from[testenv]orenv_run_baseinstead of replacing it. Appending to a set such aslabelsadds to it, and appending to a single value such asdescriptionfails with an error, as it already did within one section (#4434) by @hemtilva and @gaborbernat. (#4432) --use-featureindepsor a requirements file now accepts any feature name and leaves the check to pip, instead of rejecting every name other than2020-resolverandfast-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 minuteinstead of60 seconds, and a hundredth of a second after a whole minute, hour or day, as in1 minute 0.01 seconds, is no longer dropped (#4420) by @syahra712 and @gaborbernat. - Changing
system_site_packagesnow 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" == extrawhen 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 configand{[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 asflit-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, withfactors = [{ source = ["py312", "py313"] }, { target = ["py312", "py313"] }], the environmentmigrate-py313-py312readpy312for both labels (#4402) by @Kernel-Hunter and @gaborbernat.- tox now treats a Windows junction where a run environment's directory, or its
logortmpfolder, 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 withis a link where this environment should liveunless-ris given, instead of raisingFileExistsError(#4418) by @subotac and @gaborbernat.
Documentation
- Explain in the
pkg_dirreference 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
- Every wheel now carries a PEP 770 CycloneDX SBOM in its
.dist-info/sbomsdirectory, written at build time by python-sbom (#4403) by @gaborbernat.
New Contributors
- @Jinyong-Li made their first contribution in #4397
- @Kernel-Hunter made their first contribution in #4402
- @anubhavlal07 made their first contribution in #4421
- @vudigapranav made their first contribution in #4428
- @Ramji-Purwar made their first contribution in #4439
- @hemtilva made their first contribution in #4434
- @arindam77 made their first contribution in #4423
- @anwang132 made their first contribution in #4426
- @subotac made their first contribution in #4418