Repository navigation
Commit 6714174
fix(train): bound pydantic to <3.0.0 for cross-package consistency (#6363)
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
Co-authored-by: Roja Reddy Sareddy <rsareddy@amazon.com>1 parent aeb29f1 commit 6714174
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments