Make tox.ini uv-ready

This commit is contained in:
Hynek Schlawack 2024-03-16 18:00:52 +01:00
parent d9ed5937fe
commit b201831a4b
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -29,11 +29,10 @@ commands =
[testenv:py3{7,10,12}-tests]
extras = cov
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the tox run.
# PYTHONWARNINGS=d makes them visible during the tox run.
set_env =
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
PYTHONWARNINGS=d
install_command = python -Im pip install --no-compile {opts} {packages}
commands_pre = python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
commands = coverage run -m pytest {posargs:-n auto}
@ -41,6 +40,7 @@ commands = coverage run -m pytest {posargs:-n auto}
[testenv:coverage-report]
# Keep base_python in-sync with .python-version-default
base_python = py312
# Keep depends in-sync with testenv above that has cov extra.
depends = py3{7,10,12}
skip_install = true
deps = coverage[toml]>=5.3