From 838fc650a99ba29e303b1b5debd51bb74cf636d6 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 15:27:00 -0400 Subject: 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1