1
1
[tox]
2
- envlist =
2
+ requires =
3
+ tox>=4.2
4
+ env_list =
3
5
fix
4
6
py311
5
7
py310
@@ -10,38 +12,36 @@ envlist =
10
12
coverage
11
13
readme
12
14
docs
13
- isolated_build = true
14
15
skip_missing_interpreters = true
15
- requires = tox>=4
16
16
17
17
[testenv]
18
18
description = run tests with {basepython}
19
+ package = wheel
20
+ wheel_build_env = .pkg
19
21
extras =
20
22
test
21
- commands =
22
- coverage erase
23
- coverage run -m pytest {posargs:--junitxml {toxworkdir}/junit.{envname}.xml tests --int}
24
- coverage combine
25
- coverage report --skip-covered --show-missing
26
- coverage xml -o {toxworkdir}/coverage.{envname}.xml
27
- coverage html -d {envtmpdir}/htmlcov --show-contexts --title virtualenv-{envname}-coverage
28
- package = wheel
29
23
pass_env =
30
24
CI_RUN
31
25
PYTEST_*
32
26
TERM
33
27
set_env =
34
- _COVERAGE_SRC = {envsitepackagesdir}/virtualenv
35
28
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
36
29
COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
37
30
PYTHONWARNDEFAULTENCODING = 1
38
- wheel_build_env = .pkg
31
+ _COVERAGE_SRC = {envsitepackagesdir}/virtualenv
32
+ commands =
33
+ coverage erase
34
+ coverage run -m pytest {posargs:--junitxml {toxworkdir}/junit.{envname}.xml tests --int}
35
+ coverage combine
36
+ coverage report --skip-covered --show-missing
37
+ coverage xml -o {toxworkdir}/coverage.{envname}.xml
38
+ coverage html -d {envtmpdir}/htmlcov --show-contexts --title virtualenv-{envname}-coverage
39
39
40
40
[testenv:fix]
41
41
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
42
42
skip_install = true
43
43
deps =
44
- pre-commit>=3.0.4
44
+ pre-commit>=3.2.2
45
45
commands =
46
46
pre-commit run --all-files --show-diff-on-failure
47
47
@@ -68,37 +68,37 @@ commands =
68
68
description = upgrade pip/wheels/setuptools to latest
69
69
skip_install = true
70
70
deps =
71
- black>=23.1
72
- commands =
73
- python upgrade_wheels.py
74
- change_dir = {toxinidir}/tasks
71
+ black>=23.3
75
72
pass_env =
76
73
UPGRADE_ADVISORY
74
+ change_dir = {toxinidir}/tasks
75
+ commands =
76
+ python upgrade_wheels.py
77
77
78
78
[testenv:release]
79
79
description = do a release, required posarg of the version number
80
80
deps =
81
- gitpython>=3.1.30
82
- packaging>=23
81
+ gitpython>=3.1.31
82
+ packaging>=23.1
83
83
towncrier>=22.12
84
+ change_dir = {toxinidir}/tasks
84
85
commands =
85
86
python release.py --version {posargs}
86
- change_dir = {toxinidir}/tasks
87
87
88
88
[testenv:dev]
89
89
description = generate a DEV environment
90
+ package = editable
90
91
extras =
91
92
docs
92
93
test
93
94
commands =
94
95
python -m pip list --format =columns
95
96
python -c ' import sys; print(sys.executable)'
96
- package = editable
97
97
98
98
[testenv:zipapp]
99
99
description = generate a zipapp
100
100
skip_install = true
101
101
deps =
102
- packaging>=23
102
+ packaging>=23.1
103
103
commands =
104
104
python tasks/make_zipapp.py
0 commit comments