diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-04-13 16:11:10 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-04-13 16:11:10 -0400 |
commit | 3987124f3e78fe5ebb70b487aff51eaf00518c57 (patch) | |
tree | f9d5070dffe8589714f7cd1eae7777572760146b /tox.ini | |
parent | 9b23c17a6be6d07d171b64ada3629c3680598f7b (diff) | |
download | oslo-utils-3987124f3e78fe5ebb70b487aff51eaf00518c57.tar.gz |
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: I931fc5b5c5bd0b746e1600c93897a7551b3f559e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3,6 +3,7 @@ minversion = 2.0 envlist = py35,py27,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} @@ -10,6 +11,9 @@ deps = -r{toxinidir}/requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' +[testenv:py27] +basepython = python2.7 + [testenv:pep8] commands = flake8 @@ -50,7 +54,6 @@ deps = -r{toxinidir}/doc/requirements.txt 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 |