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: I0bfdf108da6dc819debe29b4998d507b86e343a4
This commit is contained in:
huang.zhiping 2018-08-15 06:55:04 +00:00
parent 459e1b1399
commit cd9f5ec71a
1 changed files with 4 additions and 0 deletions

View File

@ -19,13 +19,16 @@ commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
[testenv:pep8]
basepython = python3
commands =
flake8
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
PYTHON=coverage run --source ldappool --parallel-mode
commands =
@ -49,6 +52,7 @@ show-source = True
exclude = .venv,.tox,dist,doc,*egg,build
[testenv:docs]
basepython = python3
commands=
python setup.py build_sphinx