Skip to content

3.4.0

Choose a tag to compare

@gaborbernat gaborbernat released this 18 Oct 18:43
· 1636 commits to main since this release
Immutable release. Only release title and notes can be modified.

Features

  • add commands_pre and commands_post that run before and after running the commands (setup runs always, commands only if setup succeeds, teardown always - all run until the first failing command) by @gaborbernat (#167)
  • pyproject.toml config support initially by just inline the tox.ini under tool.tox.legacy_tox_ini key; config source priority order is pyproject.toml, tox.ini and then setup.cfg by @gaborbernat (#814)
  • use the os environment variable TOX_SKIP_ENV to filter out tox environment names from the run list (set by envlist) by @gaborbernat (#824)
  • always set PIP_USER=0 (do not install into the user site package, but inside the virtual environment created) and PIP_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_DIR env var is set to the tox work directory, TOX_ENV_NAME is set to the current running tox environment name, TOX_ENV_DIR is 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-interpreters cli 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)
  • -vv will print out why a virtual environment is re-created whenever this operation is triggered by @gaborbernat (#1004)

Bug fixes

  • add --exists-action w to 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_conflict flag 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 python and pip refer to the virtual environments executable by @gaborbernat (#305)
  • add Sphinx and mkdocs example of generating documentation via tox by @gaborbernat (#374)
  • specify that setup.cfg tox configuration needs to be inside the tox:tox namespace by @gaborbernat (#545)

New Contributors

🐍 PyPI release

📜 Full Changelog