From e482bc2dc4319f6fd5726e3fc045153f30c81873 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 01:53:23 +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: I2ee74a543edbfbec4e73ace261b1309988347756 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 263a090b9..102a975a8 100644 --- a/tox.ini +++ b/tox.ini @@ -18,12 +18,15 @@ deps = commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:pep8] +basepython = python3 deps = bashate flake8 diskimage-builder @@ -38,6 +41,7 @@ setenv = ELEMENTS_DIR=elements [testenv:cover] +basepython = python3 commands = python setup.py test --coverage --coverage-package-name=instack_undercloud --testr-args='{posargs}' [flake8] @@ -53,9 +57,11 @@ exclude = .tox,dist,doc,*.egg,build,elements/puppet-stack-config/install.d/02-pu ignore = dibdebugtrace sete setu setpipefail mddocs [testenv:genconfig] +basepython = python3 commands = oslo-config-generator --config-file config-generator/undercloud.conf [testenv:releasenotes] +basepython = python3 commands = bash -c tools/releasenotes_tox.sh [testenv:lower-constraints]