Stop testing python 2 in tox.

Remove python 2 from envlist parameter. Check the link:

https://etherpad.openstack.org/p/drop-python2-support
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

The plan is drop the python 2 support from OpenStack in Ussuri release.
Move the basepython parameter.

Change-Id: I6787026195c8852386f7186fe697b724051a9684
This commit is contained in:
Daniel Bengtsson 2020-02-11 12:43:27 +01:00
parent 4c42f72f4b
commit 1d10bd9d46
1 changed files with 1 additions and 6 deletions

View File

@ -1,7 +1,7 @@
[tox]
minversion = 3.1.0
skipsdist = True
envlist = validate,py27,py37,pep8,pip-install
envlist = validate,py37,pep8,pip-install
ignore_basepython_conflict=true
[testenv]
@ -13,11 +13,6 @@ deps = -c{toxinidir}/upper-constraints.txt
commands =
stestr run {posargs}
[testenv:py27-check-uc]
basepython = python2.7
deps = -r{toxinidir}/upper-constraints.txt
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
[testenv:py36-check-uc]
basepython = python3.6
deps = -r{toxinidir}/upper-constraints.txt