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: I5ae4018191b6b78aa8abc22fd12e4c5ec1c02374
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-13 15:48:23 -04:00
parent f8623e5a3f
commit aa12fe5f74
1 changed files with 2 additions and 2 deletions

View File

@ -3,10 +3,10 @@ minversion = 2.0
envlist = py35,py27,pypy,docs,pep8,venv
[testenv:docs]
basepython = python2.7
commands = python setup.py build_sphinx
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
@ -18,13 +18,13 @@ commands = python setup.py test --slowest --testr-args='{posargs}'
commands = flake8 {posargs}
[testenv:py27]
basepython = python2.7
commands =
python setup.py testr --slowest --testr-args='{posargs}'
sphinx-build -b doctest doc/source doc/build
doc8 --ignore-path "doc/source/history.rst" doc/source
[testenv:venv]
basepython = python2.7
commands = {posargs}
[flake8]