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: Ifeef1cfb4b764c7a2d0351eb1c3f3660262350c8
Closes-Bug:  #1801657
qingszhao 2018-09-29 17:42:20 +08:00 committed by Filippo Inzaghi
parent 6926f93f05
commit dd3945a3ff
1 changed files with 5 additions and 0 deletions

View File

@ -12,19 +12,24 @@ deps = -r{toxinidir}/test-requirements.txt
commands = python test --slowest --testr-args='{posargs}'
basepython = python3
commands = flake8
basepython = python3
commands = {posargs}
basepython = python3
commands = python test --coverage --testr-args='{posargs}'
basepython = python3
commands = sphinx-apidoc -o doc/source os_performance_tools
python build_sphinx
basepython = python3
commands = oslo_debug_helper {posargs}