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: I014f9f9c7f7212ca868bdb27f091a257a3174159
This commit is contained in:
huang.zhiping 2018-06-09 11:20:09 +08:00 committed by Filippo Inzaghi
parent aadc24ea03
commit 0ad394d8da
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = py27,pypy,pep8
envlist = py27,py35,pypy,pep8
skipsdist = True
[testenv]
@ -44,6 +44,7 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]