diff options
author | Luigi Toscano <ltoscano@redhat.com> | 2020-01-26 22:00:58 +0100 |
---|---|---|
committer | Luigi Toscano <ltoscano@redhat.com> | 2020-01-26 22:00:58 +0100 |
commit | 62bfa6af46d1091bc1457a42daf6c5315f3bd5d6 (patch) | |
tree | 084d7a136b9474d7f6e910d6196dcb3b40ba6e60 /tox.ini | |
parent | ca99e621fdc7c42dce42ae998216c4249e380110 (diff) | |
download | python-saharaclient-62bfa6af46d1091bc1457a42daf6c5315f3bd5d6.tar.gz |
[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.
sahara plugins do works with python 3 and the sahara core
does not support python 2.7 anymore anyway.
Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
Also:
- bump the lower-constraints decorator requirements to a recent one
to prevent failures;
- drop the obsolete jenkins tox target.
Change-Id: I5806dcb8f13e88a28c0b5e6de449efa9b95b6e73
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -1,9 +1,13 @@ [tox] -envlist = py27,py37,pypy,pep8,releasenotes -minversion = 2.0 +envlist = py37,pypy,pep8,releasenotes +minversioon = 3.1.1 skipsdist = True +# this allows tox to infer the base python from the environment name +# and override any basepython configured in this file +ignore_basepython_conflict = true [testenv] +basepython = python3 usedevelop = True install_command = pip install {opts} {packages} setenv = @@ -23,16 +27,11 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY basepython = python3 commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} -[testenv:debug-py27] -basepython = python2.7 -commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} - [testenv:debug-py36] basepython = python3.6 commands = oslo_debug_helper -t saharaclient/tests/unit {posargs} [testenv:cover] -basepython = python3 setenv = {[testenv]setenv} PYTHON=coverage run --source saharaclient --parallel-mode @@ -45,16 +44,11 @@ commands = coverage xml -o cover/coverage.xml coverage report -[tox:jenkins] -sitepackages = False - [testenv:pep8] -basepython = python3 sitepackages = False commands = flake8 [testenv:doc8] -basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/requirements.txt @@ -63,11 +57,9 @@ deps = commands = doc8 doc/source [testenv:venv] -basepython = python3 commands = {posargs} [testenv:docs] -basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/requirements.txt @@ -77,7 +69,6 @@ commands = sphinx-build -W -b html doc/source doc/build/html [testenv:releasenotes] -basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/requirements.txt @@ -95,7 +86,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools local-check-factory = saharaclient.tests.hacking.checks.factory [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |