- Fix bad example in documentation for dependency groups - by :user:`gaborbernat`. (:issue:`3240`)
- Add
NETRC
to the list of environment variables always passed through. (:issue:`3410`)
- replace
[tool.pyproject]
and[tool.tox.pyproject]
with[tool.tox]
in config.rst (:issue:`3411`)
- Implement dependency group support as defined in PEP 735 - see :ref:`dependency_groups` - by :user:`gaborbernat`. (:issue:`3408`)
- Include
tox.toml
in sdist archives to fix test failures resulting from its lack. - by :user:`mgorny` (:issue:`3389`)
- Fix error when using
requires
within a TOML configuration file - by :user:`gaborbernat`. (:issue:`3386`) - Fix error when using
deps
within a TOML configuration file - by :user:`gaborbernat`. (:issue:`3387`) - Multiple fixes for the TOML configuration by :user:`gaborbernat`.:
- Do not fail when there is an empty command within
commands
. - Allow references for
set_env
by accepting list of dictionaries for it. - Do not try to be smart about reference unrolling, instead allow the user to control it via the
extend
flag, available both forposargs
andref
replacements. - The
ref
replacementsraw
key has been renamed toof
. (:issue:`3388`)
- Do not fail when there is an empty command within
- Native TOML configuration support - by :user:`gaborbernat`. (:issue:`999`)
- Update Loader docs - by :user:ziima (:issue:`3352`)
- Separate the list dependencies functionality to a separate abstract class allowing code reuse in plugins (such as
tox-uv
) - by :gaborbernat`. (:issue:`3347`)
- Support
pypy-<major>.<minor>
environment names for PyPy environments - by :user:`gaborbernat`. (:issue:`3346`)
- Fix and test the string spec for the
sys.executable
interpreter (introduced in :pull:`3325`) - by :user:`hroncok` (:issue:`3327`)
- Changes the
tox_env_teardown
docstring to explain the hook is called after a tox env was teared down. (:issue:`3305`)
- Suppress spinner in parallel runs in CI - by :user:`ziima`. (:issue:`3318`)
- Boost temporary directories cleanup in tests - by :user:`ziima`. (:issue:`3278`)
- Fix absolute base python paths conflicting - by :user:`gaborbernat`. (:issue:`3325`)
- Support for running
-e <major>.<minor>
has been lost, fixing it - by :user:`gaborbernat`. (:issue:`2849`) base_python
now accepts absolute paths to interpreter executable - by :user:`paveldikov`. (:issue:`3191`)
- Add
graalpy
prefix as a supported base python (:issue:`3312`) - Add :ref:`on_platform` core configuration holding the tox platform and do not install package when exec an environment - by :user:`gaborbernat`. (:issue:`3315`)
- Add table with default environment variables per OS (:issue:`2753`)
- Add
windir
to the default list of Windowspass_env
environment variables. - by :user:`kurtmckee` (:issue:`3302`)
- Add
- Fix typo in configuration example and fix broken link to code style guide. - by :user:`srenfo` (:issue:`3297`)
- Fix
skip_missing_interpreters
option forpackage = wheel
(:issue:`3269`)
- Fix section substitution with setenv. (:issue:`3262`)
- Allow
ConfigSet.add_config
to receive parameterized generics forof_type
. (:issue:`3288`)
- Add support for multiple appending override options (-x, --override) on command line - by :user:`amitschang`. (:issue:`3261`)
- Add support for inverting exit code success criteria using bang (!) (:issue:`3271`)
- Fix issue that the leading character
c
was dropped from packages in constraints files - by :user:`jugmac00`. (:issue:`3247`) - Allow appending to
deps
with--override testenv.deps+=foo
- by :user:`stefanor`. (:issue:`3256`) - Fix non-existing branch
rewrite
in the documentation tomain
. (:issue:`3257`) - Update test typing for build 1.2.0, which has an explicit
Distribution
type - by :user:`stefanor`. (:issue:`3260`) - Fix broken input parsing for
--discover
flag. - by :user:`mimre25` (:issue:`3272`)
- Rephrase
--discover
flag's description to avoid confusion between paths and executables. - by :user:`mimre25` (:issue:`3274`)
- Add provision arguments to ToxParser to fix crash when provisioning new tox environment without list-dependencies by :user:`seyidaniels` (:issue:`3190`)
- Removed unused line from the
fresh_subprocess
documentation. (:issue:`3241`)
- Fix crash with fresh subprocess, if the build backend is setuptools automatically enable fresh subprocesses for build backend calls - by :user:`gaborbernat`. (:issue:`3235`)
- Support enabling fresh subprocess for packaging build backends via :ref:`fresh_subprocess` - by :user:`gaborbernat`. (:issue:`3227`)
- Allow plugins attaching additional information to
--version
viatox_append_version_info
method in the plugin module - by :user:`gaborbernat`. (:issue:`3234`)
- Extract virtual environment packaging code to its own base class not tied to
virtualenv
- by :user:`gaborbernat`. (:issue:`3221`)
- Documented usage of
pytest
withtox run-parallel
- by :user:`faph`. (:issue:`3187`) - Configuration: state in config directive sections their ini file sections - by :user:`0cjs`. (:issue:`3194`)
- Development: summarize important points experienced developers need to know - by :user:`0cjs`. (:issue:`3197`)
- Fixed bug where running with --installpkg and multiple envs could not clean up between tests (:issue:`3165`)
- Always pass
FORCE_COLOR
andNO_COLOR
to the environment (:issue:`3172`)
--parallel-no-spinner
flag now implies--parallel
(:issue:`3158`)
- -Fix
open an issue
link in development.rst (:issue:`3179`)
- Fix terminal size of tox subcommands (fixes ipython, ipdb, prompt_toolkit, ...). (:issue:`2999`)
- Fix
quickstart
command from requiringroot
positional argument (:issue:`3084`) - Added 'AppData' to the default passed environment variables on Windows. (:issue:`3151`)
- Fix default value for
install_command
- by :user:`hashar`. (:issue:`3126`) - Fix default value for
base_python
- by :user:`rpatterson`. (:issue:`3156`)
- Handle
FileNotFoundError
when thebase_python
interpreter doesn't exist (:issue:`3105`)
- Explain how plugins are registered and discovered - by :user:`hashar`. (:issue:`3116`)
- Fix bug in
config.rst
by removing stray colons left over from (:issue:`3111`) - by :user:`posita`. (:issue:`3118`) - Provide example to make CLI help more helpful for
-x`/
--override`` - by :user:`posita`. (:issue:`3119`)
- Fix typos discovered by codespell - by :user:`cclauss`. (:issue:`3113`)
- Allow passing in multiple overrides using the
;
character and fix,
being used as splitting values - by :user:`gaborbernat`. (:issue:`3112`)
- Add support for setting build backend
config_settings
in the configuration file - by :user:`gaborbernat`. (:issue:`3090`)
- Change accepted environment name rule: must be made up of factors defined in configuration or match regex
(pypy|py|cython|)((\d(\.\d+(\.\d+)?)?)|\d+)?
. If an environment name does not match this fail, and if a close match found suggest that to the user. (:issue:`3099`)
--override foo+=bar
appending syntax will now work correctly whenfoo
wasn't defined intox.ini
. (:issue:`3100`)
- Disallow command line environments which are not explicitly specified in the config file - by :user:`tjsmart`. (:issue:`2858`)
--override
can now take options in the form offoo+=bar
which will appendbar
to the end of an existing list/dict, rather than replacing it. (:issue:`3087`)
- Make
--hashseed
default toPYTHONHASHSEED
, if defined - by :user:`paravoid`. The main motivation for this is to able to set the hash seed when building the documentation withtox -e docs
, and thus avoid embedding a random value in the tox documentation for --help. This caused documentation builds to fail to build reproducibly. (:issue:`2942`)
- Update a regular expression in tests to match the exception message in both Python 3.12 and older. (:issue:`3065`)
- Fix broken links - by :user:`gaborbernat`. (:issue:`3072`)
- Fix hang and zombie process on interrupt (CTRL-C). (:issue:`3056`)
- Ensure that
get_requires_for_build_wheel
is called beforeprepare_metadata_for_build_wheel
, andget_requires_for_build_editable
is called beforeprepare_metadata_for_build_editable
- by :user:`abravalheri`. (:issue:`3043`)
- Linked environment variable substitutions docs in
set_env
andpass_env
config docs. (:issue:`3039`)
- Avoid cache collision between editable wheel build and normal wheel build -- by :user:`f3flight`. (:issue:`3035`)
No significant changes.
- Added
--list-dependencies
and--no-list-dependencies
CLI parameters. If unspecified, defaults to listing when in CI, but not otherwise. (:issue:`3024`)
- Fix
tox --devenv venv
invocation without-e
- by :user:`asottile`. (:issue:`2925`)
- When run with verbosity=1, the per-step timing summaries are suppressed at the end of the run. Thanks to :user:`nedbat` at the PyCon 2023 sprints. (:issue:`2891`)
- Add FAQ entry on how to test EOL Python versions by :user:`jugmac00`. (:issue:`2989`)
- Avoid race conditions in tests using the
demo_pkg_inline
fixture. (:issue:`2985`)
- Fixed an issue where a tox plugin couldn't change the value of
tox_root
. (:issue:`2966`)
- Fix issue where
work_dir
was not correctly includingtox_root
for test runs. (:issue:`2933`)
- Instead of raising
UnicodeDecodeError
when command output includes non-utf-8 bytes,tox
will now usesurrogateescape
error handling to convert the unrecognized bytes to escape sequences according to PEP 383 - by :user:`masenf`. (:issue:`2969`)
- Document running tox within a Docker container. (:issue:`1035`)
- Added python version 3.11 to
installation.rst
. (:issue:`2964`)
tox.ini
is now included in source distributions in order to make all tests pass. (:issue:`2939`)- Fix
--index-url
and--find-links
being used together inrequirements.txt
files. (:issue:`2959`)
- Plugins are now able to access tox.ini config sections using a custom prefix with the same suffix / name as a tox
testenv
- by :user:`masenf` (:issue:`2926`)
- Ignore labels when tox will provision a runtime environment (
.tox
) so that environment configurations which depend on provisioned plugins or specific tox versions are not accessed in the outer tox process where the configuration would be invalid - by :user:`masenf`. (:issue:`2916`)
- Forward
HOME
by default - by :user:`gschaffner`. (:issue:`2702`)
- Tox will now expand self-referential extras discovered in package deps to respect local modifications to package metadata. This allows a package extra to explicitly depend on another package extra, which previously only worked with non-static metadata - by :user:`masenf`. (:issue:`2904`)
- Allow the user configuration file (default
<appdir>/tox/config.ini
) to be overridden via theTOX_USER_CONFIG_FILE
environment variable. Previously tox was looking at theTOX_CONFIG_FILE
to override the user configuration, however that environment variable is already used to override the main configuration - by :user:`masenf`. (:issue:`2890`)
- In tox 4.4.0
constrain_package_deps
was introduced with a default value ofTrue
. This has been changed back toFalse
, which restores the original behavior of tox 4.3.5 - by :user:`masenf`. (:issue:`2897`)
Test environments now recognize boolean config keys
constrain_package_deps
(default=true) anduse_frozen_constraints
(default=false), which control how tox generates and applies constraints files when performinginstall_package_deps
.If
constrain_package_deps
is true (default), then tox will write out{env_dir}{/}constraints.txt
and pass it topip
duringinstall_package_deps
. Ifuse_frozen_constraints
is false (default), the constraints will be taken from the specifications listed underdeps
(and inside any requirements or constraints file referenced indeps
). Otherwise,list_dependencies_command
(pip freeze
) is used to enumerate exact package specifications which will be written to the constraints file.In previous releases, conflicting package dependencies would silently override the
deps
named in the configuration, resulting in test runs against unexpected dependency versions, particularly when using tox factors to explicitly test with different versions of dependencies - by :user:`masenf`. (:issue:`2386`)
When parsing command lines, use
shlex(..., posix=True)
, even on windows platforms, since non-POSIX mode does not handle escape characters and quoting like a shell would. This improves cross-platform configurations without hacks or esoteric quoting.To make this transition easier, on Windows, the backslash path separator will not treated as an escape character unless it precedes a quote, whitespace, or another backslash character. This allows paths to mostly be written in single or double backslash style.
Note that double-backslash will no longer be escaped to a single backslash in substitutions, instead the double backslash will be consumed as part of command splitting, on either posix or windows platforms.
In some instances superfluous double or single quote characters may be stripped from arg arrays in ways that do not occur in the default windows
cmd.exe
shell - by :user:`masenf`. (:issue:`2635`)
- Add information when command from
list_dependencies_command
configuration option is used. (:issue:`2883`)
When building a
wheel
oreditable
package with a PEP 517 backend, no longer pass an emptymetadata_directory
to the backendbuild_wheel
orbuild_editable
endpoint.Some backends, such as PDM and poetry, will not generate package metadata in the presence of a
metadata_directory
, even if it is empty.Prior to this change, attempting to install a wheel created by tox using PDM or poetry would return an error like "There is no item named 'my-package.0.1.dist-info/WHEEL' in the archive" - by :user:`masenf`. (:issue:`2880`)
When executing via the provisioning environment (
.tox
by default), runtox
in working directory of the parent process.Prior to this change (from tox 4.0.0), the provisioned
tox
would execute with{tox_root}
as the working directory, which breaks when a relative path is passed to-c
or--conf
andtox
is executed in a working directory other than{tox_root}
- by :user:`masenf`. (:issue:`2876`)
- The provision environment (
.tox
) will never inherit fromtestenv
. During provisioning, other test environments are not processed, allowing the use of keys and values that may be registered by later tox version or provisioned plugins - by :user:`masenf`. (:issue:`2862`)
- Fix regression introduced in 4.3.0 which occurred when a substitution expression for an environment variable that had previously been substituted appears in the ini file after a substitution expression for a different environment variable. This situation erroneously resulted in an exception about "circular chain between set" of those variables - by :user:`masenf`. (:issue:`2869`)
- Fix regression introduced in 4.3.0 by expanding substitution expressions
(
{...}
) that result from a previous subsitution's replacement value (up to 100 times). Note that recursive expansion is strictly depth-first; no replacement value will ever affect adjacent characters nor will expansion ever occur over the result of more than one replacement - by :user:`masenf`. (:issue:`2863`)
- Rewrite substitution replacement parser - by :user:`masenf`
\
acts as a proper escape for\
in ini-style substitutions- The resulting value of a substitution is no longer reprocessed in the context of the broader string. (Prior to this change, ini-values were repeatedly re-substituted until the expression no longer had modifications)
- Migrate and update "Substitutions" section of Configuration page from v3 docs.
find_replace_part
is removed fromtox.config.loader.ini.replace
- New names exported from
tox.config.loader.ini.replace
: find_replace_expr
MatchArg
MatchError
MatchExpression
- Note: the API for
replace
itself is unchanged. (:issue:`2732`)
- New names exported from
- Improved documentation for factors and test env names - by :user:`stephenfin`. (:issue:`2852`)
- Allow using package names with env markers for pip's
--no-binary
and--only-binary
options - by :user:`q0w`. (:issue:`2814`)
- A testenv with multiple factors, one of which conflicts with a
base_python
setting intox.ini
, will now use the correct Python interpreter version - by :user:`stephenfin`. (:issue:`2838`) - Explicitly list
wheel
as requirement for the tests, as some of the tests error without it. (:issue:`2843`) - tox has reverted support for Python factors that include PATCH release info (e.g.
py3.10.1
), build architecture (e.g.pypy3-64
) or do not define apy
prefix or other supported prefix (e.g.3.10
). These complex factors were initially supported with the release of tox 4.0 but has proven complicated to support. Instead, the simple factors supported by tox 3 e.g. (py310
,pypy3
) or period-separated equivalent (py3.10
) introduced in tox 4 should be used. Users who wish to specify more specific Python version information should configure the :ref:`base_python` setting - by :user:`stephenfin`. (:issue:`2848`)
- Handle properly pip
--no-binary
/--only-binary
options in requirements.txt format files. (:issue:`2814`)
- The combination of
usedevelop = true
and--skip-missing-interpreters=false
will no longer fail for environments that were not invoked - by :user:`stephenfin`. (:issue:`2811`) - Fix an attribute error when
use_develop = true
is set and an unsupported interpreter version is requested - by :user:`stephenfin`. (:issue:`2826`) - tox returns a non-zero error code if all envs are skipped. It will now correctly do this if only a single env was requested and this was skipped - by :user:`stephenfin`. (:issue:`2827`)
- Setting
[testenv] basepython = python3
will no longer override the Python interpreter version requested by a factor, such aspy311
- by :user:`stephenfin`. (:issue:`2754`) - Also accept tab after colon before factor filter expansion - by :user:`pdecat`. (:issue:`2823`)
devenv
does not respect the specified path when the package is a wheel file - by :user:`gaborbernat`. (:issue:`2815`)- Require space after colon before factor filter expansion, unless it is the last character of the line - by :user:`pdecat`. (:issue:`2822`)
- Add
CC
,CFLAGS
,CCSHARED
,CXX
,CPPFLAGS
,LDFLAGS
,PKG_CONFIG
andPKG_CONFIG_SYSROOT_DIR
to the default passed through environment variables list as these are needed for building various C-extensions - by :user:`gaborbernat`. (:issue:`2818`)
- Fix extracting extras from markers with more than 2 extras in an or chain - by :user:`dconathan`. (:issue:`2791`)
- Packaging environments now inherit from the
pkgenv
section, allowing to set all your packaging options in one place, and support thedeps
key to set additional dependencies that will be installed afterpyproject.toml
staticrequires
but before backends dynamic requires - by :user:`gaborbernat`. (:issue:`2543`)
- Document breaking changes with tox 4 and packaging environments - by :user:`gaborbernat`. (:issue:`2543`)
- Document how to handle environments whose names match
tox
subcommands - by :user:`sirosen`. (:issue:`2728`)
- Reuse package_env with
--installpkg
- by :user:`q0w`. (:issue:`2442`) - Fail more gracefully when pip :ref:`install_command` is empty - by :user:`jayaddison`. (:issue:`2695`)
- Add breaking-change documentation for empty
install_command
values - by :user:`jayaddison`. (:issue:`2695`)
- Fix
--skip-missing-interpreters
behavior - by :user:`q0w`. (:issue:`2649`) - Restore tox 3 behavior of showing the output of pip freeze, however now only active when running inside a CI environment - by :user:`gaborbernat`. (:issue:`2685`)
- Fix extracting extras from markers with many extras - by :user:`q0w`. (:issue:`2791`)
- Fix logging error with emoji in git branch name. (:issue:`2768`)
- Add faq entry about reuse of environments - by :user:`jugmac00`. (:issue:`2788`)
-f
can be used multiple times and on hyphenated factors (e.g.-f py311-django -f py39
) - by :user:`sirosen`. (:issue:`2766`)
- Fix a grammatical typo in docs/user_guide.rst. (:issue:`2787`)
- Create temp_dir if not exists - by :user:`q0w`. (:issue:`2770`)
- Strip leading and trailing whitespace when parsing elements in requirement files - by :user:`gaborbernat`. (:issue:`2773`)
- Suppress a report output when verbosity = 0. (:issue:`2697`)
- Fix
--sdistonly
behavior. (:issue:`2653`) - Override toxworkdir with --workdir. (:issue:`2654`)
- Fix :ref:`change_dir` is relative to current working directory rather than to the :ref:`tox_root` when using the
-c
argument to locate thetox.ini
file - by :user:`gaborbernat`. (:issue:`2619`)
- Fix tox auto-provisioning not working and relax :ref:`min_version` default from
4.0
to no version constraint - by :user:`gaborbernat`. (:issue:`2634`) - Fix assertion in
test_result_json_sequential
when interpreter_base_executable
is a hardlink (macOS homebrew) - by :user:`masenf`. (:issue:`2720`) - Complex negative factor filters not working - by :user:`gaborbernat`. (:issue:`2747`)
- Do not include non test environment sections or factor filters in INI configuration to factor discovery - by :user:`gaborbernat`. (:issue:`2746`)
- A plain section in INI configuration matching a tox environment name shadowed the laters configuration - by :user:`gaborbernat`. (:issue:`2636`)
- Fix space not accepted in factor filter expression - by :user:`gaborbernat`. (:issue:`2718`)
- If tox is running in a tty, allocate a pty (pseudo terminal) for commands and copy termios attributes to show colors and improve interactive use - by :user:`masenf`. (:issue:`1773`)
- Fix python hash seed not being set - by :user:`gaborbernat`. (:issue:`2645`)
- Fix legacy CLI flags
--pre
,--force-deps
,--sitepackages
and--alwayscopy
not working, and mark them as deprecated - by :user:`gaborbernat`. (:issue:`2690`)
- Document user level config. (:issue:`2633`)
- Modified handling of
NO_COLOR
environment variable, consistent with de facto conventions: any non-empty string will enableNO_COLOR
(disable colorized output); noNO_COLOR
variable orNO_COLOR
with an empty string will disableNO_COLOR
(enable colorized output) - by :user:`ptmcg`. (:issue:`2719`)
TOX_SKIP_ENV
environment variable now works again, and can also be set via the CLI argument--skip-env
for any command where-e
can be set - by :user:`mgedmin`. (:issue:`2698`)tox config
should only show :ref:`env_list` arguments by default instead ofALL
- by :user:`gaborbernat`. (:issue:`2726`)
- Add
py_dot_ver
andpy_impl
constants to environments to show the current Python implementation and dot version (e.g.3.11
) for the current environment. These can be also used as substitutions intox.ini
- by :user:`gaborbernat`. (:issue:`2640`)
--help
now reports the default verbosity level (which is WARNING) correctly. (:issue:`2707`)
- Add :meth:`tox_on_install <tox.plugin.spec.tox_on_install>` and :meth:`tox_env_teardown <tox.plugin.spec.tox_env_teardown>` plugin hooks - by :user:`gaborbernat`. (:issue:`2687`)
- Add
PKG_CONFIG_PATH
to the default pass through environment list for python tox environments - by :user:`gaborbernat`. (:issue:`2700`)
- Fix multiple substitution on factor filtering in
tox.ini
when multiple factor filters match - by :user:`gaborbernat`. (:issue:`2650`) - Fix regression in
requirements.txt
parsing - by :user:`gaborbernat`. (:issue:`2682`)
- Support for
--no-deps
flag within the :ref:`deps` - by :user:`gaborbernat`. (:issue:`2674`)
- Fail on :ref:`pass_env`/:ref:`passenv` entries containing whitespace - by :user:`ericzolf`. (:issue:`2658`)
- Normalize extra names passed in (fixes extra groups not being picked up during installation) - by :user:`gaborbernat`. (:issue:`2655`)
- Disable logging from
distlib.util
andfilelock
as these log messages are too verbose - by :user:`gaborbernat`. (:issue:`2655`) - Use
!r
andrepr()
to better display erroneous values in exception fromStrConverter.to_bool()
- by :user:`ptmcg`. (:issue:`2665`)
- Document that running
--showconfig
or--help-ini
with the-v
flag will add interleaved debugging information, whereas tox v3 added extra lines at the start - by :user:`jugmac00`. (:issue:`2622`) - Document that tox v4 errors when using
-U
when defining dependencies viadeps
- by :user:`jugmac00`. (:issue:`2631`)
- Always set environment variable
PYTHONIOENCODING
toutf-8
to ensure tox works under Windows custom encodings - by :user:`gaborbernat`. (:issue:`2422`) - Ensure :ref:`change_dir` is created if does not exist before executing :ref:`commands` - by :user:`gaborbernat`. (:issue:`2620`)
- Pass through
NUMBER_OF_PROCESSORS
on Windows as is needed formultiprocessing.cpu_count
- by :user:`gaborbernat`. (:issue:`2629`) - The core tox configuration now contains
host_python
key showing the host python executable path - by :user:`gaborbernat`. (:issue:`2630`)
- Document that space separator is no longer valid for the :ref:`passenv` and instead one should use comma - by :user:`gaborbernat`. (:issue:`2615`)
- Document necessity to escape
#
within INI configuration - by :user:`jugmac00`. (:issue:`2617`)
- Unescaped comma in substitution should not be replaced during INI expansion - by :user:`gaborbernat`. (:issue:`2616`)
tox --showconfig -e py311
reports tox section, though it should not - by :user:`gaborbernat`. (:issue:`2624`)
- Create session views of the build wheel/sdist into the :ref:`temp_dir` folder - by :user:`gaborbernat`. (:issue:`2612`)
- Default tox min_version to 4.0 instead of current tox version - by :user:`gaborbernat`. (:issue:`2613`)
- The temporary folder within the tox environment was named
.temp
instead of.tmp
- by :user:`gaborbernat`. (:issue:`2608`)
- Enumerate breaking changes of tox 4 in the FAQ, and also list major new improvements - by :user:`gaborbernat`. (:issue:`2587`)
- Document in the FAQ that tox 4 will raise a warning when finding conflicting environment names - by :user:`gaborbernat`. (:issue:`2602`)
- Fix extras not being kept for install dependencies - by :user:`gaborbernat`. (:issue:`2603`)
- Remove deprecated configuration option
whitelist_externals
which was replaced byallowlist_externals
- by :user:`jugmac00`. (:issue:`2599`)
- Add
--exit-and-dump-after
flag that allows automatically killing tox if does not finish within the passed seconds, and dump the thread stacks (useful to debug tox when it seemingly hangs) - by :user:`gaborbernat`. (:issue:`2595`)
- Ensure that two parallel tox instance invocations on different tox environment targets will work by holding a file lock
onto the packaging operations (e.g., in bash
tox4 r -e py311 &; tox4 r -e py310
) - by :user:`gaborbernat`. (:issue:`2594`) - Fix leaking backend processes when the build backend does not support editable wheels and fix failure when multiple environments exist that have a build backend that does not support editable wheels - by :user:`gaborbernat`. (:issue:`2595`)
- Support for recursive extras in Python package dependencies - by :user:`gaborbernat`. (:issue:`2567`)
- Support in INI files for ignore exit code marker the
-
without a subsequent space too - by :user:`gaborbernat`. (:issue:`2561`) - Ensure paths constructed by tox are stable by resolving relative paths to fully qualified one, this insures that running tox from a different folder than project root still generates meaningful paths - by :user:`gaborbernat`. (:issue:`2562`)
- Ensure only on run environment operates at a time on a packaging environment (fixes unexpected failures when running in parallel mode) - by :user:`gaborbernat`. (:issue:`2564`)
- Fallback to
editable-legacy
if package target iseditable
but the build backend does not havebuild_editable
hook - by :user:`gaborbernat`. (:issue:`2567`) - Allow reference replacement in INI configuration via keys that contain the
-
character - by :user:`gaborbernat`. (:issue:`2569`) - Resolve symlinks when saving Python executable path - by :user:`ssbarnea`. (:issue:`2574`)
- Do not set
COLUMNS
orLINES
environment to the current TTY size if already set by the user - by :user:`gaborbernat`. (:issue:`2575`) - Add missing :pypi:`build[virtualenv]<build>` test dependency - by :user:`ssbarnea`. (:issue:`2576`)
- Add support for generative section headers - by :user:`gaborbernat`. (:issue:`2362`)
- Allow installing relative paths that go outside tox root folder. - by :user:`ssbarnea`. (:issue:`2366`)
- Improve coloring of logged commands - by :user:`ssbarnea`. (:issue:`2356`)
- Pass
PROGRAMDATA
,PROGRAMFILES(x86)
,PROGRAMFILES
environments on Windows by default as it is needed for discovering the VS C++ compiler and start testing against 3.11 - by :user:`gaborbernat`. (:issue:`2492`) - Support PEP-621 static metadata for getting package dependencies - by :user:`gaborbernat`. (:issue:`2499`)
- Add support for editable wheels, make it the default development mode and rename
dev-legacy
mode toeditable-legacy
- by :user:`gaborbernat`. (:issue:`2502`)
- Recognize
TERM=dumb
orNO_COLOR
environment variables. - by :user:`ssbarnea`. (:issue:`1290`) - Allow passing config directory without filename. - by :user:`ssbarnea`. (:issue:`2340`)
- Avoid ignored explicit argument 're' console message. - by :user:`ssbarnea`. (:issue:`2342`)
- Display registered plugins with
tox --version
- by :user:`mxd4`. (:issue:`2358`) - Allow
--hash
to be specified in requirements.txt files. - by :user:`masenf`. (:issue:`2373`) - Avoid impossible minversion version requirements. - by :user:`ssbarnea`. (:issue:`2414`)
- Add new documentation for tox 4 - by :user:`gaborbernat`. (:issue:`2408`)
- Use
tox
console entry point name instead oftox4
- by :user:`gaborbernat`. (:issue:`2344`) - Use
.tox
as working directory instead of.tox/4
- by :user:`gaborbernat`. (:issue:`2346`) - Switch to
hatchling
as build backend instead ofsetuptools
- by :user:`gaborbernat`. (:issue:`2368`)
- Fix CLI raises an error for
-va
withignored explicit argument 'a'
- by :user:`gaborbernat`. (:issue:`2343`) - Do not interpolate values when parsing
tox.ini
configuration files - by :user:`gaborbernat`. (:issue:`2350`)
- Deleted the tox mailing list -- by :user:`jugmac00` (:issue:`2364`)
- Display a hint for unrecognized argument CLI parse failures to use
--
separator to pass arguments to commands - by :user:`gaborbernat`. (:issue:`2183`) - Do not allow extending the config set beyond setup to ensures that all configuration values are visible via the config sub-command. - by :user:`gaborbernat`. (:issue:`2243`)
- Print a message when ignoring outcome of commands - by :user:`gaborbernat`. (:issue:`2315`)
- Fix type annotation is broken for :meth:`tox.config.sets.ConfigSet.add_config` when adding a container type - by :user:`gaborbernat`. (:issue:`2233`)
- Insert
TOX_WORK_DIR
,TOX_ENV_NAME
,TOX_ENV_DIR
andVIRTUAL_ENV
into the environment variables for all tox environments to keep contract with tox version 3 - by :user:`gaborbernat`. (:issue:`2259`) - Fix plugin initialization order - core plugins first, then 3rd party and finally inline - by :user:`gaborbernat`. (:issue:`2264`)
- Legacy parallel mode should accept
-p
flag without arguments - by :user:`gaborbernat`. (:issue:`2299`) - Sequential run fails because the packaging environment is deleted twice for sequential runs with recreate flag on - by :user:`gaborbernat`. (:issue:`2300`)
- Require Python 3.10 to generate docs - by :user:`jugmac00`. (:issue:`2321`)
- Environment assignment for output breaks when using
-rv
(when we cannot guess upfront the verbosity level from the CLI arguments) - by :user:`gaborbernat`. (:issue:`2324`) devenv
command does not respect specified path - by :user:`gaborbernat`. (:issue:`2325`)
- Enable link check during documentation build - by :user:`gaborbernat`. (:issue:`806`)
- Document ownership of the
tox.wiki
root domain - by :user:`gaborbernat`. (:issue:`2242`) - Document :meth:`tox.config.sets.ConfigSet.loaders` - by :user:`gaborbernat`. (:issue:`2287`)
- Fix CLI documentation is missing and broken documentation references - by :user:`gaborbernat`. (:issue:`2310`)
- Support for grouping environment values together by applying labels to them either at :ref:`core <labels>` and :ref:`environment <labels-env>` level, and allow selecting them via the :ref:`-m <tox-run--m>` flag from the CLI - by :user:`gaborbernat`. (:issue:`238`)
- Support for environment files within the :ref:`set_env` configuration via the
file|
prefix - by :user:`gaborbernat`. (:issue:`1938`) - Support for
--no-provision
flag - by :user:`gaborbernat`. (:issue:`1951`) - Missing
pyproject.toml
orsetup.py
file at the tox root folder without the--install-pkg
flag assumes no packaging - by :user:`gaborbernat`. (:issue:`1964`) - Add
external
package type for :ref:`package` (see :ref:`external-package-builder`), and extract package dependencies for packages passed in via :ref:`--installpkg <tox-run---installpkg>` - by :user:`gaborbernat`. (:issue:`2204`) - Add support for rewriting script invocations that have valid shebang lines when the
TOX_LIMITED_SHEBANG
environment variable is set and not empty - by :user:`gaborbernat`. (:issue:`2208`) - Support for the
--discover
CLI flag - by :user:`gaborbernat`. (:pull:`2245`) - Moved the python packaging logic into a dedicate package :pypi:`pyproject-api` and use it as a dependency - by :user:`gaborbernat`. (:pull:`2274`)
- Drop python 3.6 support - by :user:`gaborbernat`. (:pull:`2275`)
- Support for selecting target environments with a given factor via the :ref:`-f <tox-run--f>` CLI environment flag - by :user:`gaborbernat`. (:pull:`2290`)
- Fix
CTRL+C
is not stopping the process on Windows - by :user:`gaborbernat`. (:issue:`2159`) - Fix list/depends commands can create tox package environment as runtime environment and display an error message - by :user:`gaborbernat`. (:pull:`2234`)
tox_add_core_config
andtox_add_env_config
now take astate: State
argument instead of a configuration one, andConfig
not longer provides theenvs
property (instead users should migrate toState.envs
) - by :user:`gaborbernat`. (:pull:`2275`)
- Expose the parsed CLI arguments on the main configuration object for plugins and allow plugins to define their own configuration section -- by :user:`gaborbernat`. (:pull:`2191`)
- Let tox run fail when all envs are skipped -- by :user:`jugmac00`. (:issue:`2195`)
- Expose the configuration loading mechanism to plugins to define and load their own sections. Add
:meth:`tox_add_env_config <tox.plugin.spec.tox_add_env_config>` plugin hook called after the configuration environment
is created for a tox environment and removed
tox_configure
. Add the main configuration object as argument to :meth:`tox_add_core_config <tox.plugin.spec.tox_add_core_config>`. Move the environment list method from the state to the main configuration object to allow its use within plugins -- by :user:`gaborbernat`. (:issue:`2200`) - Allow running code in plugins before and after commands via :meth:`tox_before_run_commands <tox.plugin.spec.tox_before_run_commands>` and :meth:`tox_after_run_commands <tox.plugin.spec.tox_after_run_commands>` plugin points -- by :user:`gaborbernat`. (:issue:`2201`)
- Allow plugins to update the :ref:`set_env` and change the :ref:`pass_env` configurations -- by :user:`gaborbernat`. (:issue:`2215`)
- Fix env variable substitutions with defaults containing colon (e.g. URL) -- by :user:`comabrewer`. (:issue:`2182`)
- Do not allow constructing
ConfigSet
directly and implement__contains__
forLoader
-- by :user:`gaborbernat`. (:pull:`2209`) - Fix old-new value on recreate cache miss-match are swapped -- by :user:`gaborbernat`. (:issue:`2211`)
- Report fails when report does not support Unicode characters -- by :user:`gaborbernat`. (:issue:`2213`)
- Adopt furo theme, update our state diagram and description in user docs (SVG + light/dark variant), split
the Python API into its own page from under the plugin page, and document plugin adoption under the
tox-dev
organization - by :user:`gaborbernat`. (:issue:`1881`)
- Add support for :ref:`allowlist_externals`, commands not matching error - by :user:`gaborbernat`. (:issue:`1127`)
- Add outcome of environments into the result json (:ref:`--result-json <tox-run---result-json>`) under the
result
key containingsuccess
boolean,exit_code
integer andduration
float value - by :user:`gaborbernat`. (:issue:`1405`) - Add
exec
subcommand that allows users to run an arbitrary command within the tox environment (without needing to modify their configuration) - by :user:`gaborbernat`. (:issue:`1790`) - Add check to validate the base Python names and the environments name do not conflict Python spec wise, when they do
raise error if :ref:`ignore_base_python_conflict` is not set or
False
- by :user:`gaborbernat`. (:issue:`1840`) - Allow any Unix shell-style wildcards expression for :ref:`pass_env` - by :user:`gaborbernat`. (:issue:`2121`)
- Add support for :ref:`args_are_paths` flag - by :user:`gaborbernat`. (:issue:`2122`)
- Add support for :ref:`env_log_dir` (compared to tox 3 extend content and keep only last run entries) - by :user:`gaborbernat`. (:issue:`2123`)
- Add support for
{:}
substitution in ini files as placeholder for the OS path separator - by :user:`gaborbernat`. (:issue:`2125`) - When cleaning directories (for tox environment,
env_log_dir
,env_tmp_dir
and packaging metadata folders) do not delete the directory itself and recreate, but instead just delete its content (this allows the user to cd into it and still be in a valid folder after a new run) - by :user:`gaborbernat`. (:pull:`2139`) - Changes to help plugin development: simpler tox env creation argument list, expose python creation directly, allow skipping list dependencies install command for pip and executable is only part of the python cache for virtualenv - by :user:`gaborbernat`. (:pull:`2172`)
- Support
#
character in path for the tox project - by :user:`gaborbernat`. (:issue:`763`) - If the command expression fails to parse with shlex fallback to literal pass through of the remaining elements - by :user:`gaborbernat`. (:issue:`1944`)
- tox config fails on :ref:`--recreate <tox-config---recreate>` flag, and once specified the output does not reflect the impact of the CLI flags - by :user:`gaborbernat`. (:issue:`2037`)
- Virtual environment creation for Python is always triggered at every run - by :user:`gaborbernat`. (:issue:`2041`)
- Add support for setting :ref:`suicide_timeout`, :ref:`interrupt_timeout` and :ref:`terminate_timeout` - by :user:`gaborbernat`. (:issue:`2124`)
- Parallel show output not working when there's a packaging phase in the run - by :user:`gaborbernat`. (:pull:`2161`)
- Note constraint files are a subset of requirement files - by :user:`gaborbernat`. (:issue:`1939`)
- Add a note about having a package with different Python requirements than tox and not specifying :ref:`base_python` - by :user:`gaborbernat`. (:issue:`1975`)
- Fix :ref:`--runner <tox---runner>` is missing default value and documentation unclear - by :user:`gaborbernat`. (:issue:`2004`)
- Add support for configuration taken from the
setup.cfg
file -by :user:`gaborbernat`. (:issue:`1836`) - Add support for configuration taken from the
pyproject.toml
file,tox
sectionlegacy_tox_ini
key - by :user:`gaborbernat`. (:issue:`1837`) - Add configuration documentation - by :user:`gaborbernat`. (:issue:`1914`)
- Implemented
[]
substitution (alias for{posargs}
) - by :user:`hexagonrecursion`. (:issue:`1928`) - Implement
[testenv] ignore_outcome
- "a failing result of this testenv will not make tox fail" - by :user:`hexagonrecursion`. (:issue:`1947`) - Inline plugin support via
tox_.py
. This is loaded where the tox config source is discovered. It's a Python file that can contain arbitrary Python code, such as definition of a plugin. Eventually we'll add a plugin that allows succinct declaration/generation of new tox environments - by :user:`gaborbernat`. (:pull:`1963`) - Introduce the installer concept, and collect pip installation into a
pip
package, also attach to this the requirements file parsing which got a major rework - by :user:`gaborbernat`. (:pull:`1991`) - Support CPython
3.10
-by :user:`gaborbernat`. (:pull:`2014`)
- Environments with a platform mismatch are no longer silently skipped, but properly reported - by :user:`jugmac00`. (:issue:`1926`)
- Port pip requirements file parser to
tox
to achieve full equivalency (such as support for the per requirement--install-option
and--global-option
flags) - by :user:`gaborbernat`. (:issue:`1929`) - Support for extras with paths for Python deps and requirement files - by :user:`gaborbernat`. (:issue:`1933`)
- Due to a bug
\{posargs} {posargs}
used to expand to literal{posargs} {posargs}
. Now the second{posargs}
is expanded.\{posargs} {posargs}
expands to{posargs} positional arguments here
- by :user:`hexagonrecursion`. (:issue:`1956`) - Enable setting a different
upstream
repository for the coverage diff report. This has been hardcoded toupstream/rewrite
until now. by :user:`jugmac00`. (:issue:`1972`) - Enable replacements (a.k.a section substitutions) for section names containing a dash in sections
without the
testenv:
prefix - by :user:`jugmac00`, :user:`obestwalter`, :user:`eumiro`. (:issue:`1985`) - Fix legacy list env command for empty/missing envlist - by :user:`jugmac00`. (:issue:`1987`)
- Requirements and constraints files handling got reimplemented, which should fix all open issues related to this area - by :user:`gaborbernat`. (:pull:`1991`)
- Use importlib instead of
__import__
- by :user:`dmendek`. (:issue:`1995`) - Evaluate factor conditions for
command
keys - by :user:`jugmac00`. (:issue:`2002`) - Prefer f-strings instead of the str.format method - by :user:`eumiro`. (:issue:`2012`)
- Fix regex validation for SHA 512 hashes - by :user:`jugmac00`. (:issue:`2018`)
- Actually run all environments when
ALL
is provided to the legacy env command - by :user:`jugmac00`. (:issue:`2112`) - Move from
appdirs
toplatformdirs
- by :user:`gaborbernat`. (:pull:`2117`) - Move from
toml
totomli
- by :user:`gaborbernat`. (:pull:`2118`)
- Start documenting the plugin interface. Added :meth:`tox_register_tox_env <tox.plugin.spec.tox_register_tox_env>`,
:meth:`tox_add_option <tox.plugin.spec.tox_add_option>`,
:meth:`tox_add_core_config <tox.plugin.spec.tox_add_core_config>`,
tox_configure
- by :user:`gaborbernat`. (:pull:`1991`) - Explain how
-v
and-q
flags play together to determine CLI verbosity level - by :user:`jugmac00`. (:issue:`2005`) - Start polishing the documentation for the upcoming final release - by :user:`jugmac00`. (:pull:`2006`)
- Update documentation about changelog entries for trivial changes - by :user:`jugmac00`. (:issue:`2007`)
- Add basic quickstart implementation (just use pytest with the current Python version) - by :user:`gaborbernat`. (:issue:`1829`)
- Support comments via the
#
character within the ini configuration (to force a literal#
use\#
) - by :user:`gaborbernat`. (:issue:`1831`) - Add support for the
install_command
settings in the virtual env test environments - by :user:`gaborbernat`. (:issue:`1832`) - Add support for the
package_root
setupdir
( Python scoped) configuration that sets the root directory used for packaging (the location of the historicalsetup.py
and modernpyproject.toml
). This can be set at root level, or at tox environment level (the later takes precedence over the former) - by :user:`gaborbernat`. (:issue:`1838`) - Implement support for the
--installpkg
CLI flag - by :user:`gaborbernat`. (:issue:`1839`) - Add support for the
list_dependencies_command
settings in the virtual env test environments - by :user:`gaborbernat`. (:issue:`1842`) - Add support for the
ignore_errors
settings in tox test environments - by :user:`gaborbernat`. (:issue:`1843`) - Add support for the
pip_pre
settings for virtual environment based tox environments - by :user:`gaborbernat`. (:issue:`1844`) - Add support for the
platform
settings in tox test environments - by :user:`gaborbernat`. (:issue:`1845`) - Add support for the
recreate
settings in tox test environments - by :user:`gaborbernat`. (:issue:`1846`) - Allow Python test and packaging environments with version 2.7 - by :user:`gaborbernat`. (:pull:`1900`)
- Do not construct a requirements file for deps in virtualenv, instead pass content as CLI argument to pip - by :user:`gaborbernat`. (:pull:`1906`)
- Do not display status update environment reports when interrupted or for the final environment ran (because at the final report will be soon printed and makes the status update redundant) - by :user:`gaborbernat`. (:issue:`1909`)
- The
_TOX_SHOW_THREAD
environment variable can be used to print alive threads when tox exists (useful to debug when tox hangs because of some non-finished thread) and also now prints the pid of the local subprocess when reporting the outcome of an execution - by :user:`gaborbernat`. (:pull:`1915`)
- Normalize description text to collapse newlines and one or more than whitespace to a single space - by :user:`gaborbernat`. (:issue:`1829`)
- Support aliases in show config key specification (will print with the primary key) - by :user:`gaborbernat`. (:issue:`1831`)
- Show config no longer marks as unused keys that are inherited (e.g. if the key is coming from
testenv
section and our target istestenv:fix
) - by :user:`gaborbernat`. (:issue:`1833`) --alwayscopy
and--sitepackages
legacy only flags do not work - by :user:`gaborbernat`. (:issue:`1839`)- Fix handling of
commands_pre
/commands
/commands_post
to be in line with tox 3 (returned incorrect exit codes and post was not always executed) - by :user:`gaborbernat`. (:issue:`1843`) - Support requirement files containing
--hash
constraints - by :user:`gaborbernat`. (:issue:`1903`) - Fix a bug that caused tox to never finish when pulling configuration from a tox run environment that was never executed - by :user:`gaborbernat`. (:pull:`1915`)
- Drop support for
sdistsrc
flag because introduces a significant complexity and is barely used (5 hits on a github search). --skip-missing-interpreters
,--notest
,--sdistonly
,--installpkg
,--develop
and--skip-pkg-install
CLI flags are no longer available fordevenv
(enforce the only sane value for these).
- Drop support for
Remove Jenkins override support: this feature goes against the spirit of tox - blurring the line between the CI and local runs. It also singles out a single CI provider, which opens the door for other CIs wanting similar functionality. Finally, only 54 code file examples came back on a Github search, showing this is a not widely used feature. People who still want Jenkins override support may create a tox plugin to achieve this functionality - by :user:`gaborbernat`. (:issue:`1841`)
- Support the
system_site_packages
/sitepackages
flag for virtual environment based tox environments - by :user:`gaborbernat`. (:issue:`1847`) - Support the
always_copy
/alwayscopy
flag for virtual environment based tox environments - by :user:`gaborbernat`. (:issue:`1848`) - Support the
download
flag for virtual environment based tox environments - by :user:`gaborbernat`. (:issue:`1849`) - Recreate virtual environment based tox environments when the
virtualenv
version changes - by :user:`gaborbernat`. (:issue:`1865`)
Not all package dependencies are installed when different tox environments in the same run use different set of extras - by :user:`gaborbernat`. (:issue:`1868`)
Support
=
separator in requirement file flags, directories as requirements and correctly set the root of the requirements file when using the--root
CLI flag to change the root - by :user:`gaborbernat`. (:issue:`1853`)Cleanup local subprocess file handlers when exiting runs (fixes
ResourceWarning: unclosed file
errors when running withenv PYTHONTRACEMALLOC=5 PYTHONDEVMODE=y
under a Python built with--with-pydebug
) - by :user:`gaborbernat`. (:issue:`1857`)Various small bugfixes:
- honor updating default environment variables set by internal tox via set env (
PIP_DISABLE_PIP_VERSION_CHECK
) - do not multi-wrap
HandledError
in the ini file loader, - skipped environments are logged now with their fail message at default verbosity level,
- fix an error that made the show configuration command crash when making the string of a config value failed,
- support empty-new lines within the set env configurations replacements,
- honor updating default environment variables set by internal tox via set env (
- Add CLI documentation - by :user:`gaborbernat`. (:pull:`1852`)
- Use
.tox/4
instead of.tox4
folder (so ignores for tox 3 works for tox 4 too), reminder we'll rename this to just.tox
before public release, however to encourage testing tox 4 in parallel with tox 3 this is helpful - by :user:`gaborbernat`. (:discussion:`1812`) - Colorize the
config
command: section headers are yellow, keys are green, values remained white, exceptions are light red and comments are cyan - by :user:`gaborbernat`. (:pull:`1821`)
- Support legacy format (
-cconstraint.txt
) of constraint files indeps
, and expand constraint files too when viewing inside thedeps
or calculating weather our environment is up to date or not - by :user:`gaborbernat`. (:issue:`1788`) - When specifying requirements/editable/constraint paths within
deps
escape space, unless already escaped to support running specifying transitive requirements files within deps - by :user:`gaborbernat`. (:issue:`1792`) - When using a provisioned tox environment requesting
--recreate
failed withAttributeError
- by :user:`gaborbernat`. (:issue:`1793`) - Fix
RequirementsFile
from tox is rendered incorrectly inconfig
command - by :user:`gaborbernat`. (:issue:`1820`) - Fix a bug in the configuration system where referring to the same named key in another env/section causes circular dependency error - by :user:`gaborbernat`. (:pull:`1821`)
- Raise
ValueError
with descriptive message when a requirements file specified does not exist - by :user:`gaborbernat`. (:pull:`1828`) - Support all valid requirement file specification without delimiting space in the
deps
of thetox.ini
- by :user:`gaborbernat`. (:issue:`1834`)
- Add code style guide for contributors - by :user:`gaborbernat`. (:issue:`1734`)
- Raise exception when set env enters into a circular reference - by :user:`gaborbernat`. (:issue:`1779`)
- Raise exception when variable substitution enters into a circle.
- Add
{/}
as substitution for os specific path separator. - Add
{env_bin_dir}
constant substitution. - Implement support for
--discover
flag - by :user:`gaborbernat`. (:pull:`1784`)
Entries in the
set_env
does not reference environments fromset_env
- by :user:`gaborbernat`. (:issue:`1776`)env
substitution does not uses values fromset_env
- by :user:`gaborbernat`. (:issue:`1779`)Adopt tox 3 base pass env list, by adding:
- on all platforms:
LANG
,LANGUAGE
,CURL_CA_BUNDLE
,SSL_CERT_FILE
,LD_LIBRARY_PATH
andREQUESTS_CA_BUNLDE
, - on Windows:
SYSTEMDRIVE
- by :user:`gaborbernat`. (:issue:`1780`)
- on all platforms:
Fixed a bug that crashed tox where calling tox with the recreate flag and when multiple environments were reusing the same package - by :user:`gaborbernat`. (:issue:`1782`)
- Python version markers are stripped in package dependencies (after wrongfully being detected as an extra marker).
- In packaging APIs do not set
PYTHONPATH
(to empty string) ifbackend-path
is empty. - Fix commands parsing on Windows (do not auto-escape
\
- instead users should use the new{\}
, and on parsed arguments strip both'
and"
quoted outcomes). - Allow windows paths in substitution set/default (the
:
character used to separate substitution arguments may also be present in paths on Windows - do not support single capital letter values as substitution arguments) - by :user:`gaborbernat`. (:pull:`1784`)
Rework how we handle Python packaging environments:
- the base packaging environment changed from
.package
to.pkg
, - merged the
sdist
,wheel
anddev
separate packaging implementations into one, and internally dynamically pick the one that's needed, - the base packaging environment always uses the same Python environment as tox is installed into,
- the base packaging environment is used to get the metadata of the project (via PEP-517) and to build
sdist
anddev
packages, - for building wheels introduced a new per env configurable option
wheel_build_env
, if the target Python major/minor and implementation for the run tox environment and the base package tox environment matches set this to.pkg
, otherwise this is.pkg-{implementation}{major}{minor}
, - internally now packaging environments can create further packaging environments they are responsible of managing,
- updated
depends
to use the packaging logic, - add support skip missing interpreters for depends and show config,
- the base packaging environment changed from
- Add option to disable colored output, and support
NO_COLOR
andFORCE_COLOR
environment variables - by :user:`gaborbernat`. (:pull:`1630`)
- Fix coverage generation in CI - by :user:`gaborbernat`. (:pull:`1551`)
- Fix the CI failures:
- drop Python 3.5 support as it's not expected to get to a release before EOL,
- fix test using
\n
instead ofos.linesep
, - Windows Python 3.6 does not contain
_overlapped.ReadFileInto
- by :user:`gaborbernat`. (:pull:`1556`)
- Add base documentation by merging virtualenv structure with tox 3 - by :user:`gaborbernat`. (:pull:`1551`)
- First version all is brand new.
Warning
The current tox is the second iteration of implementation. From version 0.5
all the way to 3.X
we numbered the first iteration. Version 4.0.0a1
is a complete rewrite of the package, and as such this release
history starts from there. The old changelog is still available in the
legacy branch documentation.