From ba13329fe65eea18047020a1512100125a6a0eb2 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 26 Sep 2018 18:50:58 -0400 Subject: [PATCH] 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: I14aef3de2d663ef36930285401a52f06eb30488d Signed-off-by: Doug Hellmann --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 4d9c7df7..24f9f4b0 100644 --- a/tox.ini +++ b/tox.ini @@ -31,11 +31,12 @@ passenv = http_proxy OS_STDOUT_CAPTURE [testenv:pep8] -basepython = python2.7 +basepython = python3 commands = sh tools/pretty_flake8.sh [testenv:docs] +basepython = python3 commands = rm -rf doc/build sphinx-build -E -W -b html doc/source doc/build/html @@ -66,6 +67,7 @@ deps = pip-check-reqs commands=pip-missing-reqs -d --ignore-file=designate/tests/* designate [testenv:venv] +basepython = python3 commands = {posargs} [flake8]