Browse Source

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>
tags/1.62.0
Doug Hellmann 1 year ago
parent
commit
e883541d9f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -3,6 +3,7 @@ minversion = 1.8
3 3
 envlist = py27,py35,py{27,35}-{zookeeper,redis,sentinel,memcached,postgresql,mysql,consul,etcd,etcd3,etcd3gw},pep8
4 4
 
5 5
 [testenv]
6
+basepython = python3
6 7
 # We need to install a bit more than just `test' because those drivers have
7 8
 # custom tests that we always run
8 9
 deps = .[test,zake,ipc,memcached,mysql,etcd,etcd3,etcd3gw]
@@ -35,6 +36,9 @@ commands =
35 36
     {toxinidir}/run-tests.sh {toxinidir}/tools/pretty_tox.sh "{posargs}"
36 37
     {toxinidir}/run-examples.sh
37 38
 
39
+[testenv:py27]
40
+basepython = python2.7
41
+
38 42
 [testenv:venv]
39 43
 # This target is used by the gate go run Sphinx to build the doc
40 44
 deps = {[testenv:docs]deps}

Loading…
Cancel
Save