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: I07f2186cb7771b3a83ccc4ce9ba3b79253c4757c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 1 year ago
parent
commit
03292afea5
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
4 4
 
5 5
 [testenv]
6
+basepython = python3
6 7
 setenv =
7 8
     VIRTUAL_ENV={envdir}
8 9
     BRANCH_NAME=master
@@ -42,6 +43,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
42 43
 commands = python setup.py build_sphinx
43 44
 
44 45
 [testenv:py27]
46
+basepython = python2.7
45 47
 commands =
46 48
     python setup.py testr --slowest --testr-args='{posargs}'
47 49
     sphinx-build -b doctest doc/source doc/build
@@ -57,7 +59,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
57 59
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
58 60
 
59 61
 [testenv:lower-constraints]
60
-basepython = python3
61 62
 deps =
62 63
   -c{toxinidir}/lower-constraints.txt
63 64
   -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save