diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-04-13 16:02:29 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-04-13 16:02:29 -0400 |
commit | 2c557312519cd368c50eaaa5448049da19cc6281 (patch) | |
tree | 709ba3b7e00e618cdce6354e8c80c09c55672524 | |
parent | 880f29d72e436ab3a63a62c82c2f23d2a94b1a01 (diff) | |
download | oslo-middleware-2c557312519cd368c50eaaa5448049da19cc6281.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: I1ec3c534cdc0a4850d5873eb5ec2a70701cb4141
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-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 setenv = VIRTUAL_ENV={envdir} install_command = pip install {opts} {packages} @@ -11,6 +12,9 @@ deps = -r{toxinidir}/test-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 |