OpenStack library utils
Go to file
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
doc Remove unnecessary unicode prefixes 2022-04-22 01:28:16 +00:00
oslo_utils Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:13:44 +01:00
releasenotes Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:13:44 +01:00
tools Ussuri+ is python3 only and update python to python3 2021-05-06 10:22:37 +08:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:23:20 -04:00
.gitignore Ignore releasenote cache within git untracked files 2019-12-20 11:17:33 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:27:54 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-23 13:10:25 +01:00
.stestr.conf Switch to stestr 2018-07-04 08:28:15 +07:00
.zuul.yaml Use the new openstack-python3-jobs template 2023-03-23 17:13:44 +01:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:34:51 +02:00
HACKING.rst Update hacking version 2019-02-13 14:28:34 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-23 05:35:56 +00:00
bindep.txt bindep: Use Python 3 devel packages 2022-05-26 17:54:28 +01:00
requirements.txt Implement zoneinfo support to drop dependency to pytz 2023-03-23 17:13:44 +01:00
setup.cfg Drop python3.6/3.7 support in testing runtime 2022-05-05 16:00:20 +02:00
setup.py remove outdated header 2020-02-10 18:35:07 +01:00
test-requirements.txt Adding pre-commit 2020-09-09 13:38:50 +02:00
tox.ini Changed minversion in tox to 3.18.0 2021-08-12 01:19:20 +00:00

README.rst

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.