11[tox]
22minversion = 2.3
3- envlist = py27, py37,pep8
3+ envlist = py37,pep8
44skipdist = True
5+ # Automatic envs (pyXX) will only use the python version appropriate to that
6+ # env and ignore basepython inherited from [testenv] if we set
7+ # ignore_basepython_conflict.
8+ ignore_basepython_conflict = True
59
610[testenv]
711usedevelop = True
12+ basepython = python3
813install_command = pip install {opts} {packages}
914setenv = VIRTUAL_ENV ={envdir}
1015 OS_STDOUT_CAPTURE =1
@@ -24,7 +29,6 @@ commands =
2429 {toxinidir}/tools/fast8.sh
2530
2631[testenv:pep8]
27- basepython = python3
2832commands =
2933 flake8
3034 bandit -r openstackclient -x tests -s B105,B106,B107,B401,B404,B603,B606,B607,B110,B605,B101
@@ -86,15 +90,13 @@ commands =
8690 stestr run {posargs}
8791
8892[testenv:venv]
89- basepython = python3
9093deps =
9194 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
9295 -r{toxinidir}/requirements.txt
9396 -r{toxinidir}/doc/requirements.txt
9497commands = {posargs}
9598
9699[testenv:cover]
97- basepython = python3
98100setenv =
99101 VIRTUAL_ENV ={envdir}
100102 PYTHON =coverage run --source openstackclient --parallel-mode
@@ -110,7 +112,6 @@ commands =
110112 oslo_debug_helper -t openstackclient/tests {posargs}
111113
112114[testenv:docs]
113- basepython = python3
114115deps =
115116 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
116117 -r{toxinidir}/requirements.txt
@@ -122,7 +123,6 @@ commands =
122123 whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
123124
124125[testenv:releasenotes]
125- basepython = python3
126126deps =
127127 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
128128 -r{toxinidir}/doc/requirements.txt
@@ -140,7 +140,6 @@ import-order-style = pep8
140140application_import_names = openstackclient
141141
142142[testenv:lower-constraints]
143- basepython = python3
144143deps =
145144 -c{toxinidir}/lower-constraints.txt
146145 -r{toxinidir}/test-requirements.txt
0 commit comments