-
-
Notifications
You must be signed in to change notification settings - Fork 642
Description
The tox.ini files in pkgs/*/ are broken with tox 4.
Early versions of tox 4.x have additional defects.
-
Environment variables containing strings with spaces are not accepted any longer for passenv/pass_env. tox-dev/tox#2699 (comment) - factors no longer work in
passenv
- fixed in tox 4.0.13 -
negated factors in
deps
, like!pipenv-!norequirements: -rrequirements.txt
do not work - tox 4 does not support factor all conditionals as 3 tox-dev/tox#2747 - fixed in tox 4.0.15 -
And autoprovisioning for downgrade to tox 3 is not working - tox auto-provisioning not working tox-dev/tox#2634
-
In SAGE_ROOT/tox.ini, in tox 4 earlier than 4.2.7, numerical factors are broken because they are misinterpreted as Python versions (https://tox.wiki/en/latest/changelog.html#bugfixes-4-2-7); e.g., 4.0.14 is broken:
tox -e docker-linuxmint-21.1-standard git:t/34903/tox_ini___gh_actions__update_linux_platforms* docker-linuxmint-21.1-standard: skipped because could not find python interpreter with spec(s): 21.1 docker-linuxmint-21.1-standard: SKIP (1.98 seconds)
Here we update affected tox.ini
files so that:
- src/tox.ini and pkgs/*/tox.ini work both with suitable versions of tox 3 and tox 4. We change the tox
spkg-configure.m4
to check for such versions. - SAGE_ROOT/tox.ini work with tox >= 4.2.7 (autoprovisioning if necessary)
Follow up:
- Upgrade tox to 4.x #34840 Upgrade tox to 4.x
Depends on #34839
CC: @fchapoton @dimpase
Component: scripts
Author: Matthias Koeppe
Branch/Commit: a2eb816
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/34849