From 406b3ef20eea652333af2b2bae8b6de766d57bd4 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Fri, 15 Nov 2019 03:21:18 +0000 Subject: [PATCH] [ussuri][goal] Drop python 2.7 support and testing OpenStack is dropping the py2.7 support in ussuri cycle. Congress-dashboard 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 Depends-On: https://review.opendev.org/#/c/693631/ Change-Id: I433d289bb0a6d1c8bea5492b2fefa2e000636294 --- .zuul.yaml | 1 - doc/requirements.txt | 1 - releasenotes/notes/drop-py-2-7-0b1f5e1450e2991c.yaml | 6 ++++++ requirements.txt | 3 +-- setup.cfg | 2 -- tox.ini | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/drop-py-2-7-0b1f5e1450e2991c.yaml diff --git a/.zuul.yaml b/.zuul.yaml index ae9bd27..e81d267 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -3,7 +3,6 @@ - check-requirements - horizon-non-primary-django-jobs - 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 b02e331..5686a84 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,4 +1,3 @@ -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,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD openstackdocstheme>=1.18.1 # Apache-2.0 reno>=2.5.0 # Apache-2.0 diff --git a/releasenotes/notes/drop-py-2-7-0b1f5e1450e2991c.yaml b/releasenotes/notes/drop-py-2-7-0b1f5e1450e2991c.yaml new file mode 100644 index 0000000..ef376d9 --- /dev/null +++ b/releasenotes/notes/drop-py-2-7-0b1f5e1450e2991c.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Python 2.7 support has been dropped. Last release of Congress-dashboard + to support python 2.7 is OpenStack Train. The minimum version of Python now + supported by Congress-dashboard is Python 3.6. diff --git a/requirements.txt b/requirements.txt index 6a9721c..5dd1ee1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,8 +8,7 @@ # # PBR should always appear first pbr!=2.1.0,>=2.0.0 # Apache-2.0 -Django<2,>=1.11;python_version<'3.0' # BSD -Django<2.1,>=1.11;python_version>='3.0' # BSD +Django>=1.11;python_version>='3.0' # BSD django-babel>=0.6.2 # BSD django-compressor>=2.0 # MIT keystoneauth1>=3.4.0 # Apache-2.0 diff --git a/setup.cfg b/setup.cfg index 3c68acf..75f4307 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,8 +13,6 @@ 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.6 Programming Language :: Python :: 3.7 diff --git a/tox.ini b/tox.ini index 9076ee5..32a08f0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37,py36,py27,py3-{dj111,dj22},pep8 +envlist = py37,py36,py3-{dj111,dj22},pep8 minversion = 2.0 skipsdist = True