- Allow the user configuration file (default ``<appdir>/tox/config.ini``) to be overridden via the
``TOX_USER_CONFIG_FILE`` environment variable. Previously tox was looking at the ``TOX_CONFIG_FILE`` to override the
user configuration, however that environment variable is already used to override the main configuration - by
:user:`masenf`. (:issue:`2890`)
v4.4.1 (2023-01-25)
Bugfixes - 4.4.1
In tox 4.4.0 constrain_package_deps was introduced with a default value of True. This has been changed back to
False, which restores the original behavior of tox 4.3.5 - by :user:masenf. (:issue:2897)
v4.4.0 (2023-01-25)
Features - 4.4.0
- Test environments now recognize boolean config keys ``constrain_package_deps`` (default=true) and ``use_frozen_constraints`` (default=false),
which control how tox generates and applies constraints files when performing ``install_package_deps``.
If constrain_package_deps is true (default), then tox will write out {env_dir}{/}constraints.txt and pass it to
pip during install_package_deps. If use_frozen_constraints is false (default), the constraints will be taken
from the specifications listed under deps (and inside any requirements or constraints file referenced in deps).
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)
Bugfixes - 4.4.0
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 preceeds a quote, whitespace, or another backslash chracter. 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.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps tox from 3.26.0 to 4.4.2.
Release notes
Sourced from tox's releases.
... (truncated)
Changelog
Sourced from tox's changelog.
... (truncated)
Commits
402cf84
release 4.4.2ed39bd7
rename TOX_CONFIG_FILE to TOX_USER_CONFIG_FILE (#2896)b654be7
release 4.4.18155760
pip_install: constrain_package_deps is now False by default (#2899)e29217a
release 4.4.0ea12bf4
Windows shlex fix (#2895)8736549
Enforce constraints during install_package_deps (#2888)d291752
[pre-commit.ci] pre-commit autoupdate (#2889)7753e72
Add more explanation tolist_dependencies_command
configuration option (#2883)7eec025
release 4.3.5Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)