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: I0157a9abf9f2e5af7ad78a9baac9ff519edaae21
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
changes/60/606460/2
Doug Hellmann 8 months ago
parent
commit
30e6b7fdbd
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tox.ini

+ 2
- 1
tox.ini View File

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

Loading…
Cancel
Save