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: Ib30809ed46999fc27986accbd662b748588ad977
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-13 15:57:18 -04:00
parent 09b3c00bd1
commit 64f1f1553d
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ envlist = py35,py27,pypy,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
whitelist_externals = find
@ -32,6 +33,7 @@ commands =
python setup.py testr --slowest --testr-args='{posargs}'
python setup.py build_sphinx -b doctest
doc8 doc/source
basepython = python2.7
[testenv:docs]
commands = rm -rf doc/build
@ -51,7 +53,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt