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: I9d9b80a6e177f7a3a1e20be8da5f603b95ad2deb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-13 16:08:24 -04:00
parent 5f70c35a0d
commit 4de1ee38fb
1 changed files with 4 additions and 0 deletions

View File

@ -3,12 +3,16 @@ minversion = 2.0
envlist = pep8
[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}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:py27]
basepython = python2.7
[testenv:pep8]
commands =
flake8 oslosphinx