Skip to content

fix: widen pydantic-core upper bound to <3.0.0#723

Open
gavin913-lss wants to merge 1 commit into
deepgram:mainfrom
gavin913-lss:fix/pydantic-core-upper-bound
Open

fix: widen pydantic-core upper bound to <3.0.0#723
gavin913-lss wants to merge 1 commit into
deepgram:mainfrom
gavin913-lss:fix/pydantic-core-upper-bound

Conversation

@gavin913-lss
Copy link
Copy Markdown

Problem

deepgram-sdk pins pydantic-core>=2.18.2,<2.44.0, but pydantic>=2.13.0 requires pydantic-core==2.46.3. This makes it impossible to install deepgram-sdk alongside modern pydantic:

Because pydantic==2.13.3 depends on pydantic-core==2.46.3 and deepgram-sdk==7.0.0
depends on pydantic-core>=2.18.2,<2.44.0, we can conclude that deepgram-sdk==7.0.0 and
pydantic==2.13.3 are incompatible.

Fixes #701

Fix

Widen the pydantic-core upper bound from <2.44.0 to <3.0.0.

pydantic-core follows calver and the validation/serialization API is stable within major versions. The lower bound >=2.18.2 is preserved to maintain backward compatibility.

Testing

Verified that pydantic==2.13.3 + pydantic-core==2.46.3 satisfies the new constraint >=2.18.2,<3.0.0.

pydantic 2.13.3 requires pydantic-core==2.46.3, but the current
constraint pins pydantic-core<2.44.0, making deepgram-sdk
uninstallable alongside pydantic>=2.13.0.

Widen the upper bound to <3.0.0 since pydantic-core follows
calver and the API is stable within major versions.

Fixes deepgram#701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: pydantic-core = ">=2.18.2,<2.44.0"

1 participant