tox: some cleanups & remove hardcoded python3.10
This commit is contained in:
32
tox.ini
32
tox.ini
@@ -1,34 +1,26 @@
|
||||
[tox]
|
||||
envlist=
|
||||
envlist =
|
||||
linting
|
||||
py{38,39,310,311,312}-pytestlatest
|
||||
py310-pytestmain
|
||||
py310-psutil
|
||||
py310-setproctitle
|
||||
isolated_build = true
|
||||
|
||||
[testenv]
|
||||
extras = testing
|
||||
extras =
|
||||
testing
|
||||
psutil: psutil
|
||||
setproctitle: setproctitle
|
||||
deps =
|
||||
pytestmin: pytest==7.0.0
|
||||
pytestlatest: pytest
|
||||
pytestmain: git+https://github.com/pytest-dev/pytest.git
|
||||
commands=
|
||||
pytest {posargs}
|
||||
|
||||
[testenv:py310-psutil]
|
||||
extras =
|
||||
testing
|
||||
psutil
|
||||
commands =
|
||||
pytest {posargs:-k psutil}
|
||||
|
||||
[testenv:py310-setproctitle]
|
||||
extras =
|
||||
testing
|
||||
setproctitle
|
||||
deps = pytest
|
||||
commands =
|
||||
pytest {posargs}
|
||||
pytest {posargs:{env:_XDIST_TOX_DEFAULT_POSARGS:}}
|
||||
setenv =
|
||||
_XDIST_TOX_DEFAULT_POSARGS={env:_XDIST_TOX_POSARGS_PSUTIL:}
|
||||
psutil: _XDIST_TOX_POSARGS_PSUTIL=-k psutil
|
||||
|
||||
[testenv:linting]
|
||||
skip_install = True
|
||||
@@ -39,9 +31,8 @@ deps =
|
||||
commands = pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
[testenv:release]
|
||||
changedir=
|
||||
changedir =
|
||||
description = do a release, required posarg of the version number
|
||||
basepython = python3.10
|
||||
skipsdist = True
|
||||
usedevelop = True
|
||||
passenv = *
|
||||
@@ -51,7 +42,6 @@ commands =
|
||||
towncrier build --version {posargs} --yes
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3.10
|
||||
usedevelop = True
|
||||
deps =
|
||||
sphinx
|
||||
|
||||
Reference in New Issue
Block a user