Skip to content

Commit

Permalink
release 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Jan 25, 2023
1 parent ea12bf4 commit e29217a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
39 changes: 39 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,45 @@ Release History

.. towncrier release notes start
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.

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`)

Improved Documentation - 4.4.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Add infromation when command from ``list_dependencies_command`` configuration option is used. (:issue:`2883`)


v4.3.5 (2023-01-18)
-------------------

Expand Down
12 changes: 0 additions & 12 deletions docs/changelog/2386.feature.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/changelog/2635.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/changelog/2883.doc.rst

This file was deleted.

0 comments on commit e29217a

Please sign in to comment.