Skip to content

Releases

v4.67.19

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:22
Immutable release. Only release title and notes can be modified.

Changes

  • Plain tox now reads TOX_PARALLEL and the user config parallel key the way tox p does: auto, all or a number runs the environments in parallel, and any other value, including an empty one, is a usage error. Before, auto and all were ignored with a warning and a negative value crashed with a traceback. If you export TOX_PARALLEL only for tox p, unset it for plain tox to keep it sequential; tox -i refuses to run in parallel (#4543) by @ericdelorefice and @gaborbernat.

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.18

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:48
Immutable release. Only release title and notes can be modified.

Features

  • Read a dotted patch version after an interpreter name, such as py3.12.1 or cpython-3.12.1, from an environment name, and refuse an undeclared -e environment whose Python version tox cannot read, such as py3121, 3.12.1 or 3, instead of running it on the fallback interpreter (#4532) by @ericdelorefice and @gaborbernat.

Changes

  • Make the legacy tox --showconfig -a and tox --help-ini -a show every defined environment, and fix the --showconfig help, which claimed that was the default; without -a they show env_list (#4540) by @gaborbernat and @xixi-box. (#4538)
  • Limit tox -p and tox --parallel without a value to the CPU count, as -p auto does, instead of running every selected environment at once (#4480) by @cansentay.
  • Report factors passed to -f that appear in no environment name, with a close match, instead of selecting nothing without saying why. As with -m, one unknown factor fails the command even when another -f group selects environments (#4537) by @Harp404 and @gaborbernat.

Bug fixes

  • On Python 3.11.0–3.11.3, extract a source distribution the way the data tar filter does: ignore archived owners, strip unsafe permissions, normalize paths and refuse special files and hard links to non-regular files (#4487) by @xixi-box and @gaborbernat. (#4484)
  • Keep a joined --conf=<path>, -c<path> or --root=<path> during shell completion instead of loading the current directory's project (#4486) by @xixi-box and @gaborbernat. (#4485)
  • Load a TOML file passed with -c under another name, such as a copy of tox.toml, instead of reading it as INI (#4530) by @Harp404 and @gaborbernat. (#4529)
  • Name only the environments that form the cycle in the circular depends error, not the ones that lead into it (#4479) by @JROtto5 and @gaborbernat.
  • Reject a --hashseed above 4294967295, and ignore one from TOX_HASH_SEED or the user config, instead of letting the interpreter abort (#4517) by @qianeric-backup and @gaborbernat.
  • Reject a negative commands_retry with an error, instead of skipping every command and reporting the environment as passed (#4536) by @Harp404 and @gaborbernat.
  • Reject an out-of-range --exit-and-dump-after (negative, or past the thread timeout limit) with a usage error, and ignore one from TOX_EXIT_AND_DUMP_AFTER or the user config, instead of crashing in faulthandler (#4533) by @qianeric-backup and @gaborbernat.
  • Report the output path and filesystem error when tox config -o cannot write the requested file (#4483) by @qianeric-backup.

Security

Read more

v4.67.17

Choose a tag to compare

@github-actions github-actions released this 28 Nov 02:01
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Reject requested environment names with a stray dash, such as py310- or py310--lint, and suggest the name without it, instead of creating an environment with that name (#4476) by @lau0708 and @gaborbernat. (#4475)
  • A requirements file whose declared encoding (PEP 263 coding cookie) cannot decode its content now raises a descriptive error naming the file and the declared encoding, instead of surfacing a raw UnicodeDecodeError (#4468) by @waw666waw666 and @gaborbernat.
  • Accept a --root directory that does not exist again, instead of failing with FileNotFoundError (#4472) by @qianeric-backup and @gaborbernat.
  • Reject an override that has no key, such as -x =1, instead of silently ignoring it. In TOX_OVERRIDE or the user configuration file, such an entry now makes tox warn and ignore that list, as an entry without = already does (#4473) by @qianeric-backup and @gaborbernat.
  • Report a file in place of the work directory (from --workdir, work_dir or a stray .tox file), or a file passed as --root with the work directory under it, as a tox error instead of a traceback (#4474) by @ChaseZhang-ai and @gaborbernat.
  • Report labels given to -m or TOX_LABELS that no environment defines, with a suggestion for a close match, instead of selecting nothing (#4478) by @chiruu12 and @gaborbernat.

Documentation

  • Fix the tox_after_run_commands example in the plugin how-to, which failed the environment with an AttributeError, and correct the verbosity flags listed for each logging level (#4466) by @mmporong and @gaborbernat.
  • Give the -x example in the override how-to the section names for tox.toml, pyproject.toml and tox.ini, since an override that spells the section for another file format changes nothing (#4464) by @JROtto5 and @gaborbernat.

New Contributors

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.16

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:05
Immutable release. Only release title and notes can be modified.

Bug fixes

Performance

  • Defer imports until the modules are needed on Python 3.15, reducing startup time for common CLI operations (#4450) by @gaborbernat.

New Contributors

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.15

Choose a tag to compare

@github-actions github-actions released this 17 Nov 22:39
Immutable release. Only release title and notes can be modified.

Security

  • Create the work directory with owner-only access on POSIX also when no package is built; under a permissive umask it was created group-writable, leaving the environments inside it reachable by other accounts (#4449) by @gaborbernat. (#4444)

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.14

Choose a tag to compare

@github-actions github-actions released this 17 Nov 22:23
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.

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)

Security

  • 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.

Packaging

New Contributors

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.13

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:33
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Relative {glob:...} and TOML replace = "glob" patterns now match files when tox_root contains [, * or ?. tox treats those characters in the project path literally while keeping wildcards in the configured pattern (#4389) by @qodelicious and @gaborbernat.
  • When work_dir or tox_root contains [, * or ?, tox now treats those characters literally in its own executable paths and in default or relative package_glob patterns. This lets it run environment commands and find packages built by package = external (#4390) by @qodelicious and @gaborbernat.

New Contributors

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.12

Choose a tag to compare

@github-actions github-actions released this 05 Nov 23:31
Immutable release. Only release title and notes can be modified.

Bug fixes

  • A quoted set_env value that ends with a literal backslash and contains a semicolon no longer loses its quote protection, so WINPATH="C:\tools;C:\bin\\" keeps the whole value instead of failing with invalid marker. tox now counts the backslashes in front of a quote: an even number leaves the quote unescaped (#4388) by @haigou-web and @gaborbernat. (#4387)

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.11

Choose a tag to compare

@github-actions github-actions released this 04 Nov 23:42
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Package staging no longer fails on a .tox that only the project's own writers can change, such as one owned by the workspace owner while root runs tox, or a 777 build directory on Bitbucket. A work directory that other accounts could change, such as a 777 .tox left by an older tox under umask 000 or restored from a CI cache, is made private and emptied once at the start of a run, so tox recreates its environments instead of failing. When staging still refuses a path, the error names its owner and mode (#4386) by @gaborbernat. (#4376)

🐍 PyPI release

πŸ“œ Full Changelog

v4.67.10

Choose a tag to compare

@github-actions github-actions released this 04 Nov 19:34
Immutable release. Only release title and notes can be modified.

Bug fixes

  • A pair of numbers after a - is no longer read as a range, so py-django-4-2 keeps its name instead of splitting into py-django-4, 3 and 2. Braced ranges such as py-django-{4-5} still expand (#4380) by @ericdelorefice and @gaborbernat.
  • On Windows, quoted option values in requirements files and deps, such as -r "sub dir/base.txt", now have their quotes removed as they do on other platforms and in pip; before, the quotes stayed in the path and the file could not be opened. On every platform, a quoted -r, -c or -f value in deps keeps its spaces as written instead of gaining literal backslashes (#4381) by @abo3losh1 and @gaborbernat.

New Contributors

🐍 PyPI release

πŸ“œ Full Changelog