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: I66b43b70c5ffd077e58e5a5f0e631bd3a0aa080a
This commit is contained in:
parent
01ef5c2285
commit
402c0847a3
4
tox.ini
4
tox.ini
|
@ -28,14 +28,17 @@ setenv =
|
|||
DJANGO_SETTINGS_MODULE=monitoring.test.settings
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands =
|
||||
/bin/bash run_tests.sh -N --pep8
|
||||
python setup.py check --restructuredtext --strict
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
commands = /bin/bash run_tests.sh -N --coverage {posargs}
|
||||
|
||||
[flake8]
|
||||
|
@ -44,6 +47,7 @@ builtins = _
|
|||
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*
|
||||
|
||||
[testenv:lower-constraints]
|
||||
basepython = python3
|
||||
deps =
|
||||
-c{toxinidir}/lower-constraints.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
|
Loading…
Reference in New Issue