From 2fcef83ef8db1b625801be83c684b14c09b9d82c Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 20 Sep 2026 17:21:44 +0300 Subject: [PATCH] fix(deps): declare pydantic's floor for 3.14 aiogram pulls pydantic transitively, and pydantic-core ships no cp314 wheel before pydantic 2.12, so the lowest declared combination had no installable pydantic on 3.14. Declared directly rather than reached sideways by raising aiogram, which names the actual constraint. Closes #28 --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0489ca5..0af877c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,13 @@ classifiers = [ "Typing :: Typed", "Topic :: Software Development :: Libraries", ] -dependencies = ["aiogram>=3.2,<4", "modern-di>=3,<4"] +dependencies = [ + "aiogram>=3.2,<4", + # Not imported here: aiogram pulls pydantic, and pydantic-core ships no cp314 wheel before + # pydantic 2.12, so the lowest declared combination has no installable pydantic on 3.14. + "pydantic>=2.12; python_version >= '3.14'", + "modern-di>=3,<4", +] version = "0" [project.urls]