Create version 1 of Pydantic 2 breaking libs #201
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR creates version 1 of those libraries that would suffer breaking changes due to the support of Pydantic 2:
data_models
.upgrade
.Given that this is the first PR that bumps the major version of some of the libraries, some code shuffling was required to give the repository a cohesive view of what is still in
v0
, and what is available both inv0
andv1
.Pydantic 2 specific changes:
Pydantic 2 breaking changes can be seen in commit d08fbaa.
Code substitutions
Code shuffling changes:
data_models.py
andupgrade.py
tests into tests/v1/unit.data_models.py
andupgrade.py
libs into libs/charms/data_platform_libs/v1.-v0
and-v1
suffixes.