File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ classifiers = [
2020
2121dependencies = [
2222 " python-dateutil>=2.6" ,
23- " tzdata>=2020.1" ,
2423 ' backports.zoneinfo>=0.2.1; python_version < "3.9"' ,
2524 ' time-machine>=2.6.0; implementation_name != "pypy"' ,
2625 ' importlib-resources>=5.9.0; python_version < "3.9"'
@@ -50,7 +49,6 @@ python = ">=3.8"
5049python-dateutil = " >=2.6"
5150"backports.zoneinfo" = { version = " >=0.2.1" , python = " <3.9" }
5251time-machine = { version = " >=2.6.0" , markers = " implementation_name != 'pypy'" , optional = true }
53- tzdata = " >=2020.1"
5452importlib-resources = { version = " >=5.9.0" , python = " <3.9" }
5553
5654[tool .poetry .group .test .dependencies ]
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from pathlib import Path
4- from typing import cast
5-
63from pendulum .tz .local_timezone import get_local_timezone
74from pendulum .tz .local_timezone import set_local_timezone
85from pendulum .tz .local_timezone import test_local_timezone
96from pendulum .tz .timezone import UTC
107from pendulum .tz .timezone import FixedTimezone
118from pendulum .tz .timezone import Timezone
12- from pendulum .utils ._compat import resources
9+ from pendulum .utils ._zoneinfo import available_timezones
1310
1411
1512PRE_TRANSITION = "pre"
@@ -25,8 +22,7 @@ def timezones() -> tuple[str, ...]:
2522 global _timezones
2623
2724 if _timezones is None :
28- with cast (Path , resources .files ("tzdata" ).joinpath ("zones" )).open () as f :
29- _timezones = tuple (tz .strip () for tz in f .readlines ())
25+ _timezones = tuple (available_timezones ())
3026
3127 return _timezones
3228
You can’t perform that action at this time.
0 commit comments