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

Add support for pydantic v2 #144

Merged
merged 9 commits into from
Jul 31, 2023
Merged

Add support for pydantic v2 #144

merged 9 commits into from
Jul 31, 2023

Conversation

enadeau
Copy link
Contributor

@enadeau enadeau commented Jul 30, 2023

I've made the smallest changes I could to get the project running under Pydantic v1 and v2. I've also added the the two version of pydantic the testing matrix.

@enadeau
Copy link
Contributor Author

enadeau commented Jul 30, 2023

After a small fight with the CI config and the package version, I think this is ready to go.

Some more package could be updated, but since this is in a working state, it's probably better to keep it for another PR

@enadeau enadeau mentioned this pull request Jul 30, 2023
Copy link
Member

@JonasKs JonasKs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Thank you so much! 💯

@JonasKs JonasKs merged commit e8bfae5 into Intility:main Jul 31, 2023
16 checks passed
@enadeau enadeau deleted the update-deps branch July 31, 2023 07:22
@JonasKs
Copy link
Member

JonasKs commented Jul 31, 2023

I've created a release, should be live soon. Thanks for all your PRs and help here once again, @enadeau 😊

nikstuckenbrock pushed a commit to nikstuckenbrock/fastapi-azure-auth that referenced this pull request Oct 16, 2023
* update dependencies

* update trio to fix a test issue

* fix pydantic v2 compatibility issue

* add pydantic v2 to ci

* setup pydantic version before fastapi version in ci

* remove pydantic settings before downgrading to pydantic v1

* update python patch version in ci

* update pytest-aiohttp

* no cover for line only run by pydantic v1
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