oslo.utils/oslo_utils
Hervé Beraud 7d9fda625f Implement zoneinfo support to drop dependency to pytz
Zoneinfo was introduced within python 3.9.

The support of pytz will be removed within RHEL 10 [1].

2023.2 (bobcat) will move our testing runtime to py3.9 and py3.10
so we want to see pytz removed within this series.

tzdata is required at runtime in our gates, because, by default,
zoneinfo uses the system’s time zone data if available; if no system
time zone data is available, the library will fall back to using the
first-party tzdata package available on PyPI. Apparently our gates have no
time zone data available nor tzdata installed by default because we get the
following error without tzdata installed [3]:
`ModuleNotFoundError: No module named 'tzdata'

So I prefer to add tzdata in our requirements to avoid runtime failure
related to time zone and ensure that time zone are always available.

[1] https://issues.redhat.com/browse/RHEL-219
[2] https://review.opendev.org/c/openstack/governance/+/872232
[3] https://zuul.opendev.org/t/openstack/build/0a1576775e894b09bc31269fea00ba03/log/job-output.txt#1445`

Depends-on: https://review.opendev.org/c/openstack/requirements/+/875854
Change-Id: I1f88bdadc68bfa726eac1da1c5824c1ed352ad98
2023-03-23 17:13:44 +01:00
..
locale Imported Translations from Zanata 2018-03-01 06:07:18 +00:00
tests [imageutils] Fix __str__ for QemuImgInfo 2022-11-11 16:18:15 -05:00
__init__.py Move files out of the namespace package 2015-01-06 17:07:36 -05:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:34:11 +08:00
dictutils.py Address nits from six removal patch 2021-02-01 10:47:54 +00:00
encodeutils.py Remove all usage of six library 2020-10-09 19:20:51 +08:00
eventletutils.py eventletutils: Optimise EventletEvent.clear() 2019-01-25 14:56:57 +13:00
excutils.py Remove all usage of six library 2020-10-09 19:20:51 +08:00
fileutils.py Add util methods for checking json and yaml formatted file 2020-08-26 09:39:02 -05:00
fixture.py Modify UUID sentinel to support keystone-like UUIDs 2021-08-03 13:13:58 +02:00
imageutils.py [imageutils] Fix __str__ for QemuImgInfo 2022-11-11 16:18:15 -05:00
importutils.py Make method import_versioned_module work 2016-10-12 16:51:52 +08:00
netutils.py Use LOG.warning instead of deprecated LOG.warn 2021-11-29 18:21:40 +09:00
reflection.py Address nits from six removal patch 2021-02-01 10:47:54 +00:00
secretutils.py Add function to encapsule md5 for FIPS systems 2020-09-16 16:47:07 -04:00
specs_matcher.py Merge "Clean imports in code" 2018-02-09 12:55:21 +00:00
strutils.py Merge "strutils: Defer import of pyparsing" 2022-05-31 14:54:43 +00:00
timeutils.py Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:13:44 +01:00
units.py Write document for each unit of oslo_utils.utils 2015-10-15 16:14:14 +02:00
uuidutils.py Add toggle 'dashed' to 'generate_uuid' function 2016-12-06 02:38:08 -05:00
versionutils.py Remove all usage of six library 2020-10-09 19:20:51 +08:00