Don't require python3-tzdata
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Mon, 21 Oct 2024 18:43:11 +0000 (19:43 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 21 Oct 2024 18:43:11 +0000 (19:43 +0100)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

pandas/_libs/tslibs/timezones.pyx
pyproject.toml

index 10e5790dd1c35237482fd726f80b974f4bf7c7ba..19934045a4b8191022b88d79692dd106e37d66cc 100644 (file)
@@ -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
 
index c83a2669b7e87efd65599a75d25c958b21305fb6..af16def834ed4876ca1659e1cf2dff99ca676578 100644 (file)
@@ -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',