summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:51 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:51 -0400
commit4f1ca7601f240df5cb0893d1726a429819d434a7 (patch)
treea8811c9a6ef862e4137a15f5432bef391ff0b7f6
parentbcc62124e8b2aae771eaaa091454820585a1624e (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: I6faa7c3e39f02d765d7ceed4a69490b2092c6fee Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 08 Oct 2018 02:50:49 +0000 Reviewed-on: https://review.openstack.org/606629 Project: openstack/devstack-tools 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 efec50e..89b03a1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,15 +17,19 @@ basepython = python3
17commands = flake8 {posargs} 17commands = flake8 {posargs}
18 18
19[testenv:venv] 19[testenv:venv]
20basepython = python3
20commands = {posargs} 21commands = {posargs}
21 22
22[testenv:cover] 23[testenv:cover]
24basepython = python3
23commands = python setup.py test --coverage --testr-args='{posargs}' 25commands = python setup.py test --coverage --testr-args='{posargs}'
24 26
25[testenv:docs] 27[testenv:docs]
28basepython = python3
26commands = python setup.py build_sphinx 29commands = python setup.py build_sphinx
27 30
28[testenv:releasenotes] 31[testenv:releasenotes]
32basepython = python3
29commands = 33commands =
30 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 34 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
31 35