-
Notifications
You must be signed in to change notification settings - Fork 2k
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
refactor: bump pydantic to v2 using v1 API #5917
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see lot of unrelated changes in this PR.
Given that it's an important update could you try and keep the changes at a minimum? As much as I like to keep things tidy and in order I think it's best if we don't reformat imports and other files in this case.
It makes it much harder for us to review it too.
Done. |
dd225ed
to
41fa2d6
Compare
2129917
to
fb4b54c
Compare
@mjspeck can you revert the formatting for |
Done |
Pull Request Test Coverage Report for Build 6384187858
💛 - Coveralls |
@mjspeck seems like the REST API tests are failing for some reason. |
Yeah I'm surprised. I'll see what I can do this week. |
After doing some more testing and digging, it seems that this is an issue with FastAPI. We can either leave this as a draft for now and wait for FastAPI to fix the issue or close it. Just a note, it looks like there's already a PR in there to address this so waiting might not be a bad option. |
@mjspeck nice find, let's wait for that issue to be solved. 👍 |
That issue has been solved in the latest release of fastapi: There is another dependency issue currently blocking the move to fastapi 0.104: |
814c9f1
to
a764056
Compare
Force pushed to fix conflicts. |
This still doesn't seem solved. 😕 |
This doesn't update the code to use the pydantic v2 API, it uses pydantic's v1 submodule as an intermediate step to allow updating the dependency.
This reverts commit ee8337ec5a4bf6ded08b04804f50973f3113468f.
a764056
to
60e3e5f
Compare
Rebased to fix conflicts. 🤞 |
Closing, we won't do this. |
Related Issues
Proposed Changes:
This PR works as a stopgap solution to updating the
pydantic
dependency to V2. It uses the v1 API by using pydantic v2'sv1
submodule.How did you test it?
I started unit tests on my computer but they took too long. So per the contributing guidelines I'm waiting for tests to run in the CI pipeline.
Notes for the reviewer
All pydantic imports have just been modified to include
.v1
.Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.