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 Change-Id: I96fd8e6bec846065c9dc73d2f3af5899099461a4
This commit is contained in:
parent
d37a161b7c
commit
fa2ecb269a
@ -22,15 +22,10 @@ import datetime
|
|||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
import zoneinfo
|
||||||
|
|
||||||
import iso8601
|
import iso8601
|
||||||
|
|
||||||
try:
|
|
||||||
import zoneinfo
|
|
||||||
except ImportError:
|
|
||||||
# zoneinfo is available in Python >= 3.9
|
|
||||||
import pytz
|
|
||||||
zoneinfo = None
|
|
||||||
|
|
||||||
from oslo_utils import reflection
|
from oslo_utils import reflection
|
||||||
|
|
||||||
@ -233,13 +228,8 @@ def unmarshall_time(tyme):
|
|||||||
if tzname:
|
if tzname:
|
||||||
# Need to handle either iso8601 or python UTC format
|
# Need to handle either iso8601 or python UTC format
|
||||||
tzname = 'UTC' if tzname == 'UTC+00:00' else tzname
|
tzname = 'UTC' if tzname == 'UTC+00:00' else tzname
|
||||||
|
tzinfo = zoneinfo.ZoneInfo(tzname)
|
||||||
if zoneinfo:
|
dt = dt.replace(tzinfo=tzinfo)
|
||||||
tzinfo = zoneinfo.ZoneInfo(tzname)
|
|
||||||
dt = dt.replace(tzinfo=tzinfo)
|
|
||||||
else:
|
|
||||||
tzinfo = pytz.timezone(tzname)
|
|
||||||
dt = tzinfo.localize(dt)
|
|
||||||
|
|
||||||
return dt
|
return dt
|
||||||
|
|
||||||
|
5
releasenotes/notes/remove-py38-a22bb6c463f92868.yaml
Normal file
5
releasenotes/notes/remove-py38-a22bb6c463f92868.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Support for Python 3.8 has been removed. Now the minimum python version
|
||||||
|
supported is 3.9 .
|
@ -5,11 +5,10 @@
|
|||||||
|
|
||||||
iso8601>=0.1.11 # MIT
|
iso8601>=0.1.11 # MIT
|
||||||
oslo.i18n>=3.15.3 # Apache-2.0
|
oslo.i18n>=3.15.3 # Apache-2.0
|
||||||
pytz>=2013.6;python_version<"3.9" # MIT
|
|
||||||
netaddr>=0.10.0 # BSD
|
netaddr>=0.10.0 # BSD
|
||||||
netifaces>=0.10.4 # MIT
|
netifaces>=0.10.4 # MIT
|
||||||
debtcollector>=1.2.0 # Apache-2.0
|
debtcollector>=1.2.0 # Apache-2.0
|
||||||
pyparsing>=2.1.0 # MIT
|
pyparsing>=2.1.0 # MIT
|
||||||
packaging>=20.4 # BSD
|
packaging>=20.4 # BSD
|
||||||
tzdata>=2022.4;python_version>="3.9" # MIT
|
tzdata>=2022.4 # MIT
|
||||||
PyYAML>=3.13 # MIT
|
PyYAML>=3.13 # MIT
|
||||||
|
@ -6,7 +6,7 @@ description_file =
|
|||||||
author = OpenStack
|
author = OpenStack
|
||||||
author_email = openstack-discuss@lists.openstack.org
|
author_email = openstack-discuss@lists.openstack.org
|
||||||
home_page = https://docs.openstack.org/oslo.utils/latest/
|
home_page = https://docs.openstack.org/oslo.utils/latest/
|
||||||
python_requires = >=3.8
|
python_requires = >=3.9
|
||||||
classifier =
|
classifier =
|
||||||
Environment :: OpenStack
|
Environment :: OpenStack
|
||||||
Intended Audience :: Information Technology
|
Intended Audience :: Information Technology
|
||||||
@ -15,7 +15,6 @@ classifier =
|
|||||||
Operating System :: POSIX :: Linux
|
Operating System :: POSIX :: Linux
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.8
|
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
Programming Language :: Python :: 3.10
|
Programming Language :: Python :: 3.10
|
||||||
Programming Language :: Python :: 3.11
|
Programming Language :: Python :: 3.11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user