← Back to issue list

feat(deps)!: switch to pydantic 2

View original Github issue

Metadata

Project
charmcraft
Number
#1777
Type
pull request
State
merged
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

Includes the entirety of #1776

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged the breaking dependency update to pydantic 2, incorporating all changes from #1776. The maintainer applied this major version upgrade to align the codebase with the new API.
qwen3.6-35b-a3b-mtp-q6 Merged the dependency upgrade to pydantic 2, incorporating all changes from issue #1776. The codebase now utilizes pydantic v2 for data validation.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
86%
#672 merge feature/pydantic-2 rockcraft merged Merged the pydantic 2 migration branch via rebase after two approvals and passing CI. The update modified 26 files, adding 3661 lines and removing 2150, finalizing the migration and dependency updates.
78%
#5173 build(deps): update pydantic etc. (main) snapcraft merged Merged automated dependency update upgrading pydantic to 2.10.3 and pydantic-core to 2.27.1. Approved by two reviewers, passed CI, and merged into main.
78%
#1817 chore: merge pydantic 2 support to main charmcraft merged Merged pydantic 2 support into the main branch after approval from two reviewers. The update modifies 52 files, adding 2860 lines and removing 714, completing the dependency upgrade.
77%
#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.
76%
#60 Migrate to pydantic 2 imagecraft merged Merged after approval. The codebase was migrated to Pydantic V2 with updated craft libraries. Changes span 27 files (+278/-340 lines) and maintain 98% test coverage, resolving FR-8917.
76%
#348 build(deps): bump pydantic from 1.8.1 to 1.8.2 charmcraft merged Merged a Dependabot PR upgrading pydantic from 1.8.1 to 1.8.2. The update patches CVE-2021-29510, fixing an infinite loop bug in date parsing, alongside other schema and configuration fixes. Approved and merged successfully.
75%
#166 ci(deps): prevent renovate from updating pydantic craft-application merged Merged configuration changes to prevent Renovate from updating pydantic. Approved by two reviewers, passed CI and tests, and modified two files.
74%
#408 chore!: merge pydantic 2 feature branch to main craft-application merged Merged the pydantic 2 feature branch into main, upgrading the codebase and resolving typing issues. Approved by two reviewers and passing CI checks, the merge introduces breaking changes required for the pydantic 2 dependency update.
74%
#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.
73%