@@ -11,35 +11,33 @@ env_list =
1111 3.9
1212 3.8
1313 type
14- readme
14+ pkg_meta
1515skip_missing_interpreters = true
1616
1717[testenv]
18- description = run the unit tests with pytest under {basepython }
18+ description = run the unit tests with pytest under {base_python }
1919package = wheel
2020wheel_build_env = .pkg
2121extras =
22- test
22+ testing
23+ pass_env =
24+ DIFF_AGAINST
25+ PYTEST_*
2326set_env =
24- COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
25- COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
26- _COVERAGE_SRC = {envsitepackagesdir}/devpi_process
27+ COVERAGE_FILE = {work_dir}/.coverage.{env_name}
2728commands =
28- pytest {tty:--color =yes} {posargs: \
29- --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}devpi_process \
30- --cov {toxinidir}{/}tests --cov-fail-under =100 \
29+ python -m pytest {tty:--color =yes} {posargs: \
30+ --cov {env_site_packages_dir}{/}devpi_process --cov {tox_root}{/}tests \
3131 --cov-config =pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context =test \
32- --cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
32+ --cov-report html:{env_tmp_dir}{/}htmlcov --cov-report xml:{work_dir}{/}coverage.{env_name}.xml \
33+ --junitxml {work_dir}{/}junit.{env_name}.xml \
3334 tests}
3435
3536[testenv:fix]
36- description = run static analysis and style check using flake8
37+ description = format the code base to adhere to our styles, and complain about what we cannot do automatically
3738skip_install = true
3839deps =
39- pre-commit-uv>=4.1
40- pass_env =
41- HOMEPATH
42- PROGRAMDATA
40+ pre-commit-uv>=4.1.1
4341commands =
4442 pre-commit run --all-files --show-diff-on-failure
4543
@@ -51,24 +49,21 @@ commands =
5149 mypy src
5250 mypy tests
5351
54- [testenv:readme ]
52+ [testenv:pkg_meta ]
5553description = check that the long description is valid
5654skip_install = true
5755deps =
58- build[uv]>=1.2.2
5956 check-wheel-contents>=0.6
6057 twine>=5.1.1
58+ uv>=0.4.10
6159commands =
62- pyproject- build --installer uv --outdir {envtmpdir} --sdist --wheel .
63- twine check {envtmpdir }{/}*
64- check-wheel-contents --no-config {envtmpdir }
60+ uv build --sdist --wheel --out-dir {env_tmp_dir} .
61+ twine check {env_tmp_dir }{/}*
62+ check-wheel-contents --no-config {env_tmp_dir }
6563
6664[testenv:dev]
6765description = generate a DEV environment
6866package = editable
69- extras =
70- docs
71- test
7267commands =
7368 uv pip tree
7469 python -c ' import sys; print(sys.executable)'
0 commit comments