Repository navigation
3.4.0
·
1636 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Features
- add
commands_preandcommands_postthat run before and after running thecommands(setup runs always, commands only if setup succeeds, teardown always - all run until the first failing command) by @gaborbernat (#167) pyproject.tomlconfig support initially by just inline the tox.ini undertool.tox.legacy_tox_inikey; config source priority order ispyproject.toml,tox.iniand thensetup.cfgby @gaborbernat (#814)- use the os environment variable
TOX_SKIP_ENVto filter out tox environment names from the run list (set byenvlist) by @gaborbernat (#824) - always set
PIP_USER=0(do not install into the user site package, but inside the virtual environment created) andPIP_NO_DEPS=0(installing without dependencies can cause broken package installations) inside tox by @gaborbernat (#838) - tox will inject some environment variables that to indicate a command is running within tox:
TOX_WORK_DIRenv var is set to the tox work directory,TOX_ENV_NAMEis set to the current running tox environment name,TOX_ENV_DIRis set to the current tox environments working dir by @gaborbernat (#847) - While running tox invokes various commands (such as building the package, pip installing dependencies and so on), these were printed in case they failed as Python arrays. Changed the representation to a shell command, allowing the users to quickly replicate/debug the failure on their own by @gaborbernat (#851)
- skip missing interpreters value from the config file can now be overridden via the
--skip-missing-interpreterscli flag by @gaborbernat (#903) - keep additional environments config order when listing them by @gaborbernat (#921)
- allow injecting config value inside the ini file dependent of the fact that we're connected to an interactive shell or not via exposing a
{tty}substitution by @gaborbernat (#947) - do not build sdist if skip install is specified for the envs to be run by @gaborbernat (#974)
- when verbosity level increases above two start passing through verbosity flags to pip by @gaborbernat (#982)
- when discovering the interpreter to use check if the tox host Python matches and use that if so by @gaborbernat (#994)
-vvwill print out why a virtual environment is re-created whenever this operation is triggered by @gaborbernat (#1004)
Bug fixes
- add
--exists-action wto default pip flags to handle better VCS dependencies (pip documentation on this) by @gaborbernat (#503) - instead of assuming the Python version from the base python name ask the interpreter to reveal the version for the
ignore_basepython_conflictflag by @gaborbernat (#908) - PEP-517 packaging fails with sdist already exists, fixed via ensuring the dist folder is empty before invoking the backend and pypa/setuptools 1481 by @gaborbernat (#1003)
Documentation
- clarify that
pythonandpiprefer to the virtual environments executable by @gaborbernat (#305) - add Sphinx and mkdocs example of generating documentation via tox by @gaborbernat (#374)
- specify that
setup.cfgtox configuration needs to be inside thetox:toxnamespace by @gaborbernat (#545)