From 2c7d463f376c4cb6259291a925ad6cfc48c00f09 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Wed, 11 May 2022 21:31:17 -0500 Subject: [PATCH] Update python testing as per zed cycle testing runtime In Zed cycle, we have dropped the python 3.6/3.7[1] testing and its support. Moving the py36 job to py38 based but to run on ubuntu focal as c8s does not seems to have py38. Also updating the python classifier also to reflect the same. [1] https://governance.openstack.org/tc/reference/runtimes/zed.html Change-Id: Ic26a360d2bb09fa6622d1acaa5021c5afbc70240 --- .zuul.yaml | 16 ++++++++-------- ...drop-python-3-6-and-3-7-fe2dc753e456b527.yaml | 6 ++++++ setup.cfg | 4 +--- tox.ini | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 releasenotes/notes/drop-python-3-6-and-3-7-fe2dc753e456b527.yaml diff --git a/.zuul.yaml b/.zuul.yaml index c9e5b5087..0ae7d9f11 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -21,13 +21,13 @@ - ^cinderclient/tests/unit/.*$ - job: - name: python-cinderclient-functional-py36 + name: python-cinderclient-functional-py38 parent: python-cinderclient-functional-base - # need to specify a platform that has python 3.6 available - nodeset: devstack-single-node-centos-8-stream + # need to specify a platform that has python 3.8 available + nodeset: openstack-single-node-focal vars: - python_version: 3.6 - tox_envlist: functional-py36 + python_version: 3.8 + tox_envlist: functional-py38 - job: name: python-cinderclient-functional-py39 @@ -42,16 +42,16 @@ - check-requirements - lib-forward-testing-python3 - openstack-cover-jobs - - openstack-python3-yoga-jobs + - openstack-python3-zed-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 check: jobs: - - python-cinderclient-functional-py36 + - python-cinderclient-functional-py38 - python-cinderclient-functional-py39 - openstack-tox-pylint: voting: false gate: jobs: - - python-cinderclient-functional-py36 + - python-cinderclient-functional-py38 - python-cinderclient-functional-py39 diff --git a/releasenotes/notes/drop-python-3-6-and-3-7-fe2dc753e456b527.yaml b/releasenotes/notes/drop-python-3-6-and-3-7-fe2dc753e456b527.yaml new file mode 100644 index 000000000..5915647ac --- /dev/null +++ b/releasenotes/notes/drop-python-3-6-and-3-7-fe2dc753e456b527.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Python 3.6 & 3.7 support has been dropped. The minimum version of Python now + supported is Python 3.8. + diff --git a/setup.cfg b/setup.cfg index aedf182da..7b3c7982f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,7 @@ description_file = author = OpenStack author_email = openstack-discuss@lists.openstack.org home_page = https://docs.openstack.org/python-cinderclient/latest/ -python_requires = >=3.6 +python_requires = >=3.8 classifier = Development Status :: 5 - Production/Stable Environment :: Console @@ -18,8 +18,6 @@ classifier = Programming Language :: Python Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 diff --git a/tox.ini b/tox.ini index 63af14450..cda4d2673 100644 --- a/tox.ini +++ b/tox.ini @@ -98,7 +98,7 @@ setenv = # TLS (https) server certificate. passenv = OS_* -[testenv:functional-py36] +[testenv:functional-py38] deps = {[testenv:functional]deps} setenv = {[testenv:functional]setenv} passenv = {[testenv:functional]passenv}