From 4144fed5dc40a005571dcd4defd8d7aea114d0af Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Fri, 8 Jun 2018 22:48:25 +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: I56f24f07b036e03fd7788f5bc3303aa9f65949db --- tox.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c78ad6c..9415b1c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py27,pypy,pep8 +envlist = py27,py35,pypy,pep8 skipsdist = True [testenv] @@ -16,21 +16,27 @@ commands = python setup.py test --slowest --testr-args='{posargs}' commands = flake8 [testenv:venv] +basepython = python3 commands = {posargs} [testenv:genconfig] +basepython = python3 commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf [testenv:cover] +basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:debug] +basepython = python3 commands = oslo_debug_helper {posargs} [testenv:bandit] +basepython = python3 deps = bandit commands = bandit -c bandit.yaml -r cloudpulse -p gate