feat: upgrade to pydantic 2.x
Metadata
Current evaluation
The pydantic 2.x upgrade for craft-parts was closed as superseded after addressing review feedback on validation error reporting. The changes were replaced by a newer update.
Suggested action: —
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Upgrade craft-parts to pydantic 2.x because it is a dependency of Rockcraft.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | The pydantic 2.x upgrade for craft-parts was closed as superseded after addressing review feedback on validation error reporting. The changes were replaced by a newer update. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Upgrading craft-parts to Pydantic 2.x was closed as superseded. The author addressed a validation error reporting regression using Annotated, but the changes were ultimately replaced by a separate update. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #401 build!: update to pydantic 2 | craft-application | merged | Merged to update the codebase to Pydantic 2. Approved by two reviewers and passed CI. The change modified 23 files (+531/-342). Initial test failures were resolved after the craft-grammar dependency received a corresponding update. | |
| #167 errors: update pydantic validation error checking (CRAFT-788) | craft-parts | merged | Merged update to align craft-parts with Pydantic 1.9 by replacing plain dictionary error handling with TypedDict. Approved by reviewer, passed CI, and modified six files to correctly parse ErrorDict validation data. | |
| #173 feat: upgrade to pydantic 2.x | craft-application | closed | Closed as superseded. The pydantic 2.x migration was already completed in the main branch, rendering this contribution obsolete. The maintainer acknowledged the changes were helpful for the actual upgrade. | |
| #103 feat: upgrade to pydantic 2.x | craft-archives | merged | Merged the pydantic 2.x upgrade after passing CI and receiving three approvals. The maintainer moved the 13 unresolved review comments to a follow-up issue. | |
| #765 Update dependencies, specially unpinning pydantic now that craft-parts is up to it | charmcraft | merged | Merged after approval. Updated dependencies, specifically unpinning pydantic now that craft-parts supports the newer version. Changes span three files. | |
| #488 packaging: pin Pydantic to <2.0.0 | craft-parts | merged | 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. | |
| #193 build(deps)!: update to pydantic 2 | craft-store | merged | Merged to upgrade the project to pydantic 2. Approved by two reviewers, the update modified 21 files with 135 additions and 90 deletions. | |
| #168 release: craft-parts 1.1.2 | craft-parts | merged | Merged release craft-parts 1.1.2. Unpins pydantic and pylint dependencies, fixes setup.py URL, resolves pydantic validation error handling, and removes unused requirements files. Approved by reviewer and passed CI checks. | |
| #960 chore(deps): update dependency pydantic to v1.10.4 | charmcraft | closed | The pydantic v1.10.4 update was closed unmerged due to a conflict with craft-parts 1.17.1 requiring v1.9.0. Renovate subsequently ignored this specific version. | |
| #1777 feat(deps)!: switch to pydantic 2 | charmcraft | merged | Merged pydantic 2 upgrade, incorporating #1776. Approved by two reviewers, the update modified 81 files with a net reduction of over 15,000 lines, completing the major version migration. |