oslo.serialization/oslo_serialization
Hervé Beraud a326ec5eea 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: I8d87d54f6f5ded8caee6cb780bacb39afea0fea1
2023-03-23 17:17:59 +01:00
..
serializer Drop use of six 2020-03-02 10:10:22 +00:00
tests Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:17:59 +01:00
__init__.py Move files out of the namespace package 2015-01-05 15:40:06 -05:00
base64.py Stop to use the __future__ module. 2020-06-02 20:40:37 +02:00
jsonutils.py Fix json to_primitive when using IO OBjects 2021-01-18 21:54:02 +00:00
msgpackutils.py Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:17:59 +01:00