From 872a8481e845be517a8dd74a3d2064a69cf01c64 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 26 Sep 2018 18:47:43 -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: I0570d5b3c2f8401566bf2eecf41af2035b44650c Signed-off-by: Doug Hellmann --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 01e27fc1..fab56784 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,7 @@ deps = -r{toxinidir}/test-requirements.txt passenv = GENERATE_GRENADE_PLUGIN_LIST [testenv:venv] +basepython = python3 commands = {posargs} [testenv:bashate] @@ -17,6 +18,7 @@ commands = bash -c "ls *.sh prep-* stop-* upgrade-* from-*/upgrade-* functions | xargs bashate -v {posargs}" [testenv:docs] +basepython = python3 whitelist_externals = bash setenv = TOP_DIR={toxinidir}