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

Pin protobuf version for TF dependency tests #32719

Merged
merged 11 commits into from
Oct 14, 2024
13 changes: 8 additions & 5 deletions sdks/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,12 @@ commands =

[testenv:py39-tensorflow-212]
deps =
212: tensorflow>=2.12rc1,<2.13
# Help pip resolve conflict with typing-extensions for old version of TF https://github.com/apache/beam/issues/30852
212: pydantic<2.7
extras = test,gcp
212:
tensorflow>=2.12rc1,<2.13
# Help pip resolve conflict with typing-extensions for old version of TF https://github.com/apache/beam/issues/30852
pydantic<2.7
protobuf==4.25.5
extras = test,gcp,ml_test
commands =
# Log tensorflow version for debugging
/bin/sh -c "pip freeze | grep -E tensorflow"
Expand Down Expand Up @@ -424,7 +426,8 @@ deps =
430: transformers>=4.30.0,<4.31.0
torch>=1.9.0,<1.14.0
tensorflow==2.12.0
extras = test,gcp
protobuf==4.25.5
extras = test,gcp,ml_test
commands =
# Log transformers and its dependencies version for debugging
/bin/sh -c "pip freeze | grep -E transformers"
Expand Down
Loading