Skip to content

Commit 19df15c

Browse files
committed
fix env files
1 parent eba2fb9 commit 19df15c

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies:
4747
- scipy
4848
- sqlalchemy
4949
- tabulate
50-
- tzdata>=2022.1
50+
- tzdata>=2022a
5151
- xarray
5252
- xlrd
5353
- xlsxwriter

ci/deps/actions-38-minimum_versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies:
4949
- scipy=1.7.1
5050
- sqlalchemy=1.4.16
5151
- tabulate=0.8.9
52-
- tzdata=2022.1
52+
- tzdata=2022a
5353
- xarray=0.19.0
5454
- xlrd=2.0.1
5555
- xlsxwriter=1.4.3

ci/deps/actions-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies:
4747
- scipy
4848
- sqlalchemy
4949
- tabulate
50-
- tzdata>=2022.1
50+
- tzdata>=2022a
5151
- xarray
5252
- xlrd
5353
- xlsxwriter

scripts/validate_min_versions_in_sync.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
pathlib.Path("ci/deps").absolute().glob("actions-*-minimum_versions.yaml")
2222
)
2323
CODE_PATH = pathlib.Path("pandas/compat/_optional.py").resolve()
24+
EXCLUDE_DEPS = {"tzdata"}
2425
# pandas package is not available
2526
# in pre-commit environment
2627
sys.path.append("pandas/compat")
@@ -34,6 +35,8 @@
3435
def get_versions_from_code() -> dict[str, str]:
3536
install_map = _optional.INSTALL_MAPPING
3637
versions = _optional.VERSIONS
38+
for item in EXCLUDE_DEPS:
39+
versions.pop(item)
3740
return {
3841
install_map.get(k, k).casefold(): v
3942
for k, v in versions.items()
@@ -55,6 +58,8 @@ def get_versions_from_ci(content: list[str]) -> tuple[dict[str, str], dict[str,
5558
elif seen_required and line.strip():
5659
package, version = line.strip().split("=")
5760
package = package[2:]
61+
if package in EXCLUDE_DEPS:
62+
continue
5863
if not seen_optional:
5964
required_deps[package] = version
6065
else:

0 commit comments

Comments
 (0)