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: Id785f80aa636569c070727ad4761ad7b34e23081
This commit is contained in:
parent
4823b8d763
commit
36840aaa0d
7
tox.ini
7
tox.ini
|
@ -18,18 +18,23 @@ deps = -r{toxinidir}/requirements.txt
|
|||
commands = {toxinidir}/manage.py test ironic_ui --settings=ironic_ui.test.settings
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands = flake8 {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
commands = oslo_debug_helper -t ironic_ui/test/tests {posargs}
|
||||
|
||||
[flake8]
|
||||
|
@ -39,9 +44,11 @@ builtins = _
|
|||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[testenv:extractmessages]
|
||||
basepython = python3
|
||||
commands =
|
||||
pybabel extract -F babel-django.cfg \
|
||||
-o ironic_ui/locale/django.pot -k gettext_noop -k gettext_lazy -k ngettext_lazy:1,2 \
|
||||
|
|
Loading…
Reference in New Issue