summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 17:58:17 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-07 17:51:28 -0400
commitf536541eb65ddfaccfc90ddaa83df0648dc85d2d (patch)
tree09e1d91f4bcf7e8f9cfdfa4277670d3a82a4eca5 /tox.ini
parente48431192375bbace0adc896b9c4de3a9cd00b34 (diff)
downloadpython-glanceclient-f536541eb65ddfaccfc90ddaa83df0648dc85d2d.tar.gz
fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I8a41be18dac0fc3199ee5fa691a4ab48fae66849 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index f6220e4..85f5f3a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,9 +17,11 @@ deps =
commands = stestr run --slowest {posargs}
[testenv:pep8]
+basepython = python3
commands = flake8
[testenv:venv]
+basepython = python3
commands = {posargs}
[pbr]
@@ -50,6 +52,7 @@ commands =
stestr run --slowest {posargs}
[testenv:cover]
+basepython = python3
setenv =
PYTHON=coverage run --source glanceclient --parallel-mode
commands =
@@ -59,11 +62,13 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
+basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
+basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html