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

+ 4
- 1
tox.ini View File

@@ -3,6 +3,7 @@ minversion = 2.0
3 3
 envlist = py35,py27,pep8
4 4
 
5 5
 [testenv]
6
+basepython = python3
6 7
 install_command = pip install {opts} {packages}
7 8
 deps =
8 9
        -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
@@ -11,6 +12,9 @@ deps =
11 12
 commands =
12 13
   python setup.py testr --slowest --testr-args='{posargs}'
13 14
 
15
+[testenv:py27]
16
+basepython = python2.7
17
+
14 18
 [testenv:docs]
15 19
 commands = python setup.py build_sphinx
16 20
 
@@ -30,7 +34,6 @@ ignore = E721
30 34
 exclude=.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg
31 35
 
32 36
 [testenv:lower-constraints]
33
-basepython = python3
34 37
 deps =
35 38
   -c{toxinidir}/lower-constraints.txt
36 39
   -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save