Skip to content

Commit 3ca5add

Browse files
committed
fix(deps): mark the msgspec and pydantic floors
msgspec >=0.18 resolved to a release whose can_decode disagrees with decode on Annotated types; 0.18.5 is the first that agrees. msgspec ships no cp314 wheel before 0.20 and pydantic-core none before pydantic 2.12, so both are marked for 3.14 rather than raised for every interpreter. Closes #132
1 parent e9b014e commit 3ca5add

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎pyproject.toml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,17 @@ dependencies = [
3838
]
3939

4040
[project.optional-dependencies]
41-
pydantic = ["pydantic>=2.0,<3.0"]
42-
msgspec = ["msgspec>=0.18"]
41+
pydantic = [
42+
"pydantic>=2.0,<3.0; python_version < '3.14'",
43+
# pydantic-core ships no cp314 wheel before pydantic 2.12.
44+
"pydantic>=2.12,<3.0; python_version >= '3.14'",
45+
]
46+
msgspec = [
47+
# 0.18.5 is the first release whose can_decode agrees with decode on Annotated types;
48+
# 0.20 is the first with a cp314 wheel.
49+
"msgspec>=0.18.5; python_version < '3.14'",
50+
"msgspec>=0.20; python_version >= '3.14'",
51+
]
4352
otel = ["opentelemetry-api>=1.20"]
4453
all = ["httpware[pydantic,msgspec,otel]"]
4554

0 commit comments

Comments
 (0)