summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-04-13 16:17:04 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-04-13 16:17:04 -0400
commite883541d9f7ff6bdb244d6d745305bf03a8bdfe6 (patch)
tree718dd1b3d0f226158a6742b07c83d4a8fde9d77c
parent824ff654331ed16f97140ebda347a30268cc1246 (diff)
downloadtooz-e883541d9f7ff6bdb244d6d745305bf03a8bdfe6.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: Ib90566414f0967b2c7c7633950e3dc2fa8634982 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index dfaccb8..0d38b96 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,6 +3,7 @@ minversion = 1.8
envlist = py27,py35,py{27,35}-{zookeeper,redis,sentinel,memcached,postgresql,mysql,consul,etcd,etcd3,etcd3gw},pep8
[testenv]
+basepython = python3
# We need to install a bit more than just `test' because those drivers have
# custom tests that we always run
deps = .[test,zake,ipc,memcached,mysql,etcd,etcd3,etcd3gw]
@@ -35,6 +36,9 @@ commands =
{toxinidir}/run-tests.sh {toxinidir}/tools/pretty_tox.sh "{posargs}"
{toxinidir}/run-examples.sh
+[testenv:py27]
+basepython = python2.7
+
[testenv:venv]
# This target is used by the gate go run Sphinx to build the doc
deps = {[testenv:docs]deps}