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: Idb6defda3b9575244421b1c4af8ba88205809d92 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
c587ae6feb
commit
d5c9f00935
4
tox.ini
4
tox.ini
|
@ -18,12 +18,15 @@ whitelist_externals = npm
|
|||
commands = python manage.py test neutron_lbaas_dashboard --settings=neutron_lbaas_dashboard.tests.settings
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands = flake8
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
# npm must be installed on the system, for example
|
||||
# sudo apt-get install npm
|
||||
# sudo yum install npm (on RHEL/CentOS, enable EPEL repository)
|
||||
|
@ -31,6 +34,7 @@ commands = npm install
|
|||
npm test
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
whitelist_externals = rm
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||
|
|
Loading…
Reference in New Issue