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

Fix pydantic and autodoc_pydantic version to <2.0.0 until support is added. #3290

Merged
merged 3 commits into from
Apr 18, 2023

Conversation

loadams
Copy link
Collaborator

@loadams loadams commented Apr 18, 2023

  • pydantic is working on updating to a 2.0.0 that is not backwards compatible, we will need to add this, but since this will break our CI when it is released, this is a preventative step.
  • autodoc_pydantic hasn't addressed how they will handle this, though it will be tracked in this issue. I assume they will update to 2.0.0 once they add support as well.
  • Once pydantic 2.0.0 is released, fixes will be added in Update pydantic version and corresponding changes #3289.

@loadams loadams linked an issue Apr 18, 2023 that may be closed by this pull request
@loadams loadams changed the title Fix pydantic and autodoc_pydantic version to <2.0.0 until support it added. Fix pydantic and autodoc_pydantic version to <2.0.0 until support is added. Apr 18, 2023
@loadams loadams linked an issue Apr 18, 2023 that may be closed by this pull request
@loadams loadams merged commit 0890562 into master Apr 18, 2023
pengwa added a commit to microsoft/onnxruntime that referenced this pull request Jul 3, 2023
### Fix orttraining-ortmodule-distributed CI

https://pypi.org/project/pydantic/#history released version 2.0 1st
July, Deepspeed has known issue on newer version of it
(deepspeedai/DeepSpeed#3280). So fix this by add
similar check as DS did in
deepspeedai/DeepSpeed#3290
@mrwyattii mrwyattii deleted the loadams/fix-pydantic-version branch July 7, 2023 02:37
@mansenfranzen
Copy link

@loadams You can now test the new autodoc_pydantic version supporting pydantic v2 via pip install autodoc_pydantic==2.0.0. The dev docs already showcase v2 support (see here). Migration guide is available here.

Any feedback is more than appreciated. The current autodoc_pydantic version 2.0.0 on pypi remains yanked for one week until final release.

@mrwyattii
Copy link
Contributor

mrwyattii commented Jul 24, 2023

@mansenfranzen Thanks for the update! We have another PR that we are working on for full v2 support: #3902

We were waiting on support from the autodoc_pydantic (thanks for the work there!) and we will finish this work soon.

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.

[BUG] The latest master code doesn't work with pydantic 2.0a2 #3249c_pydantic
3 participants