From 81b13dcf200a0e00650b5439ecfe54c0fb64d989 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Sun, 1 Mar 2020 19:17:02 -0600 Subject: [PATCH] [ussuri][goal] Updates for python 2.7 drop OpenStack is dropping the py2.7 support in ussuri cycle. Only update required is in tox to define common baspython as py3 os that all tox env including [testenv:functional] will use py3 instead of py2. 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 Change-Id: Ic6300763471d4a1a588b750d05d4f3dd72342704 --- tox.ini | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tox.ini b/tox.ini index 626770a8..8707cc0e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,11 @@ [tox] -minversion = 2.0 +minversion = 3.1 skipsdist = True envlist = docs,linters,functional +ignore_basepython_conflict = True [testenv] +basepython = python3 usedevelop = True install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} @@ -32,7 +34,6 @@ setenv = WORKING_DIR={toxinidir} [testenv:docs] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = bash -c "rm -rf doc/build" @@ -40,7 +41,6 @@ commands = sphinx-build --keep-going -b html doc/source doc/build/html [testenv:pdf-docs] -basepython = python3 deps = {[testenv:docs]deps} whitelist_externals = make @@ -53,19 +53,16 @@ commands = extensions = .rst [testenv:releasenotes] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html # environment used by the -infra templated docs job [testenv:venv] -basepython = python3 commands = {posargs} [testenv:pep8] -basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-pep8.sh" @@ -76,17 +73,14 @@ commands = ignore=F403 [testenv:bashate] -basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-bashate.sh" [testenv:ansible-syntax] -basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh" [testenv:ansible-lint] -basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-ansible-lint.sh" @@ -105,7 +99,6 @@ commands = bash -c "{toxinidir}/tests/common/test-ansible-functional.sh" [testenv:linters] -basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-ansible-env-prep.sh" {[testenv:pep8]commands}