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: I7b70af34d2df8d0181843a502d3e78ca3c7eb72a
This commit is contained in:
zhulingjie 2018-06-09 04:16:33 -04:00
parent 30dd6d7533
commit c6ada2430d
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ commands = {[testenv:functional]commands}
whitelist_externals = {[testenv:functional]whitelist_externals}
[testenv:pep8]
basepython = python3
deps = {[testenv]deps}
commands = flake8 {posargs}
@ -56,6 +57,7 @@ commands =
mypy --py2 --ignore-missing-imports kolla_cli
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
@ -63,7 +65,9 @@ show-source = True
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:bandit]
basepython = python3
commands = bandit -r kolla_cli
[testenv:docs]
basepython = python3
commands = ./builddocs.sh