summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:56 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:56 -0400
commit4e7a3ae398967e22fb638c54edb9ade09f3f2af1 (patch)
treed5d2e73c0c594b869bef85ddc15728dff17be81f
parent0ce9a83c47236cdd01362aca088afb06ffe056f6 (diff)
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: I9bb6720a711be93f89630974789133d73384edf7 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Masayuki Igawa <masayuki@igawa.io> Workflow+1: Masayuki Igawa <masayuki@igawa.io> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 01 Oct 2018 10:52:44 +0000 Reviewed-on: https://review.openstack.org/606686 Project: openstack/openstack-health Branch: refs/heads/master
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index bfeabf2..e90d0c5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,17 +15,21 @@ commands =
15 stestr run {posargs} 15 stestr run {posargs}
16 16
17[testenv:venv] 17[testenv:venv]
18basepython = python3
18commands = {posargs} 19commands = {posargs}
19 20
20[testenv:docs] 21[testenv:docs]
22basepython = python3
21commands = 23commands =
22 python setup.py build_sphinx {posargs} 24 python setup.py build_sphinx {posargs}
23 25
24[testenv:pep8] 26[testenv:pep8]
27basepython = python3
25commands = 28commands =
26 flake8 {toxinidir}/openstack_health {posargs} 29 flake8 {toxinidir}/openstack_health {posargs}
27 30
28[testenv:cover] 31[testenv:cover]
32basepython = python3
29setenv = 33setenv =
30 {[testenv]setenv} 34 {[testenv]setenv}
31 PYTHON = coverage run --source openstack_health --parallel-mode 35 PYTHON = coverage run --source openstack_health --parallel-mode