summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-01-11 11:08:30 +0000
committerGitHub <noreply@github.com>2021-01-11 11:08:30 +0000
commit4cf619a95b2ab14632d2fb6e62335d792da75c37 (patch)
tree49d705b392dea0ee00bd1f4163aeb780b7bb26ea /tox.ini
parent68cbc356ebc041f700c3c49a0f7f1ce522f7e66c (diff)
downloadtox-git-4cf619a95b2ab14632d2fb6e62335d792da75c37.tar.gz
Better handling of set_env (#1784)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini28
1 files changed, 14 insertions, 14 deletions
diff --git a/tox.ini b/tox.ini
index f4a17ed4..8c518b47 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ envlist =
pkg_meta
isolated_build = true
skip_missing_interpreters = true
-minversion = 3.14
+minversion = 3.21
[testenv]
description = run the tests with pytest
@@ -21,16 +21,16 @@ passenv =
PYTEST_*
SSL_CERT_FILE
setenv =
- COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
- COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
+ COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}}
+ COVERAGE_PROCESS_START = {toxinidir}{/}setup.cfg
extras =
testing
commands =
pytest {tty:--color=yes} {posargs: \
- --junitxml {toxworkdir}/junit.{envname}.xml --cov {envsitepackagesdir}/tox --cov {toxinidir}/tests \
+ --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}tox --cov {toxinidir}{/}tests \
--cov-config=setup.cfg --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
- --cov-report html:{envtmpdir}/htmlcov \
- --cov-report xml:{toxworkdir}/coverage.{envname}.xml \
+ --cov-report html:{envtmpdir}{/}htmlcov \
+ --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
-n={env:PYTEST_XDIST_PROC_NR:auto} \
tests --timeout 20 --durations 5 --run-integration}
@@ -44,8 +44,8 @@ skip_install = true
deps =
pre-commit>=2.2
commands =
- pre-commit run --all-files --show-diff-on-failure {posargs}
- python -c 'import pathlib; print("hint: run {} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
+ pre-commit run --all-files --show-diff-on-failure {tty:--color=always} {posargs}
+ python -c 'print(r"hint: run {envbindir}{/}pre-commit install to add checks as pre-commit hook")'
[testenv:type]
description = run type check on code base
@@ -72,9 +72,9 @@ parallel_show_output = true
commands =
coverage combine
coverage report -m
- coverage xml -o {toxworkdir}/coverage.xml
- coverage html -d {toxworkdir}/htmlcov
- diff-cover --compare-branch upstream/rewrite {toxworkdir}/coverage.xml
+ coverage xml -o {toxworkdir}{/}coverage.xml
+ coverage html -d {toxworkdir}{/}htmlcov
+ diff-cover --compare-branch upstream/rewrite {toxworkdir}{/}coverage.xml
depends =
py39
py38
@@ -87,8 +87,8 @@ basepython = python3.9
extras =
docs
commands =
- python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
- sphinx-build -d "{envtmpdir}/doctree" docs "{toxworkdir}/docs_out" --color -b html {posargs}
+ python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")'
+ sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html {posargs}
[testenv:pkg_meta]
description = check that the long description is valid
@@ -99,7 +99,7 @@ deps =
twine>=3
commands =
python -m build -o {envtmpdir} -s -w .
- twine check {envtmpdir}/*
+ twine check {envtmpdir}{/}*
[testenv:dev]
description = dev environment with all deps at {envdir}