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: Id03d28442b998624153e048ad9a621f31dbdb7d2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-06 17:58:18 -04:00
parent 1dec8995fb
commit 5c157edc88
1 changed files with 7 additions and 0 deletions

View File

@ -19,12 +19,14 @@ commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:bandit]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
commands = bandit -r magnumclient -x tests -n5 -ll
[testenv:pypy]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
setuptools<3.2
@ -32,6 +34,7 @@ deps =
-r{toxinidir}/test-requirements.txt
[testenv:debug]
basepython = python3
commands = oslo_debug_helper -t magnumclient/tests {posargs}
[testenv:debug-py27]
@ -43,20 +46,24 @@ basepython = python3.5
commands = oslo_debug_helper -t magnumclient/tests {posargs}
[testenv:pep8]
basepython = python3
commands =
flake8
# Run security linter
bandit -r magnumclient -x tests -n5 -ll
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -b html doc/source doc/build/html
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
commands = {toxinidir}/tools/cover.sh {posargs}
[flake8]