summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-08-15 07:04:13 +0000
committerWitold Bedyk <witold.bedyk@est.fujitsu.com>2018-10-01 09:26:32 +0000
commitccd56bf0d43ff7906b5dfe92f4c5cf62b3821bbd (patch)
treeaf80587a6fa195e3bd2b25cf3ac789a1b6f02cb7
parent8257dd9f42711864501b44846563948673620708 (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: Iaa7c9b9fca48dd2e091049da711e70395f6ec28e
Notes
Notes (review): Code-Review+1: Joseph Davis <joseph.davis@suse.com> Code-Review+1: Vieri <15050873171@163.com> Code-Review+2: Witold Bedyk <witold.bedyk@est.fujitsu.com> Workflow+1: Witold Bedyk <witold.bedyk@est.fujitsu.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 05 Oct 2018 14:39:29 +0000 Reviewed-on: https://review.openstack.org/591929 Project: openstack/monasca-transform Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index d035d5e..8281202 100644
--- a/tox.ini
+++ b/tox.ini
@@ -39,14 +39,17 @@ commands =
39 stestr run --serial {posargs} 39 stestr run --serial {posargs}
40 40
41[testenv:pep8] 41[testenv:pep8]
42basepython = python3
42commands = 43commands =
43 flake8 44 flake8
44 python setup.py check --restructuredtext --strict 45 python setup.py check --restructuredtext --strict
45 46
46[testenv:venv] 47[testenv:venv]
48basepython = python3
47commands = {posargs} 49commands = {posargs}
48 50
49[testenv:cover] 51[testenv:cover]
52basepython = python3
50# Also do not run test_coverage_ext tests while gathering coverage as those 53# Also do not run test_coverage_ext tests while gathering coverage as those
51# tests conflict with coverage. 54# tests conflict with coverage.
52setenv = 55setenv =