File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
doc/source/getting_started Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -273,11 +273,15 @@ the method requiring that dependency is called.
273
273
Timezones
274
274
^^^^^^^^^
275
275
276
- ========================= ================== =============================================================
277
- Dependency Minimum Version Notes
278
- ========================= ================== =============================================================
279
- tzdata 2022.1 Allows the use of ``zoneinfo `` timezones with pandas
280
- ========================= ================== =============================================================
276
+ ========================= ========================= =============================================================
277
+ Dependency Minimum Version Notes
278
+ ========================= ========================= =============================================================
279
+ tzdata 2022.1(pypi)/ Allows the use of ``zoneinfo `` timezones with pandas.
280
+ 2022a(for system tzdata) **Note **: You only need to install the pypi package, if your
281
+ system does not already provide the IANA tz database.
282
+ However, the minimum tzdata version still applies, even if it
283
+ is not enforced through an error.
284
+ ========================= ========================= =============================================================
281
285
282
286
Visualization
283
287
^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ dependencies:
48
48
- scipy
49
49
- sqlalchemy
50
50
- tabulate
51
- - tzdata>=2022.1
51
+ - tzdata>=2022a
52
52
- xarray
53
53
- xlrd
54
54
- xlsxwriter
Original file line number Diff line number Diff line change 9
9
# py39+
10
10
import zoneinfo
11
11
from zoneinfo import ZoneInfo
12
- import_optional_dependency(" tzdata" , errors = " raise" , min_version = " 2022.1" )
13
12
except ImportError :
14
13
zoneinfo = None
15
14
ZoneInfo = None
@@ -70,6 +69,9 @@ cdef inline bint is_utc_zoneinfo(tzinfo tz):
70
69
utc_zoneinfo = ZoneInfo(" UTC" )
71
70
except zoneinfo.ZoneInfoNotFoundError:
72
71
return False
72
+ # Warn if tzdata is too old, even if there is a system tzdata to alert
73
+ # users about the mismatch between local/system tzdata
74
+ import_optional_dependency(" tzdata" , errors = " warn" , min_version = " 2022.1" )
73
75
74
76
return tz is utc_zoneinfo
75
77
Original file line number Diff line number Diff line change 21
21
import yaml
22
22
23
23
EXCLUDE = {"python" , "c-compiler" , "cxx-compiler" }
24
+ REMAP_VERSION = {"tzdata" : "2022.1" }
24
25
RENAME = {"pytables" : "tables" , "geopandas-base" : "geopandas" , "pytorch" : "torch" }
25
26
26
27
@@ -41,7 +42,8 @@ def conda_package_to_pip(package: str):
41
42
pkg , version = package .split (compare )
42
43
if pkg in EXCLUDE :
43
44
return
44
-
45
+ if pkg in REMAP_VERSION :
46
+ return "" .join ((pkg , compare , REMAP_VERSION [pkg ]))
45
47
if pkg in RENAME :
46
48
return "" .join ((RENAME [pkg ], compare , version ))
47
49
You can’t perform that action at this time.
0 commit comments