summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Bengtsson <dbengt@redhat.com>2019-11-21 14:20:42 +0100
committerEric Fried <openstack@fried.cc>2019-12-06 16:06:36 +0000
commit924627678d9bb1e9cdf84b524fb69dd37f4345ec (patch)
tree4d02c15ce2e32250ed5b3bc0538fa9090a34b561 /tox.ini
parent5b3a827a1ff80e4b51c7ede44b84bf640d5b6380 (diff)
downloadpython-openstackclient-924627678d9bb1e9cdf84b524fb69dd37f4345ec.tar.gz
Stop testing python 2 in tox and zuul.
Remove python 2 from envlist parameter. Check the link: https://etherpad.openstack.org/p/drop-python2-support The plan is drop the python 2 support from OpenStack in Ussuri release. Remove the zuul jobs. Note that the (non-voting) openstackclient-check-plugins job is still running under py2 at this time. That will need to be fixed in the python/openstackclient repository where the job is defined. Change-Id: I3148db053b9ef0fcf7dc88e5cc075d974c93d819
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 6 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index addafa2b..f15529cd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,15 @@
[tox]
minversion = 2.3
-envlist = py27,py37,pep8
+envlist = py37,pep8
skipdist = True
+# Automatic envs (pyXX) will only use the python version appropriate to that
+# env and ignore basepython inherited from [testenv] if we set
+# ignore_basepython_conflict.
+ignore_basepython_conflict = True
[testenv]
usedevelop = True
+basepython = python3
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
@@ -24,7 +29,6 @@ commands =
{toxinidir}/tools/fast8.sh
[testenv:pep8]
-basepython = python3
commands =
flake8
bandit -r openstackclient -x tests -s B105,B106,B107,B401,B404,B603,B606,B607,B110,B605,B101
@@ -86,7 +90,6 @@ commands =
stestr run {posargs}
[testenv:venv]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
@@ -94,7 +97,6 @@ deps =
commands = {posargs}
[testenv:cover]
-basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source openstackclient --parallel-mode
@@ -110,7 +112,6 @@ commands =
oslo_debug_helper -t openstackclient/tests {posargs}
[testenv:docs]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
@@ -122,7 +123,6 @@ commands =
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
[testenv:releasenotes]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
@@ -140,7 +140,6 @@ import-order-style = pep8
application_import_names = openstackclient
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt