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: I6b107fce3daa8292b5fe6b5730a03008bf8987f0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
5e4b3bedc0
commit
838fc650a9
3
tox.ini
3
tox.ini
|
@ -21,6 +21,7 @@ deps =
|
|||
-r{toxinidir}/requirements.txt
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
deps =
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
flake8
|
||||
|
@ -30,6 +31,7 @@ commands =
|
|||
bandit -c bandit.yaml -r cliff -x tests -n5
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
# TODO(modred) remove doc/requirements.txt once the openstack-build-sphinx-docs
|
||||
# job is updated.
|
||||
deps =
|
||||
|
@ -48,6 +50,7 @@ deps = os:openstack/python-openstackclient:python-openstackclient
|
|||
commands = {toxinidir}/integration-tests/openstackclient-tip.sh {envdir}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands = sphinx-build -b html doc/source doc/build/html
|
||||
|
||||
|
|
Loading…
Reference in New Issue