From 36dffc58db80523896fa1678706b1334407c7512 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 16:05:57 -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: Ic5b3298c4ea7ebecac333418888335fc286c6489 Signed-off-by: Doug Hellmann --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index 5afc4cbd..f7a200ec 100644 --- a/tox.ini +++ b/tox.ini @@ -18,23 +18,28 @@ commands = sitepackages = False [testenv:cover] +basepython = python3 setenv = VIRTUAL_ENV={envdir} commands = lockutils-wrapper python setup.py testr --coverage --testr-args="{posargs}" [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 commands = rm -rf doc/html doc/build rm -rf doc/source/apidoc doc/source/api python setup.py build_sphinx [testenv:genconfig] +basepython = python3 commands = oslo-config-generator --config-file=etc/blazar/blazar-config-generator.conf [flake8] @@ -49,12 +54,15 @@ enable-extensions=H904 local-check-factory = blazar.hacking.checks.factory [testenv:pylint] +basepython = python3 commands = pylint blazar [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:api-ref] +basepython = python3 # This environment is called from CI scripts to test and publish # the API Ref to developer.openstack.org. commands =