From 3d8fcb471020d3407671067ac2b043e44b269ff0 Mon Sep 17 00:00:00 2001 From: Ghanshyam Date: Thu, 23 Jan 2020 16:12:45 -0600 Subject: [PATCH] [ussuri][goal] Drop python 2.7 support and testing OpenStack is dropping the py2.7 support in ussuri cycle. freezer-tempest-plugin is ready with python 3 and ok to drop the python 2.7 support. Removing the USE_PYTHON3=True from base job so that it can keep running on py3 for < ussuri branches. 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: I025c12a265de4e3fdfad67c9e570c3110869acd6 --- releasenotes/notes/drop-py-2-7-b64b230b4ad22d82.yaml | 6 ++++++ setup.cfg | 4 ++-- test-requirements.txt | 3 +-- tox.ini | 10 +++------- 4 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 releasenotes/notes/drop-py-2-7-b64b230b4ad22d82.yaml diff --git a/releasenotes/notes/drop-py-2-7-b64b230b4ad22d82.yaml b/releasenotes/notes/drop-py-2-7-b64b230b4ad22d82.yaml new file mode 100644 index 0000000..e337be4 --- /dev/null +++ b/releasenotes/notes/drop-py-2-7-b64b230b4ad22d82.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. Last release of freezer-tempest-plugin + to support py2.7 is OpenStack Train. The minimum version of Python now + supported by freezer-tempest-plugin is Python 3.5. diff --git a/setup.cfg b/setup.cfg index 2108cc2..d5e38c9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,10 +13,10 @@ classifier = License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 [files] packages = diff --git a/test-requirements.txt b/test-requirements.txt index de28c91..efaff3a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,8 +4,7 @@ hacking>=1.1.0,<1.2.0 # Apache-2.0 -sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD -sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD +sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD oslosphinx>=4.7.0 # Apache-2.0 # releasenotes diff --git a/tox.ini b/tox.ini index c4aaae5..95b9d7d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,11 @@ [tox] -minversion = 2.0 +minversion = 3.1.1 envlist = pep8 skipsdist = True +ignore_basepython_conflict = True [testenv] +basepython = python3 usedevelop = True install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages} setenv = @@ -13,28 +15,22 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] -basepython = python3 commands = flake8 {posargs} [testenv:venv] -basepython = python3 commands = {posargs} [testenv:cover] -basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] -basepython = python3 commands = python setup.py build_sphinx [testenv:releasenotes] -basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:debug] -basepython = python3 commands = oslo_debug_helper {posargs} [flake8]