Skip to content

Commit d5cbd03

Browse files
huang.zhipingEric Fried
huang.zhiping
authored and
Eric Fried
committed
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: Ibeb97401c13fb1cb35f824082eb6b3209c868beb
1 parent cc12040 commit d5cbd03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,28 @@ deps =
1616
commands = python setup.py test --slowest --testr-args='{posargs}'
1717

1818
[testenv:pep8]
19+
basepython = python3
1920
commands = flake8 {posargs}
2021

2122
[testenv:venv]
23+
basepython = python3
2224
commands = {posargs}
2325

2426
[testenv:cover]
27+
basepython = python3
2528
commands = python setup.py test --coverage --testr-args='{posargs}'
2629

2730
[testenv:docs]
31+
basepython = python3
2832
commands = python setup.py build_sphinx
2933

3034
[testenv:releasenotes]
35+
basepython = python3
3136
commands =
3237
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
3338

3439
[testenv:debug]
40+
basepython = python3
3541
commands = oslo_debug_helper {posargs}
3642

3743
[flake8]

0 commit comments

Comments
 (0)