summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author98k <18552437190@163.com>2018-10-05 10:59:20 +0000
committerFilippo Inzaghi <zhao.daqing@99cloud.net>2018-12-12 13:21:26 +0000
commit5ea99870e391eafd77a80db6cd744eb75314fa36 (patch)
tree47e1ef7f2db05e07a2ea1686dc04c9913cef3940
parent1ed103250b3d6df2bae92b0cee794bfce835d7af (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: I360cea415303e794c6cbacc26e91f4c8735373fb Partial-Bug: #1802032 Signed-off-by: Andriy Shevchenko <18552437190@163.com>
Notes
Notes (review): Code-Review+1: Bart Wensley <barton.wensley@windriver.com> Code-Review+1: Filippo Inzaghi <zhao.daqing@99cloud.net> Code-Review+1: Andriy Shevchenko <huang.zhiping@99cloud.net> Code-Review+1: Vieri <15050873171@163.com> Code-Review+2: Brent Rowsell <brent.rowsell@windriver.com> Code-Review+2: Dean Troyer <dtroyer@gmail.com> Code-Review+1: Bob Church <robert.church@windriver.com> Workflow+1: Brent Rowsell <brent.rowsell@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 13 Dec 2018 02:05:51 +0000 Reviewed-on: https://review.openstack.org/608227 Project: openstack/stx-specs Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index c66d1ff..5cf6f62 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,6 @@ minversion = 2.3
4skipsdist = True 4skipsdist = True
5 5
6[testenv] 6[testenv]
7basepython = python3
8install_command = pip install -U {opts} {packages} 7install_command = pip install -U {opts} {packages}
9setenv = VIRTUAL_ENV={envdir} 8setenv = VIRTUAL_ENV={envdir}
10 OS_STDOUT_CAPTURE=1 9 OS_STDOUT_CAPTURE=1
@@ -18,6 +17,7 @@ deps = -r{toxinidir}/doc/requirements.txt
18commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html 17commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
19 18
20[testenv:linters] 19[testenv:linters]
20basepython = python3
21whitelist_externals = bash 21whitelist_externals = bash
22commands = 22commands =
23 bash -c "find {toxinidir} \ 23 bash -c "find {toxinidir} \
@@ -27,4 +27,5 @@ commands =
27 doc8 specs/ 27 doc8 specs/
28 28
29[testenv:venv] 29[testenv:venv]
30basepython = python3
30commands = {posargs} 31commands = {posargs}