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: I27506d9c007b500fd97fd88f145e215885a44606
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-26 19:01:27 -04:00 committed by dharmendra kushwaha
parent 2b88f20992
commit 3c4238fbf6

View File

@ -26,13 +26,16 @@ commands =
{envpython} {toxinidir}/manage.py test tacker_horizon --settings=tacker_horizon.test.settings {posargs}
[testenv:pep8]
basepython = python3
commands = flake8
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:cover]
basepython = python3
commands =
coverage erase
coverage run {toxinidir}/manage.py test tacker_horizon --settings=tacker_horizon.test.settings {posargs}
@ -40,6 +43,7 @@ commands =
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]