-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to pydantic 2 #60
Conversation
a978195
to
ce018d4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
+ Coverage 97.51% 98.06% +0.55%
==========================================
Files 20 20
Lines 482 414 -68
Branches 74 60 -14
==========================================
- Hits 470 406 -64
+ Misses 9 7 -2
+ Partials 3 1 -2 ☔ View full report in Codecov by Sentry. |
12e2666
to
85641a5
Compare
@cmatsuoka @tigarmo A quick review of this from the craft team would be greatly appreciated if you can spare some time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice :)
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
- remove duplicated validation - Use new ConfigDict - replace validators with field_validator and model_validator - adapt to new errors - adapt to new craft_parts Plugin - use model_dump - rely on model_validate to unmarshal objects Signed-off-by: Paul Mars <[email protected]>
Apply the same fix as in canonical/craft-parts#795 Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
f5e5c7b
to
6d47eb2
Compare
Migrate to pydantic V2 and adapt to new craft libraries.
Fixes: FR-8917