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

use pydantic v2 backwards compat mode #1068

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

NexAdn
Copy link
Contributor

@NexAdn NexAdn commented Sep 17, 2024

This should allow using the existing pydantic v1 features while migration to v2 is not done.

Issue: #998

@NexAdn NexAdn force-pushed the pydantic-v2-compat branch 2 times, most recently from 3d958e9 to 389b5e6 Compare September 17, 2024 09:07
setup.py Outdated Show resolved Hide resolved
NexAdn added a commit to NexAdn/bugwarrior that referenced this pull request Sep 19, 2024
This should allow using the existing pydantic v1 features while
migration to v2 is not done. This also raises the minimum requirement to
pydantic >= 2, as the v1 compat modules are not available in pydantic
v1. As discussed in the PR [0], this new version requirement was
accepted due to widespread adoption of pydantic v2 in major
distributions.

Issue: GothenburgBitFactory#998

[0] GothenburgBitFactory#1068 (review)
@ryneeverett
Copy link
Collaborator

I believe CI is failing because pydantic-2 dropped support for python-3.6. I just removed 3.6 from the test matrix -- we don't need to support it anyways -- so if you rebase on develop we should be good to go.

NexAdn added a commit to NexAdn/bugwarrior that referenced this pull request Sep 19, 2024
This should allow using the existing pydantic v1 features while
migration to v2 is not done. This also raises the minimum requirement to
pydantic >= 2, as the v1 compat modules are not available in pydantic
v1. As discussed in the PR [0], this new version requirement was
accepted due to widespread adoption of pydantic v2 in major
distributions.

Issue: GothenburgBitFactory#998

[0] GothenburgBitFactory#1068 (review)
This should allow using the existing pydantic v1 features while
migration to v2 is not done. This also raises the minimum requirement to
pydantic >= 2, as the v1 compat modules are not available in pydantic
v1. As discussed in the PR [0], this new version requirement was
accepted due to widespread adoption of pydantic v2 in major
distributions.

Issue: GothenburgBitFactory#998

[0] GothenburgBitFactory#1068 (review)
@NexAdn
Copy link
Contributor Author

NexAdn commented Sep 19, 2024

I believe CI is failing because pydantic-2 dropped support for python-3.6. I just removed 3.6 from the test matrix -- we don't need to support it anyways -- so if you rebase on develop we should be good to go.

Rebase done, CI seems to be happy now

@ryneeverett ryneeverett merged commit c1d1019 into GothenburgBitFactory:develop Sep 20, 2024
31 checks passed
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.

2 participants