-
Notifications
You must be signed in to change notification settings - Fork 14
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 v2 #195
Comments
Nice! I think we should definitely move forward. @tstorek Do you think it is worth waiting for the migration tool? |
This is connected to #197 as pydantic-settings is now a separated package. Hence, #197 will fix the symptoms but not the general problem. I suggest to do the migration relatively quickly. By setting up a project for this. @djs0109, if you require support, let me know. I can help out with answering questions on the original architecture and smaller issues, but cannot take the lead here. Apparently they provide a migration-tool now https://github.com/pydantic/bump-pydantic |
@djs0109 I looked into a bit here is the strategy I suggest:
The pydantic developers did a very good job here. Hence, migration should not take longer than an hour or so. The good thing is that there a very few breaking changes that will affect further developments. They will see the |
Branch 195-Migrate-to-pydantic-v2 created! |
Cool! I will try this migration tool as soon as possible. Thanks again for providing the strategy! |
@tstorek Indeed, there are more works than we might think. |
Is your feature request related to a problem? Please describe.
Pydantic V2 is out!
https://pypi.org/project/pydantic/
https://docs.pydantic.dev/latest/
It has a fresh core and promises to be multiple times faster! Hence, it would be great to migrate step by step.
Describe the solution you'd like
Migrate step by step and substitute the deprecated functions by the new once.
Pydantic provides a migration guide for this. https://docs.pydantic.dev/latest/migration/
The effort may be relatively small, but definitely worth it.
Otherwise, the library may be stuck in the past.
@djs0109 What do you think? It would definetly mean a major release to the whole library due to breaking changes.
The text was updated successfully, but these errors were encountered: