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: I8557195409a559950da6c95aece5787195f31ad6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 1 year ago
parent
commit
3f7abe0bab
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tox.ini

+ 2
- 1
tox.ini View File

@@ -3,6 +3,7 @@ minversion = 2.0
3 3
 envlist = py35,py27,pep8,pip-missing-reqs
4 4
 
5 5
 [testenv]
6
+basepython = python3
6 7
 install_command = pip install {opts} {packages}
7 8
 whitelist_externals = bash
8 9
                       env
@@ -29,6 +30,7 @@ commands = pip install SQLAlchemy>=0.9.0,!=0.9.5,<1.0.0
29 30
             python setup.py testr --slowest --testr-args='{posargs}'
30 31
 
31 32
 [testenv:py27]
33
+basepython = python2.7
32 34
 commands =
33 35
     env TEST_EVENTLET=0 bash tools/pretty_tox.sh '{posargs}'
34 36
     env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}'
@@ -74,7 +76,6 @@ deps = pip_missing_reqs
74 76
 commands = pip-missing-reqs -d --ignore-module=oslo_db* --ignore-module=pkg_resources --ignore-file=oslo_db/tests/* oslo_db
75 77
 
76 78
 [testenv:lower-constraints]
77
-basepython = python3
78 79
 deps =
79 80
   -c{toxinidir}/lower-constraints.txt
80 81
   -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save