Browse Source

Merge "set default python to python3"

Zuul 1 year ago
parent
commit
d510207740
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,pypy,pep8
4 4
 
5 5
 [testenv]
6
+basepython = python3
6 7
 install_command = pip install {opts} {packages}
7 8
 whitelist_externals =
8 9
  /bin/sh
@@ -12,6 +13,9 @@ deps =
12 13
   -r{toxinidir}/requirements.txt
13 14
 commands = python setup.py testr --slowest --testr-args='{posargs}'
14 15
 
16
+[testenv:py27]
17
+basepython = python2.7
18
+
15 19
 [testenv:pep8]
16 20
 deps =
17 21
   -r{toxinidir}/test-requirements.txt
@@ -48,7 +52,6 @@ import_exceptions =
48 52
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
49 53
 
50 54
 [testenv:lower-constraints]
51
-basepython = python3
52 55
 deps =
53 56
   -c{toxinidir}/lower-constraints.txt
54 57
   -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save