summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:56:50 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 18:56:50 -0400
commit5f773759745c850a42246e3105cd88ad735d02ef (patch)
treeaa4a7bb894bc3edaa8bbca8d05a7ee9378d1e86d /tox.ini
parent4aa92c0caa564a0f7bde40e6630df8edc76e042d (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: I5220bfe8496d9578e65c14303d9ab6499f7a5aed Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): 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: Mon, 01 Oct 2018 08:59:48 +0000 Reviewed-on: https://review.openstack.org/606663 Project: openstack/monasca-specs Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 864b989..f1c95c5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,12 +12,15 @@ deps = -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt 12 -r{toxinidir}/test-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
18commands = python setup.py build_sphinx 20commands = python setup.py build_sphinx
19 21
20[testenv:pep8] 22[testenv:pep8]
23basepython = python3
21description = Runs set of linters against codebase (checkniceness) 24description = Runs set of linters against codebase (checkniceness)
22commands = {[testenv:checkniceness]commands} 25commands = {[testenv:checkniceness]commands}
23 26