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: I0d7c93b0c7e48dd86f3e1591596ca6e10caff196
changes/33/574333/1
qingszhao 1 year ago
parent
commit
3e4f2e5ee3
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -13,18 +13,22 @@ deps = -r{toxinidir}/requirements.txt
13 13
 commands = python setup.py test --slowest --testr-args='{posargs}'
14 14
 
15 15
 [testenv:pep8]
16
+basepython = python3
16 17
 commands = flake8
17 18
 
18 19
 [testenv:venv]
20
+basepython = python3
19 21
 commands = {posargs}
20 22
 
21 23
 [testenv:cover]
24
+basepython = python3
22 25
 commands =
23 26
   coverage erase
24 27
   python setup.py test --coverage --coverage-package-name=grafana_dashboards --testr-args='{posargs}'
25 28
   coverage report
26 29
 
27 30
 [testenv:docs]
31
+basepython = python3
28 32
 commands = python setup.py build_sphinx
29 33
 
30 34
 [flake8]

Loading…
Cancel
Save