From c39b9bd7fdc66e684567224f9cd64634c82d9670 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 8 May 2025 12:06:02 +0100 Subject: [PATCH] Drop support for Python 3.8, 3.9 Python 3.8 was untested for some time. Python 3.9 is no longer tested in Flamingo. We also update our tox.ini to reflect versions we're going to see in the wild nowadays. Change-Id: I5a7da653611aaaf761f3290f577b85df5a0e6bb2 Signed-off-by: Stephen Finucane --- .../notes/drop-python-38-39-deab0b81006bae48.yaml | 5 +++++ setup.cfg | 9 ++++++--- tox.ini | 5 +---- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/drop-python-38-39-deab0b81006bae48.yaml diff --git a/releasenotes/notes/drop-python-38-39-deab0b81006bae48.yaml b/releasenotes/notes/drop-python-38-39-deab0b81006bae48.yaml new file mode 100644 index 00000000..158d764a --- /dev/null +++ b/releasenotes/notes/drop-python-38-39-deab0b81006bae48.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Support for Python 3.8 and Python 3.9 has been removed. The minimum + supported version of Python is now Python 3.10. diff --git a/setup.cfg b/setup.cfg index 4bb32a0c..bf5050a9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,8 +5,10 @@ description_file = README.rst author = OpenStack author_email = openstack-discuss@lists.openstack.org -home_page = https://docs.openstack.org/masakari/latest/ +url = https://docs.openstack.org/masakari/latest/ +python_requires = >=3.10 classifier = + Development Status :: 5 - Production/Stable Environment :: OpenStack Intended Audience :: Information Technology Intended Audience :: System Administrators @@ -14,10 +16,11 @@ classifier = Operating System :: POSIX :: Linux Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: Implementation :: CPython [files] data_files = diff --git a/tox.ini b/tox.ini index 404e89d2..81a16658 100644 --- a/tox.ini +++ b/tox.ini @@ -1,15 +1,12 @@ [tox] -minversion = 3.18.0 +minversion = 4.6.0 envlist = pep8,py3 [testenv] usedevelop = True setenv = - VIRTUAL_ENV={envdir} LANGUAGE=en_US LC_ALL=en_US.utf-8 -# TODO(stephenfin): Remove once we bump our upper-constraint to SQLAlchemy 2.0 - SQLALCHEMY_WARN_20=1 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt