From b201831a4b7ea61dea7ce16ba0cbe7d313f7621d Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sat, 16 Mar 2024 18:00:52 +0100 Subject: [PATCH] Make tox.ini uv-ready --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index df965dfb..fa1d43af 100644 --- a/tox.ini +++ b/tox.ini @@ -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