Skip to content

Commit fb51e6b

Browse files
committed
tox: some cleanups & remove hardcoded python3.10
1 parent c143230 commit fb51e6b

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

tox.ini

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
[tox]
2-
envlist=
2+
envlist =
33
linting
44
py{38,39,310,311,312}-pytestlatest
55
py310-pytestmain
66
py310-psutil
77
py310-setproctitle
88
isolated_build = true
9+
910
[testenv]
10-
extras = testing
11+
extras =
12+
testing
13+
psutil: psutil
14+
setproctitle: setproctitle
1115
deps =
1216
pytestmin: pytest==7.0.0
1317
pytestlatest: pytest
1418
pytestmain: git+https://github.com/pytest-dev/pytest.git
15-
commands=
16-
pytest {posargs}
17-
18-
[testenv:py310-psutil]
19-
extras =
20-
testing
21-
psutil
22-
commands =
23-
pytest {posargs:-k psutil}
24-
25-
[testenv:py310-setproctitle]
26-
extras =
27-
testing
28-
setproctitle
29-
deps = pytest
3019
commands =
31-
pytest {posargs}
20+
pytest {posargs:{env:_XDIST_TOX_DEFAULT_POSARGS:}}
21+
setenv =
22+
_XDIST_TOX_DEFAULT_POSARGS={env:_XDIST_TOX_POSARGS_PSUTIL:}
23+
psutil: _XDIST_TOX_POSARGS_PSUTIL=-k psutil
3224

3325
[testenv:linting]
3426
skip_install = True
@@ -39,9 +31,8 @@ deps =
3931
commands = pre-commit run --all-files --show-diff-on-failure
4032

4133
[testenv:release]
42-
changedir=
34+
changedir =
4335
description = do a release, required posarg of the version number
44-
basepython = python3.10
4536
skipsdist = True
4637
usedevelop = True
4738
passenv = *
@@ -51,7 +42,6 @@ commands =
5142
towncrier build --version {posargs} --yes
5243

5344
[testenv:docs]
54-
basepython = python3.10
5545
usedevelop = True
5646
deps =
5747
sphinx

0 commit comments

Comments
 (0)