From f04df2caa58717dc1667d02c86f2da8d6a261c08 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Fri, 22 Nov 2019 01:52:55 +0000 Subject: [PATCH] [ussuri][goal] Drop python 2.7 support and testing OpenStack is dropping the py2.7 support in ussuri cycle. freezer is ready with python 3 and ok to drop the python 2.7 support. 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: I14ab74f3e82e83ef5c5a49831f68335965e7e101 --- .zuul.yaml | 1 - doc/requirements.txt | 1 - releasenotes/notes/drop-py-2-7-a76d53b7a12bcff2.yaml | 6 ++++++ setup.cfg | 2 -- tox.ini | 12 ++---------- 5 files changed, 8 insertions(+), 14 deletions(-) create mode 100644 releasenotes/notes/drop-py-2-7-a76d53b7a12bcff2.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 022430ba..7a49d419 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,7 +2,6 @@ templates: - check-requirements - openstack-lower-constraints-jobs - - openstack-python-jobs - openstack-python3-ussuri-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 diff --git a/doc/requirements.txt b/doc/requirements.txt index 8aa039f0..701e58bc 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,7 +1,6 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -sphinx>=1.6.5,!=1.6.6,!=1.6.7,<2.0.0;python_version=='2.7' # BSD sphinx>=1.6.5,!=1.6.6,!=1.6.7,!=2.1.0;python_version>='3.4' # BSD sphinxcontrib-apidoc>=0.2.0 # BSD openstackdocstheme>=1.20.0 # Apache-2.0 diff --git a/releasenotes/notes/drop-py-2-7-a76d53b7a12bcff2.yaml b/releasenotes/notes/drop-py-2-7-a76d53b7a12bcff2.yaml new file mode 100644 index 00000000..b4192396 --- /dev/null +++ b/releasenotes/notes/drop-py-2-7-a76d53b7a12bcff2.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. Last release of freezer + to support py2.7 is OpenStack Train. The minimum version of Python now + supported by freezer is Python 3.6. diff --git a/setup.cfg b/setup.cfg index 5c163eb2..e49c88e7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,8 +8,6 @@ home-page = https://docs.openstack.org/freezer/latest/ license = Apache-2 classifier = Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 diff --git a/tox.ini b/tox.ini index 9135716c..facf8254 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,9 @@ [tox] -envlist = py27,py37,pep8,pylint,docs +envlist = py37,pep8,pylint,docs skipsdist = True [testenv] +basepython = python3 usedevelop = True deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} @@ -46,12 +47,8 @@ python_files = test_*.py norecursedirs = .tox .venv [testenv:venv] -basepython = python3 commands = {posargs} -[testenv:py27] -basepython = python2.7 - [testenv:py37] basepython = python3.7 @@ -59,7 +56,6 @@ basepython = python3.7 basepython = python3.6 [testenv:docs] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt whitelist_externals = rm commands = @@ -68,13 +64,11 @@ commands = [testenv:pep8] -basepython = python3 commands = flake8 freezer doc8 {posargs} [testenv:pylint] -basepython = python3 commands = pylint --rcfile .pylintrc freezer [flake8] @@ -88,7 +82,6 @@ ignore = D000,D001 ignore-path = .venv,.git,.tox,.tmp,*freezer/locale*,*lib/python*,freezer.egg*,doc/build,releasenotes/*,doc/source/contributor/api [testenv:releasenotes] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt whitelist_externals = rm commands = @@ -96,7 +89,6 @@ commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt