summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-04-13 16:03:06 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-04-13 16:03:06 -0400
commit544d220b9c1985e482ff385d45b23de0ac205ff7 (patch)
tree7c7b1704d138004f60f04c173e8817a8526f1f01 /tox.ini
parent509cf0839a0ce6732d8a76faaa85fd82735fe7e7 (diff)
downloadoslo-policy-544d220b9c1985e482ff385d45b23de0ac205ff7.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: I55118c8c80884d6f71d2730dfc26b28e5b1fdf28 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 30cdf3d..6dcf960 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,6 +3,7 @@ minversion = 2.0
envlist = py35,py27,pep8,docs
[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]
deps =
-r{toxinidir}/test-requirements.txt
@@ -49,7 +53,6 @@ commands = pip-missing-reqs -d --ignore-module=oslo_policy* --ignore-module=pkg_
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