summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 19:00:36 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 19:00:36 -0400
commit29a80fe99c869af538ad90c44411862ead0879cf (patch)
tree988f4a33e07d02aaafe88bf381116f0d28c6206e
parent5558b74c6aba23f2b2110cf24353f772ea64abe3 (diff)
fix tox python3 overridesHEADmaster
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: Id637ce96fff8f06ad3c0c0e433870d2eaca17c85 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Trinh Nguyen <dangtrinhnt@gmail.com> Workflow+1: Trinh Nguyen <dangtrinhnt@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sun, 30 Sep 2018 11:19:45 +0000 Reviewed-on: https://review.openstack.org/606714 Project: openstack/searchlight-specs 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 aa17e0a..fa5d055 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,9 +12,11 @@ deps =
12 -r{toxinidir}/doc/requirements.txt 12 -r{toxinidir}/doc/requirements.txt
13 13
14[testenv:venv] 14[testenv:venv]
15basepython = python3
15commands = {posargs} 16commands = {posargs}
16 17
17[testenv:docs] 18[testenv:docs]
19basepython = python3
18deps = -r{toxinidir}/doc/requirements.txt 20deps = -r{toxinidir}/doc/requirements.txt
19whitelist_externals = rm 21whitelist_externals = rm
20commands = 22commands =
@@ -22,6 +24,7 @@ commands =
22 sphinx-build -W -b html doc/source doc/build/html 24 sphinx-build -W -b html doc/source doc/build/html
23 25
24[testenv:pep8] 26[testenv:pep8]
27basepython = python3
25commands = 28commands =
26 flake8 29 flake8
27 doc8 --ignore D001 specs/ doc/source README.rst 30 doc8 --ignore D001 specs/ doc/source README.rst