← Back to issue list

Migrate to Pydantic 2.x

View original Github issue

Metadata

Project
craft-parts
Number
#728
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: PR #771 implemented the Pydantic 2 lift-and-shift migration in commit 6b155294. The project metadata now requires pydantic>=2.0.0, confirming the requested migration.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Migrate craft-parts to pydantic 2 ### Why it needs to get done Because.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed stale Pydantic 2.x migration was closed without recorded follow-up; the sole comment was an automated Jira sync creating CRAFT-2913.
qwen/qwen3.6-35b-a3b — — The Pydantic 2 migration request was closed without a linked pull request or technical resolution. Activity stopped after an automated Jira ticket was created, suggesting the task was abandoned or managed externally.
qwen/qwen3.6-35b-a3b — — Request to migrate to Pydantic 2.x was closed without a technical fix. The task was forwarded to internal Jira ticket CRAFT-2913, indicating external tracking or abandonment.
qwen/qwen3.6-35b-a3b — — The Pydantic 2.x migration request was closed without resolution or implementation. No technical discussion occurred, indicating the task was abandoned or superseded.
qwen3.6-35b-a3b-mtp-q6 — — Migration to Pydantic 2.x was closed without resolution. No fixes or merges were submitted, leaving the request abandoned after an automated Jira sync comment.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-parts#771 (confidence 99%)

    Merged as commit 6b155294 with the title "chore!: lift-and-shift update to pydantic 2".

  • Related To: canonical/craft-parts#778 (confidence 95%)

    Follow-up cleanup commit 68d61fa0 addressed additional Pydantic 2 migration concerns.

Related issues

Issue Project State Summary Similarity
#4941 Migrate to Pydantic 2 snapcraft closed Pydantic 2 migration completed in merged snapcraft#4955 via commit 1fc8fe6ab, resolving CRAFT-3159.
82%
#401 build!: update to pydantic 2 craft-application merged Merged PR #401 as commit c2f0978a, migrating craft-application to Pydantic 2 across 23 files; craft-grammar#34 was required for the tests.
77%
#60 Migrate to pydantic 2 imagecraft merged PR #60 merged as commit be1741a, migrating Imagecraft to Pydantic V2 and newer craft libraries (FR-8917); pyproject now pins pydantic~=2.12.5. Approved by one reviewer with no unresolved comments.
77%
#4955 chore!: migrate to pydantic 2 snapcraft merged Merged snapcraft#4955 completed the Pydantic 2 migration for CRAFT-3159 and fixed snapcraft#4941; commit 1fc8fe6ab moved dependencies to Pydantic 2.
76%
#345 Migrate to Pydantic 2 craft-application closed Pydantic 2 migration landed via merged PR #401, commit c2f0978a, updating 23 files and replacing the issue's Pydantic 1 requirements.
76%
#32 Make a pydantic 2 release of craft-grammar craft-grammar closed Pydantic 2 support was delivered by merged PR canonical/craft-grammar#33, updating craft-grammar from Pydantic 1 to Pydantic 2.
76%
#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.
75%
#110 Migrate to Pydantic 2 craft-archives closed Pydantic 2 migration was completed in merged PR #103 (commit b69f44a) on feature/2.0; the branch later reached main through PR #123.
75%
#1768 Migrate to Pydantic 2 charmcraft closed Migrated Charmcraft to Pydantic 2 via merged PR #1777 (70078b03), with the feature branch merged to main in #1817 (394e6e55).
75%
#173 feat: upgrade to pydantic 2.x craft-application closed Closed unmerged after the Pydantic 2 migration landed via craft-application#401 (c2f0978a); maintainer lengau credited #173 as helpful during that migration.
75%