Browse Source

Merge "fix tox python3 overrides"

Zuul 9 months ago
parent
commit
f312138961
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -21,6 +21,7 @@ commands =
21 21
      stestr run {posargs}
22 22
 
23 23
 [testenv:pep8]
24
+basepython = python3
24 25
 whitelist_externals = bash
25 26
 commands =
26 27
   bash tools/flake8wrap.sh {posargs}
@@ -30,6 +31,7 @@ commands =
30 31
   doc8 README.rst CONTRIBUTING.rst doc/source --ignore D001
31 32
 
32 33
 [testenv:docs]
34
+basepython = python3
33 35
 setenv = PYTHONHASHSEED=0
34 36
 sitepackages = False
35 37
 envdir = {toxworkdir}/venv
@@ -41,6 +43,7 @@ commands =
41 43
   python setup.py build_sphinx
42 44
 
43 45
 [testenv:releasenotes]
46
+basepython = python3
44 47
 deps =
45 48
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
46 49
     -r{toxinidir}/doc/requirements.txt
@@ -48,6 +51,7 @@ commands =
48 51
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
49 52
 
50 53
 [testenv:venv]
54
+basepython = python3
51 55
 setenv = PYTHONHASHSEED=0
52 56
 commands = {posargs}
53 57
 
@@ -62,6 +66,7 @@ application-import-names = networking_generic_switch
62 66
 enable-extensions=H106,H203,H904
63 67
 
64 68
 [testenv:cover]
69
+basepython = python3
65 70
 commands =
66 71
     coverage erase
67 72
     coverage run --branch --include "networking_generic_switch*" -m unittest discover networking_generic_switch.tests.unit

Loading…
Cancel
Save