From 3f3bbaf82106dea2a37b1e690e7ed424d5a42058 Mon Sep 17 00:00:00 2001 From: Roja Reddy Sareddy Date: Tue, 29 Sep 2026 16:19:24 -0700 Subject: [PATCH] fix(train): bound pydantic to <3.0.0 for cross-package consistency sagemaker-train declared pydantic>=2.0.0 with no upper bound, while sagemaker-core declares pydantic>=2.0.0,<3.0.0. Installing sagemaker-train on its own could therefore resolve a different pydantic major than the rest of the SDK allows. Align the bound so all sub-packages agree on the pydantic major, letting pip resolve a single consistent pydantic (and its matching, pydantic-managed pydantic-core). Note: pydantic-core is intentionally not pinned; pydantic pins its own exact pydantic-core, and pinning it here would fight that mechanism. Relates-to #5652 --- sagemaker-train/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sagemaker-train/pyproject.toml b/sagemaker-train/pyproject.toml index a78dadfac1..703bc738fe 100644 --- a/sagemaker-train/pyproject.toml +++ b/sagemaker-train/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "mlflow>=3.0.0,<4.0.0", "nest_asyncio>=1.5.0", "requests>=2.28.0", - "pydantic>=2.0.0", + "pydantic>=2.0.0,<3.0.0", ] [project.urls]