From f5ab0e760d74a45674d35dcd75da8a8dbd0b1ad6 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sun, 10 Jun 2018 00:15:29 +0800 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: I09bb55e842515307fbedeee6ba6519dfa4b95e24 --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index 6a192fd062..21c06b489f 100644 --- a/tox.ini +++ b/tox.ini @@ -13,9 +13,11 @@ deps = commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:venv] +basepython = python3 commands = {posargs} [testenv:pep8] +basepython = python3 whitelist_externals = bash commands = @@ -26,23 +28,29 @@ commands = bash -c ./tools/check-up-to-date.sh [testenv:templates] +basepython = python3 commands = python ./tools/process-templates.py [testenv:clean] +basepython = python3 commands = python ./tools/process-templates.py -c [testenv:releasenotes] +basepython = python3 commands = bash -c tools/releasenotes_tox.sh [testenv:cover] +basepython = python3 commands = python setup.py test --coverage --coverage-package-name=tripleo_heat_templates --testr-args='{posargs}' [testenv:genconfig] +basepython = python3 commands = python ./tools/process-templates.py python ./tripleo_heat_templates/environment_generator.py sample-env-generator/ [testenv:genroledata] +basepython = python3 whitelist_externals = bash commands =