Skip to content

Commit 0990e1d

Browse files
cybertronEric Fried
authored andcommitted
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 can't set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36 due to tox-dev/tox#425 Change-Id: I9abfcb14c06a6a9d31e9f53278dd11eccdef488d
1 parent a92ead1 commit 0990e1d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tox.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ envlist = py34,py27,pypy,pep8
44
skipsdist = True
55

66
[testenv]
7-
basepython = python3
87
usedevelop = True
98
install_command = pip install {opts} {packages}
109
setenv =
@@ -15,26 +14,29 @@ deps =
1514
-r{toxinidir}/test-requirements.txt
1615
commands = python setup.py test --slowest --testr-args='{posargs}'
1716

18-
[testenv:py27]
19-
basepython = python2.7
20-
2117
[testenv:pep8]
18+
basepython = python3
2219
commands = flake8 {posargs}
2320

2421
[testenv:venv]
22+
basepython = python3
2523
commands = {posargs}
2624

2725
[testenv:cover]
26+
basepython = python3
2827
commands = python setup.py test --coverage --testr-args='{posargs}'
2928

3029
[testenv:docs]
30+
basepython = python3
3131
commands = python setup.py build_sphinx
3232

3333
[testenv:releasenotes]
34+
basepython = python3
3435
commands =
3536
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
3637

3738
[testenv:debug]
39+
basepython = python3
3840
commands = oslo_debug_helper {posargs}
3941

4042
[flake8]

0 commit comments

Comments
 (0)