Browse Source

fix tox python3 overrides

We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0bfdf108da6dc819debe29b4998d507b86e343a4
huang.zhiping 8 months ago
parent
commit
cd9f5ec71a
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -19,13 +19,16 @@ commands = find . -type f -name "*.pyc" -delete
19 19
 whitelist_externals = find
20 20
 
21 21
 [testenv:pep8]
22
+basepython = python3
22 23
 commands =
23 24
   flake8
24 25
 
25 26
 [testenv:venv]
27
+basepython = python3
26 28
 commands = {posargs}
27 29
 
28 30
 [testenv:cover]
31
+basepython = python3
29 32
 setenv =
30 33
     PYTHON=coverage run --source ldappool --parallel-mode
31 34
 commands =
@@ -49,6 +52,7 @@ show-source = True
49 52
 exclude = .venv,.tox,dist,doc,*egg,build
50 53
 
51 54
 [testenv:docs]
55
+basepython = python3
52 56
 commands=
53 57
     python setup.py build_sphinx
54 58
 

Loading…
Cancel
Save