← Back to issue list

packaging: pin Pydantic to <2.0.0

View original Github issue

Metadata

Project
craft-parts
Number
#488
Type
pull request
State
merged
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #488 via dbd1b89c, pinning Pydantic <2.0.0 so craft-parts remained compatible until Pydantic 2 support was completed.

Resolution: closed resolved

Reason: PR #488 was merged as commit dbd1b89c and changed packaging to constrain Pydantic below 2.0.0. This resolved the immediate breakage caused by the new major release.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Pydantic 2.0.0 has recently been released and craft_parts needs work to support it. - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #488 via dbd1b89c, pinning Pydantic <2.0.0 so craft-parts remained compatible until Pydantic 2 support was completed.
stealth/space-bunny-alpha — closed resolved Merged PR #488 pinned Pydantic below 2.0 in commit dbd1b89c, temporarily preserving compatibility until craft-parts supports Pydantic 2.
qwen/qwen3.6-35b-a3b — — Merged dependency update pinning Pydantic to <2.0.0 to prevent craft_parts compatibility issues until full v2 support is added. Approved by a reviewer and passed CI.
qwen3.6-35b-a3b-mtp-q6 — — Merged to pin Pydantic to versions below 2.0.0, maintaining craft_parts compatibility until full Pydantic 2 support is implemented.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/craft-parts#771 (confidence 96%)

    Commit 6b155294 later migrated craft-parts to Pydantic 2 and replaced the temporary constraint.

Related issues

Issue Project State Summary Similarity
#347 requirements: freeze pydantic<2.0 craft-providers merged Merged #347 (commit ee9f32d), pinning pydantic<2.0 to avoid test failures caused by Pydantic v2 incompatibilities.
76%
#159 setup: pin pydantic-yaml and pydantic versions (CRAFT-718) craft-parts merged Merged in #159 via 0226365f, pinning pydantic-yaml 0.4.2 and pydantic 1.9.0 to restore compatibility and fix #158.
75%
#765 Update dependencies, specially unpinning pydantic now that craft-parts is up to it charmcraft merged Merged into main as 45e0e48c (change c3b28ffa), updating dependencies and unpinning pydantic after craft-parts compatibility was released in 1.1.2.
74%
#728 Migrate to Pydantic 2.x craft-parts closed Pydantic 2 migration landed in canonical/craft-parts#771 via commit 6b155294, followed by cleanup in #778; craft-parts now requires pydantic>=2.0.0.
74%
#160 release: craft-parts 1.1.1 craft-parts merged Merged craft-parts 1.1.1 in #160, pinning pydantic and pydantic-yaml dependency versions.
73%
#89 deps: freeze pydantic <2.0 craft-store merged Merged PR #89 as commit 86e3c52, pinning pydantic below 2.0 to prevent further breakage; remaining test failures were attributed to #88.
73%
#451 build(deps): bump pydantic to v2 craft-providers merged Merged PR #451 upgraded craft-providers to Pydantic v2 for 2.0; current project metadata requires pydantic~=2.4.
73%
#483 upgrade to pydantic 2.x craft-providers closed PR #483 (a one-line pyproject.toml bump to pydantic>=2) was closed unmerged by its author as a duplicate; maintainers pointed to craft-providers#451, which landed as commit f380a9e and set pydantic~=2.4.
70%