summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 15:27:00 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-06 15:27:00 -0400
commit838fc650a99ba29e303b1b5debd51bb74cf636d6 (patch)
treeac745ff260becddc0dfc028de6dff3586e011b06
parent5e4b3bedc073bed61716ae7e47780d8192a1c34f (diff)
downloadcliff-838fc650a99ba29e303b1b5debd51bb74cf636d6.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: I6b107fce3daa8292b5fe6b5730a03008bf8987f0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index a77e898..4680a6e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,6 +21,7 @@ deps =
-r{toxinidir}/requirements.txt
[testenv:pep8]
+basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
flake8
@@ -30,6 +31,7 @@ commands =
bandit -c bandit.yaml -r cliff -x tests -n5
[testenv:venv]
+basepython = python3
# TODO(modred) remove doc/requirements.txt once the openstack-build-sphinx-docs
# job is updated.
deps =
@@ -48,6 +50,7 @@ deps = os:openstack/python-openstackclient:python-openstackclient
commands = {toxinidir}/integration-tests/openstackclient-tip.sh {envdir}
[testenv:docs]
+basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html