From: Debian Science Team Date: Sun, 2 Feb 2025 11:17:13 +0000 (+0000) Subject: Don't require python3-tzdata X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ab9fdc705854aa86515be6d2518912178c4aecf;p=pandas.git Don't require python3-tzdata Author: Rebecca N. Palmer Bug-Debian: https://bugs.debian.org/1043968 Forwarded: no Gbp-Pq: Name accept_system_tzdata.patch --- diff --git a/pandas/_libs/tslibs/timezones.pyx b/pandas/_libs/tslibs/timezones.pyx index 10e5790d..19934045 100644 --- a/pandas/_libs/tslibs/timezones.pyx +++ b/pandas/_libs/tslibs/timezones.pyx @@ -65,9 +65,6 @@ cdef bint is_utc_zoneinfo(tzinfo tz): utc_zoneinfo = ZoneInfo("UTC") except zoneinfo.ZoneInfoNotFoundError: return False - # Warn if tzdata is too old, even if there is a system tzdata to alert - # users about the mismatch between local/system tzdata - import_optional_dependency("tzdata", errors="warn", min_version="2022.7") return tz is utc_zoneinfo diff --git a/pyproject.toml b/pyproject.toml index c83a2669..af16def8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,7 @@ dependencies = [ "numpy>=1.23.2; python_version=='3.11'", "numpy>=1.26.0; python_version>='3.12'", "python-dateutil>=2.8.2", - "pytz>=2020.1", - "tzdata>=2022.7" + "pytz>=2020.1" ] classifiers = [ 'Development Status :: 5 - Production/Stable',