Skip to content

Commit bf25fb8

Browse files
committed
Create separate tox environments for py314 and py314t
Instead of mapping both 3.14 and 3.14t to the same py314 environment, create separate environments: - py314 for regular Python 3.14 - py314t for free-threading Python 3.14t This resolves the "env name py314 conflicting with base python" error by allowing tox to automatically detect the correct Python interpreter for each build type. Tox recognizes environment names ending with 't' as free-threaded Python implementations.
1 parent ffb4ac6 commit bf25fb8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tox.ini

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint,py{310,311,312,313,314},pypy3,manifest,coverage-report
2+
envlist = lint,py{310,311,312,313,314,314t},pypy3,manifest,coverage-report
33

44
[gh-actions]
55
python =
@@ -8,7 +8,7 @@ python =
88
3.12: py312
99
3.13: py313, lint, manifest
1010
3.14: py314
11-
3.14t: py314
11+
3.14t: py314t
1212
pypy-3.11: pypy3
1313

1414
[testenv]
@@ -17,14 +17,11 @@ deps =
1717
pytest-cov
1818
sh >= 2.0.2, <3
1919
click
20-
py{310,311,312,313,314,pypy3}: ipython
20+
py{310,311,312,313,314,314t,pypy3}: ipython
2121
commands = pytest --cov --cov-report=term-missing {posargs}
2222
depends =
23-
py{310,311,312,313,314},pypy3: coverage-clean
24-
coverage-report: py{310,311,312,313,314},pypy3
25-
26-
[testenv:py314]
27-
basepython = python3
23+
py{310,311,312,313,314,314t},pypy3: coverage-clean
24+
coverage-report: py{310,311,312,313,314,314t},pypy3
2825

2926
[testenv:lint]
3027
skip_install = true

0 commit comments

Comments
 (0)