summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-04-13 16:09:10 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-04-13 16:10:00 -0400
commit9837c5ef986e77e41860da622e5dc3d3d7788d6d (patch)
treeaecaa8d6ce6bb3556b950fbd17908d9a98021b0b /tox.ini
parentbb78b84c3fc8485e590f2c925c07731a9740a852 (diff)
downloadoslotest-9837c5ef986e77e41860da622e5dc3d3d7788d6d.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: I6751b74c5dee149972695258672db0f82787d646 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 0199b19..2dffb87 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@ distribute = False
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}
@@ -11,6 +12,9 @@ deps =
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
+[testenv:py27]
+basepython = python2.7
+
[testenv:pep8]
commands = flake8
@@ -36,7 +40,6 @@ import_exceptions =
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