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: Ia20d2ef56af2da00b374b3a3e5d79d7228c6a763 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
83d102537e
commit
4c782b2817
6
tox.ini
6
tox.ini
|
@ -17,6 +17,7 @@ commands = find . -type f -name "*.py[c|o]" -delete
|
|||
whitelist_externals = find
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
commands = oslo_debug_helper -t heatclient/tests {posargs}
|
||||
|
||||
[testenv:debug-py27]
|
||||
|
@ -28,10 +29,12 @@ basepython = python3.5
|
|||
commands = oslo_debug_helper -t heatclient/tests {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands =
|
||||
flake8
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:functional]
|
||||
|
@ -41,11 +44,13 @@ setenv =
|
|||
passenv = OS_*
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
commands =
|
||||
python setup.py testr --coverage --testr-args='{posargs}'
|
||||
coverage report
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
|
@ -60,6 +65,7 @@ max-complexity=20
|
|||
import_exceptions = heatclient._i18n
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
|
|
Loading…
Reference in New Issue