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 <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-06 16:05:57 -04:00
parent 3ed1fdc64a
commit 36dffc58db
1 changed files with 8 additions and 0 deletions

View File

@ -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 =