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

+ 2
- 1
tox.ini View File

@@ -4,6 +4,7 @@ envlist = py35,py27,pypy,pep8
4 4
 skipsdist = True
5 5
 
6 6
 [testenv]
7
+basepython = python3
7 8
 usedevelop = True
8 9
 install_command = pip install {opts} {packages}
9 10
 whitelist_externals = find
@@ -32,6 +33,7 @@ commands =
32 33
     python setup.py testr --slowest --testr-args='{posargs}'
33 34
     python setup.py build_sphinx -b doctest
34 35
     doc8 doc/source
36
+basepython = python2.7
35 37
 
36 38
 [testenv:docs]
37 39
 commands = rm -rf doc/build
@@ -51,7 +53,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
51 53
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
52 54
 
53 55
 [testenv:lower-constraints]
54
-basepython = python3
55 56
 deps =
56 57
   -c{toxinidir}/lower-constraints.txt
57 58
   -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save