Skip to content

Commit 229d350

Browse files
committed
Drop pip
1 parent 6b8addf commit 229d350

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

sdks/python/tox.ini

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,25 @@ commands =
103103
python apache_beam/examples/complete/autocomplete_test.py
104104
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}"
105105

106-
[testenv:py{310,311}-ml]
106+
[testenv:py310-ml]
107107
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in certain tests.
108+
install_command =
109+
{envbindir}/python {envbindir}/pip install --retries 10 --constraint {toxinidir}/container/ml/py310/base_image_requirements.txt {opts} {packages}
110+
deps =
111+
pip_pre = False
112+
extras = test,gcp,dataframe,ml_test
113+
commands =
114+
/bin/sh -c "pip freeze | grep -E tensorflow"
115+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}"
116+
117+
[testenv:py311-ml]
118+
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in certain tests.
119+
install_command =
120+
{envbindir}/python {envbindir}/pip install --retries 10 --constraint {toxinidir}/container/ml/py311/base_image_requirements.txt {opts} {packages}
108121
deps =
109-
pip==25.0.1
110-
accelerate>=1.6.0
111-
onnx<1.19.0
112-
google-cloud-aiplatform==1.138.0
113-
googleapis-common-protos==1.72.0
114-
grpcio-status==1.65.5
115122
pip_pre = False
116-
setenv =
117123
extras = test,gcp,dataframe,ml_test
118124
commands =
119-
# Log tensorflow version for debugging
120125
/bin/sh -c "pip freeze | grep -E tensorflow"
121126
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}"
122127

0 commit comments

Comments
 (0)