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