Skip to content

fix(deps): cap pydantic-ai in examples extra below 2.0 - #195

Merged
shashi-stackone merged 2 commits into
mainfrom
fix/cap-pydantic-ai-major
Jul 28, 2026
Merged

fix(deps): cap pydantic-ai in examples extra below 2.0#195
shashi-stackone merged 2 commits into
mainfrom
fix/cap-pydantic-ai-major

Conversation

@shashi-stackone

@shashi-stackone shashi-stackone commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Cap pydantic-ai in the examples optional-dependency group at <2.0.0, matching the existing pydantic-ai-slim>=1.83.0,<2.0.0 cap on the pydantic-ai extra.
  • Regenerate uv.lock to record the narrowed specifier. Resolution is unchanged (still pydantic-ai 1.83.0) — only the declared constraint moves. CI runs uv sync --all-extras --locked, which hard-fails on a lockfile whose constraints have drifted from pyproject.toml.
  • Closes an inconsistency left from fix(deps): Avoid DOA-pin mcp below 2.0.0 ahead of upstream MCP v2 release #194, which capped mcp at <2.0.0 but left the examples extra unbounded against a breaking pydantic-ai v2.

PR created for the release fix

#194 merged with a squash subject that had no conventional-commit type prefix, so release-please parsed zero releasable commits and never opened a release PR. This PR's fix: prefix restores the release train; the resulting 2.10.1 will also carry #194's mcp<2.0.0 pin out to PyPI.


Summary by cubic

Cap pydantic-ai in the examples extra to <2.0.0 and update uv.lock to match. This aligns with the pydantic-ai extra, avoids v2 breakage, and keeps CI lockfile checks passing.

Written for commit 1a5a101. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings July 28, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Caps pydantic-ai in the examples optional dependency group to <2.0.0 to prevent accidental upgrades to a breaking v2 release and to keep pyproject.toml consistent with the checked-in uv.lock metadata for locked installs.

Changes:

  • Update pyproject.toml examples extra to pydantic-ai>=1.83.0,<2.0.0.
  • Regenerate uv.lock so the recorded requires-dist constraint for the examples marker matches the updated specifier.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Caps pydantic-ai under the examples optional-dependencies group to <2.0.0.
uv.lock Updates the locked metadata constraint for pydantic-ai under extra == 'examples' to include <2.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Auto-approved: Caps pydantic-ai below v2 to prevent breakage, matching existing constraints; no behavioral or operational change.

Re-trigger cubic

@shashi-stackone
shashi-stackone merged commit 66f3f2b into main Jul 28, 2026
17 checks passed
@shashi-stackone
shashi-stackone deleted the fix/cap-pydantic-ai-major branch July 28, 2026 14:41
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.

2 participants