summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author98k <18552437190@163.com>2018-10-05 10:30:30 +0000
committer98k <18552437190@163.com>2018-11-08 13:13:11 +0000
commitcc79b5659049b6d882eaa176858f30b7006d9d58 (patch)
treeabfe4c951965b1d57a4f87a5c5062c0ebd77b930
parent914f002e412f361881cb230603026aaa9c62b044 (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: I9383c8f33cf476b7c8dff184089e40aa591c6d6c Closes-Bug: #1802032
Notes
Notes (review): Code-Review+2: jerry <jerry.sun@windriver.com> Code-Review+1: Al Bailey <al.bailey@windriver.com> Code-Review+1: Andriy Shevchenko <huang.zhiping@99cloud.net> Code-Review+1: Filippo Inzaghi <zhao.daqing@99cloud.net> Code-Review+1: Vieri <15050873171@163.com> Workflow+1: jerry <jerry.sun@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 20 Nov 2018 14:40:09 +0000 Reviewed-on: https://review.openstack.org/608207 Project: openstack/stx-clients 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 9734b68..fcc6fc4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,6 +12,7 @@ setenv = VIRTUAL_ENV={envdir}
12deps = -r{toxinidir}/test-requirements.txt 12deps = -r{toxinidir}/test-requirements.txt
13 13
14[testenv:linters] 14[testenv:linters]
15basepython = python3
15whitelist_externals = bash 16whitelist_externals = bash
16commands = 17commands =
17 bash -c "find {toxinidir} \ 18 bash -c "find {toxinidir} \
@@ -28,6 +29,7 @@ commands =
28 -print0 | xargs -0 yamllint" 29 -print0 | xargs -0 yamllint"
29 30
30[testenv:pep8] 31[testenv:pep8]
32basepython = python3
31usedevelop = False 33usedevelop = False
32skip_install = True 34skip_install = True
33deps = 35deps =
@@ -36,6 +38,7 @@ commands =
36 pep8 38 pep8
37 39
38[testenv:venv] 40[testenv:venv]
41basepython = python3
39commands = {posargs} 42commands = {posargs}
40 43
41[testenv:docs] 44[testenv:docs]
@@ -57,6 +60,7 @@ whitelist_externals =
57 reno 60 reno
58 61
59[testenv:newnote] 62[testenv:newnote]
63basepython = python3
60# Re-use the releasenotes venv 64# Re-use the releasenotes venv
61envdir = {toxworkdir}/releasenotes 65envdir = {toxworkdir}/releasenotes
62deps = -r{toxinidir}/doc/requirements.txt 66deps = -r{toxinidir}/doc/requirements.txt