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: Ib4546226c254ef59d2b1b872f32267d2541e72de
This commit is contained in:
qingszhao 2018-09-27 16:45:34 +08:00 committed by Witold Bedyk
parent a9b6d6c80e
commit d54179f00f
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,6 @@ minversion = 1.8
skipsdist = True
[testenv]
basepython = /usr/bin/python
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
@ -16,11 +15,13 @@ whitelist_externals = bash
find
[testenv:pep8]
basepython = python3
commands =
flake8
python setup.py check --restructuredtext --strict
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]