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: If1e380edabb8db57486a8d9c6ca7616247087505
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
changes/56/606456/1
Doug Hellmann 9 months ago
parent
commit
305eb10d2e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tox.ini

+ 2
- 1
tox.ini View File

@@ -21,11 +21,12 @@ deps = -r{toxinidir}/test-requirements.txt
21 21
 commands = ostestr {posargs}
22 22
 
23 23
 [testenv:pep8]
24
-basepython = python2.7
24
+basepython = python3
25 25
 deps = -r{toxinidir}/test-requirements.txt
26 26
 commands = flake8 {posargs} . unit_tests
27 27
 
28 28
 [testenv:venv]
29
+basepython = python3
29 30
 commands = {posargs}
30 31
 
31 32
 [flake8]

Loading…
Cancel
Save