File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ classifiers = [
20
20
21
21
dependencies = [
22
22
" python-dateutil>=2.6" ,
23
- " tzdata>=2020.1" ,
24
23
' backports.zoneinfo>=0.2.1; python_version < "3.9"' ,
25
24
' time-machine>=2.6.0; implementation_name != "pypy"' ,
26
25
' importlib-resources>=5.9.0; python_version < "3.9"'
@@ -50,7 +49,6 @@ python = ">=3.8"
50
49
python-dateutil = " >=2.6"
51
50
"backports.zoneinfo" = { version = " >=0.2.1" , python = " <3.9" }
52
51
time-machine = { version = " >=2.6.0" , markers = " implementation_name != 'pypy'" , optional = true }
53
- tzdata = " >=2020.1"
54
52
importlib-resources = { version = " >=5.9.0" , python = " <3.9" }
55
53
56
54
[tool .poetry .group .test .dependencies ]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from pathlib import Path
4
- from typing import cast
5
-
6
3
from pendulum .tz .local_timezone import get_local_timezone
7
4
from pendulum .tz .local_timezone import set_local_timezone
8
5
from pendulum .tz .local_timezone import test_local_timezone
9
6
from pendulum .tz .timezone import UTC
10
7
from pendulum .tz .timezone import FixedTimezone
11
8
from pendulum .tz .timezone import Timezone
12
- from pendulum .utils ._compat import resources
9
+ from pendulum .utils ._zoneinfo import available_timezones
13
10
14
11
15
12
PRE_TRANSITION = "pre"
@@ -25,8 +22,7 @@ def timezones() -> tuple[str, ...]:
25
22
global _timezones
26
23
27
24
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 ())
30
26
31
27
return _timezones
32
28
You can’t perform that action at this time.
0 commit comments