From b5610537791ad514e0c7f6efddd9a26e99b88427 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 30 Sep 2024 20:20:14 +0900 Subject: [PATCH] Remove Python 3.8 support Python 3.8 is no longer part of the tested runtimes for 2024.2[1] because its EOL is coming soon. [1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html This allows us to replace md5 method from oslo.utils, which is being deprecated now[2]. [2] https://review.opendev.org/c/openstack/oslo.utils/+/930879 Change-Id: I09ba9e8762e3fdbf4af63f270cb1f96b989fdf1a --- manila/ssh_utils.py | 4 ++-- releasenotes/notes/remove-py38-5c619aee267bc1f3.yaml | 5 +++++ setup.cfg | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/remove-py38-5c619aee267bc1f3.yaml diff --git a/manila/ssh_utils.py b/manila/ssh_utils.py index 6a897d680b..1b2ac74afc 100644 --- a/manila/ssh_utils.py +++ b/manila/ssh_utils.py @@ -12,13 +12,13 @@ """Ssh utilities.""" +import hashlib import logging import os from eventlet import pools from oslo_config import cfg from oslo_log import log -from oslo_utils.secretutils import md5 from manila import exception from manila.i18n import _ @@ -44,7 +44,7 @@ def get_fingerprint(self): TODO(carloss) Remove this when paramiko is patched. See https://github.com/paramiko/paramiko/pull/1928 """ - return md5(self.asbytes(), usedforsecurity=False).digest() + return hashlib.md5(self.asbytes(), usedforsecurity=False).digest() if paramiko is None: diff --git a/releasenotes/notes/remove-py38-5c619aee267bc1f3.yaml b/releasenotes/notes/remove-py38-5c619aee267bc1f3.yaml new file mode 100644 index 0000000000..0403163605 --- /dev/null +++ b/releasenotes/notes/remove-py38-5c619aee267bc1f3.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Support for Python 3.8 has been removed. Now the minimum python version + supported is 3.9 . diff --git a/setup.cfg b/setup.cfg index ab29d1b6a7..aef776cb70 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/manila/latest/ -python_requires = >=3.8 +python_requires = >=3.9 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -16,7 +16,6 @@ classifier = Programming Language :: Python Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11