-
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
Support pydantic v2 #360
Comments
Hi @gbdlin, thanks for reporting! We'll look into this and let you know. |
https://docs.pydantic.dev/latest/migration/ will be helpful while completing this. |
Until this is sorted out, @gbdlin, can you tell us more on how you use FawltyDeps? If it's purely used to check dependencies (in CI for example), it's possible to run it in its own virtual environment. The last release (0.13.0) supports a wide range of ways to resolve your project's dependencies without necessarily needing FawltyDeps to be installed in the same environment as your project. You can, for example, point FawltyDeps at the venv used in your project with |
Unfortunately, running it outside the project env would require a major refactor of project's dockerfile an CI. |
Describe the bug
Right now FawltyDeps requires pydantic v1, which conflicts with projects using pydantic v2.
To Reproduce
Expected behavior
FawltyDeps should support both v1 and v2 versions of Pydantic, or at some point, fully migrate to v2.
Alternatively, FalwltyDeps can have pydantic vendored, so it doesn't conflict with any project it is used in.
Environment
Additional context
Pydantic v2 was released a while ago and is already popular as it introduces a performance boost and a lot of new features.
The text was updated successfully, but these errors were encountered: