Browse Source

Merge "fix tox python3 overrides"

tags/3.8.0^0
Zuul 11 months ago
parent
commit
36ed4c11cb
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      tox.ini

+ 7
- 0
tox.ini View File

@@ -17,6 +17,7 @@ whitelist_externals =
17 17
   bash
18 18
 
19 19
 [testenv:pep8]
20
+basepython = python3
20 21
 commands =
21 22
   flake8
22 23
   # Run security linter
@@ -25,14 +26,17 @@ commands =
25 26
   bandit -r keystoneauth1 -x tests -s B110,B410
26 27
 
27 28
 [testenv:bandit]
29
+basepython = python3
28 30
 # NOTE(browne): This is required for the integration test job of the bandit
29 31
 # project. Please do not remove.
30 32
 commands = bandit -r keystoneauth1 -x tests -s B110,B410
31 33
 
32 34
 [testenv:venv]
35
+basepython = python3
33 36
 commands = {posargs}
34 37
 
35 38
 [testenv:cover]
39
+basepython = python3
36 40
 setenv =
37 41
     {[testenv]setenv}
38 42
     PYTHON=coverage run --source keystoneauth1 --parallel-mode
@@ -43,6 +47,7 @@ commands =
43 47
     coverage xml -o cover/coverage.xml
44 48
 
45 49
 [testenv:debug]
50
+basepython = python3
46 51
 commands = oslo_debug_helper -t keystoneauth1/tests {posargs}
47 52
 
48 53
 [flake8]
@@ -62,6 +67,7 @@ import-order-style = pep8
62 67
 application-import-names = keystoneauth1
63 68
 
64 69
 [testenv:docs]
70
+basepython = python3
65 71
 deps =
66 72
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
67 73
     -r{toxinidir}/doc/requirements.txt
@@ -71,6 +77,7 @@ commands =
71 77
     python setup.py build_sphinx
72 78
 
73 79
 [testenv:releasenotes]
80
+basepython = python3
74 81
 deps =
75 82
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
76 83
     -r{toxinidir}/doc/requirements.txt

Loading…
Cancel
Save