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: I07f2186cb7771b3a83ccc4ce9ba3b79253c4757c Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
ba06902133
commit
03292afea5
3
tox.ini
3
tox.ini
|
@ -3,6 +3,7 @@ minversion = 2.0
|
|||
envlist = py35,py27,pep8
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
BRANCH_NAME=master
|
||||
|
@ -42,6 +43,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
python setup.py testr --slowest --testr-args='{posargs}'
|
||||
sphinx-build -b doctest doc/source doc/build
|
||||
|
@ -57,7 +59,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
|
||||
|
|
Loading…
Reference in New Issue