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: Id83cb3cdd62517045c45388f88cb3de0e3d75da1
... | ... |
@@ -8,6 +8,7 @@ usedevelop = False |
8 | 8 |
install_command = pip install {opts} {packages} |
9 | 9 |
|
10 | 10 |
[testenv:bashate] |
11 |
+basepython = python3 |
|
11 | 12 |
# if you want to test out some changes you have made to bashate |
12 | 13 |
# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your |
13 | 14 |
# modified bashate tree |
... | ... |
@@ -34,6 +35,7 @@ commands = bash -c "find {toxinidir} \ |
34 | 34 |
-print0 | xargs -0 bashate -v -iE006 -eE005,E042" |
35 | 35 |
|
36 | 36 |
[testenv:docs] |
37 |
+basepython = python3 |
|
37 | 38 |
deps = -r{toxinidir}/doc/requirements.txt |
38 | 39 |
whitelist_externals = bash |
39 | 40 |
setenv = |
... | ... |
@@ -42,5 +44,6 @@ commands = |
42 | 42 |
python setup.py build_sphinx |
43 | 43 |
|
44 | 44 |
[testenv:venv] |
45 |
+basepython = python3 |
|
45 | 46 |
deps = -r{toxinidir}/doc/requirements.txt |
46 | 47 |
commands = {posargs} |