Skip to content
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

Pydantic >2 compability and package modernization #57

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

GPla
Copy link

@GPla GPla commented Apr 29, 2024

Hi there,

With this pull request, I added support for pydantic>2 by utilizing the pydantic.v1 import (as mentioned in #56).
Thereby, any version of pydantic >1.5 will work with this package and one could gradually update the internals to use the new pydantic v2 API.

Furthermore, I did some package modernization:

  • Switch to using pyproject.toml for all configuration purposes
  • Github actions with matrix to test all supported python versions (3.7-3.12)
  • Linting + type checking hooks via pre-commit
  • Change linter from black to ruff (similar output to black but much faster)
  • Support for rye during development

see here for tests

@GPla
Copy link
Author

GPla commented Apr 29, 2024

Open TODOs would:

  • remove .circle-ci if github actions are okay
  • add disclaimer in readme that v1 API is used via pydantic.v1 under pydantic>2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant