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: I0fe605c2f827a528a12e8f64219ba2bdff028db0
This commit is contained in:
huang.zhiping 2018-06-08 22:52:49 +08:00 committed by sean mooney
parent ce744c83eb
commit d2229c9b76
1 changed files with 4 additions and 0 deletions

View File

@ -22,16 +22,20 @@ deps = {env:CONSTRAINTS_OPT}
whitelist_externals = sh
[testenv:pep8]
basepython = python3
commands = flake8 collectd_openstack
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
#fixeme(sean-k-mooney): add -W to treat warnings as errors once warnings are fixed
commands = sphinx-build doc/source doc/build
[testenv:releasenotes]
basepython = python3
#fixeme(sean-k-mooney): add -W to treat warnings as errors once warnings are fixed
#NOTE(sean-k-mooney): our releasenotes crash sphinx so we should really fix them ...
commands =