Skip to content

Downgrade pydantic to prevent breaking introduced by pydantic 2 #215

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

Merged

Conversation

tedhtchang
Copy link
Member

@tedhtchang tedhtchang commented Jul 10, 2023

Downgrad pydantic package to prevent breaking from doing pip install -r requirements.txt
Fixes #214
How to test:

# clone the branch
git clone --single-branch --branch limit-pydantic-version  https://github.com/tedhtchang/codeflare-sdk.git
cd codeflare-sdk/

# create new python virtual env with [pyenv](https://github.com/pyenv/pyenv#automatic-installer)
pyenv install 3.8.13
pyenv virtualenv 3.8.13 limit-pydantic-version
pyenv local limit-pydantic-version
pip install -r requirements.txt

verify pydantic < 2.0.*
image

@tedhtchang tedhtchang changed the title downgrad pydantic package to prevent breaking introduced by pydantic 2 Downgrad pydantic package to prevent breaking introduced by pydantic 2 Jul 10, 2023
@tedhtchang tedhtchang changed the title Downgrad pydantic package to prevent breaking introduced by pydantic 2 Downgrade pydantic to prevent breaking introduced by pydantic 2 Jul 10, 2023
Copy link
Contributor

@Bobbins228 Bobbins228 left a comment

Choose a reason for hiding this comment

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

Can verify on testing this I installed pydantic<2 nice work Ted

@MichaelClifford MichaelClifford merged commit 0d9b23c into project-codeflare:main Jul 12, 2023
vaibssingh pushed a commit to vaibssingh/codeflare-sdk that referenced this pull request Jul 13, 2023
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.

ray package has a breaking dependency pydantic>2.0.*
3 participants