From 569296d38995bf46ac2215954f46acc16a366688 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 7 Oct 2023 11:58:12 +0900 Subject: [PATCH] Require pytz only in Python < 3.9 ptyz is no longer required in Python >= 3.9 in favor of zoneinfo. Also tzdata was added to requirements as a runtime dependency of zoneinfo, which is only available in Python >= 3.9 and is not required in Python 3.8. Depends-on: https://review.opendev.org/c/openstack/requirements/+/901119 Change-Id: I9ab39a8d394c7063a33c699d277c7f4ed2151767 --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 57158f76..be2c3666 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,11 +5,11 @@ iso8601>=0.1.11 # MIT oslo.i18n>=3.15.3 # Apache-2.0 -pytz>=2013.6 # MIT +pytz>=2013.6;python_version<"3.9" # MIT netaddr>=0.7.18 # BSD netifaces>=0.10.4 # MIT debtcollector>=1.2.0 # Apache-2.0 pyparsing>=2.1.0 # MIT packaging>=20.4 # BSD -tzdata>=2022.4 # MIT +tzdata>=2022.4;python_version>="3.9" # MIT PyYAML>=3.13 # MIT