Remove Python 3.8 support

Python 3.8 is no longer be part of tested runtimes since 2024.2 and is
reaching its EOL soon. Bump the minimum supported python version to
clean up the logic for Python 3.8 compatibility.

Also declare Python 3.12 support because now it's part of the tested
runtimes.

Change-Id: Iec518ada66b5891a50834b574a5ccbe0965e3933
This commit is contained in:
Takashi Kajinami 2024-10-04 01:35:58 +09:00
parent 8928f45402
commit e887eca2ff
5 changed files with 9 additions and 18 deletions

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Support for Python 3.8 has been removed. Now the minimum python version
supported is 3.9 .

View File

@ -10,4 +10,3 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
requests>=2.14.2 # Apache-2.0
python-dateutil>=2.7.0 # BSD
stevedore>=1.29.0 # Apache-2.0
importlib_resources>=1.3; python_version<'3.9' # Apache-2.0

View File

@ -6,7 +6,7 @@ description_file =
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/sushy/latest/
python_requires = >=3.8
python_requires = >=3.9
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
@ -17,10 +17,10 @@ classifier =
Programming Language :: Python :: Implementation :: CPython
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
Programming Language :: Python :: 3.12
[files]
packages =

View File

@ -13,17 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
from importlib import resources
import logging
import os
try:
from importlib import resources
if not hasattr(resources, "files"):
import importlib_resources as resources
except ImportError:
import importlib_resources as resources
import requests
from sushy import auth as sushy_auth

View File

@ -17,18 +17,12 @@ import abc
import collections
import copy
import enum
from importlib import resources
import io
import json
import logging
import zipfile
try:
from importlib import resources
if not hasattr(resources, 'files'):
import importlib_resources as resources
except ImportError:
import importlib_resources as resources
from sushy import exceptions
from sushy.resources import constants
from sushy.resources import oem