From 1a1e6666258ca6c278b5ae417d6bd6f5851420d6 Mon Sep 17 00:00:00 2001 From: chengyongru Date: Tue, 14 Jul 2026 17:17:57 +0800 Subject: [PATCH] fix: install timezone data on Windows --- pyproject.toml | 1 + tests/channels/test_channel_plugins.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 80864e57..15863eb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ dependencies = [ "pyyaml>=6.0,<7.0.0", "filelock>=3.25.2", "packaging>=24.0", + "tzdata>=2025.2; sys_platform == 'win32'", "defusedxml>=0.7.1,<1.0.0", "pypdf>=5.0.0,<6.0.0", "python-docx>=1.1.0,<2.0.0", diff --git a/tests/channels/test_channel_plugins.py b/tests/channels/test_channel_plugins.py index f2d64666..345ac6c0 100644 --- a/tests/channels/test_channel_plugins.py +++ b/tests/channels/test_channel_plugins.py @@ -1552,6 +1552,7 @@ def test_optional_dependency_metadata_for_enable(): ): assert not any(dep.startswith(dep_name) for dep in required) for dependency in ( + "tzdata>=2025.2; sys_platform == 'win32'", "defusedxml>=0.7.1,<1.0.0", "pypdf>=5.0.0,<6.0.0", "python-docx>=1.1.0,<2.0.0",