File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ isolated_build = true
3
3
envlist =
4
4
clear-coverage
5
5
quality
6
- py37-tox{3,4}
7
- py38-tox{3,4}
8
- py39-tox{3,4}
9
- py310-tox{3,4}
6
+ py37-tox{3,414, 4}
7
+ py38-tox{3,414, 4}
8
+ py39-tox{3,414, 4}
9
+ py310-tox{3,414, 4}
10
10
compute-coverage
11
11
skip_missing_interpreters = true
12
12
@@ -17,6 +17,7 @@ setenv =
17
17
deps =
18
18
coverage
19
19
tox3: tox == 3.*
20
+ tox414: tox == 4.*,<4.15
20
21
tox4: tox == 4.*
21
22
commands =
22
23
coverage run --parallel-mode --include =tox_ipdb.py,tests.py --branch -m unittest {posargs:discover}
@@ -30,10 +31,10 @@ commands =
30
31
31
32
[testenv:compute-coverage]
32
33
depends =
33
- py37-tox{3,4}
34
- py38-tox{3,4}
35
- py39-tox{3,4}
36
- py310-tox{3,4}
34
+ py37-tox{3,414, 4}
35
+ py38-tox{3,414, 4}
36
+ py39-tox{3,414, 4}
37
+ py310-tox{3,414, 4}
37
38
# Use single virtualenv for both coverage envs.
38
39
envdir = {toxworkdir}/coverage
39
40
parallel_show_output = true
Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ def tox_add_env_config(env_conf: EnvConfigSet, state: State) -> None:
59
59
_LOGGER .debug ("tox-ipdb-plugin[%s]: New deps: %s" , env_conf .name , new_deps )
60
60
61
61
override = Override ('{}.deps={}' .format (env_conf .name , '\n ' .join (new_deps )))
62
- env_conf .loaders [0 ].overrides [override .key ] = override
62
+ # API changed in tox 4.15.0
63
+ if LooseVersion (tox .__version__ ) < LooseVersion ('4.15.0' ):
64
+ env_conf .loaders [0 ].overrides [override .key ] = override # type: ignore[assignment]
65
+ else :
66
+ env_conf .loaders [0 ].overrides .setdefault (override .key , []).append (override )
63
67
64
68
# Clear cache
65
69
env_conf ._defined ['deps' ]._cache = _PLACE_HOLDER # type: ignore[attr-defined] # _cache is not public API
You can’t perform that action at this time.
0 commit comments