set default python to python3

Set the default python to python3 except for the py27 environment. We
have to set that explicitly to override the new default.

Change-Id: I1b90426757130f9e8f32eb4882746bb44b3cf1e3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-13 16:13:58 -04:00
parent 113a2ddddd
commit 674ced35dc
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ skipsdist = True
envlist = py35,py27,pep8
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
@ -16,6 +17,9 @@ usedevelop = True
commands = python setup.py testr --slowest --testr-args='{posargs}'
distribute = false
[testenv:py27]
basepython = python2.7
[testenv:functional]
basepython = python2.7
setenv = {[testenv]setenv}