Skip to content

Commit c7e9df8

Browse files
damccormAmar3tto
authored andcommitted
Cherry-pick #36583
1 parent 2ca7d21 commit c7e9df8

File tree

9 files changed

+953
-34
lines changed

9 files changed

+953
-34
lines changed

sdks/python/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN \
5050

5151
# Install required packages for Beam Python SDK and common dependencies used by users.
5252
# use --no-deps to ensure the list includes all transitive dependencies.
53-
pip install --no-deps -r /tmp/base_image_requirements.txt && \
53+
pip install --no-deps -r /tmp/base_image_requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu && \
5454
rm -rf /tmp/base_image_requirements.txt && \
5555
python -c "import nltk; nltk.download('stopwords')" && \
5656
rm /root/nltk_data/corpora/stopwords.zip && \

sdks/python/container/common.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def generatePythonRequirements = tasks.register("generatePythonRequirements") {
5353
"${files(configurations.sdkSourceTarball.files).singleFile} " +
5454
"ml_image_requirements.txt " +
5555
"container/ml " +
56-
"[gcp,dataframe,test,tensorflow,torch,transformers] " +
56+
"[gcp,dataframe,test,ml_cpu] " +
5757
"${pipExtraOptions}"
5858
}
5959
}
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Autogenerated requirements file for Apache Beam py310 container image.
17+
# Run ./gradlew :sdks:python:container:generatePythonRequirementsAll to update.
18+
# Do not edit manually, adjust ../base_image_requirements_manual.txt or
19+
# Apache Beam's setup.py instead, and regenerate the list.
20+
# You will need Python interpreters for all versions supported by Beam, see:
21+
# https://s.apache.org/beam-python-dev-wiki
22+
# Reach out to a committer if you need help.
23+
24+
absl-py==2.3.1
25+
aiofiles==25.1.0
26+
aiohappyeyeballs==2.6.1
27+
aiohttp==3.13.1
28+
aiosignal==1.4.0
29+
annotated-types==0.7.0
30+
anyio==4.11.0
31+
asn1crypto==1.5.1
32+
astunparse==1.6.3
33+
async-timeout==5.0.1
34+
attrs==25.4.0
35+
backports.tarfile==1.2.0
36+
beartype==0.21.0
37+
beautifulsoup4==4.14.2
38+
bs4==0.0.2
39+
build==1.3.0
40+
cachetools==6.2.1
41+
certifi==2025.10.5
42+
cffi==2.0.0
43+
charset-normalizer==3.4.4
44+
click==8.3.0
45+
cloud-sql-python-connector==1.18.5
46+
crcmod==1.7
47+
cryptography==46.0.3
48+
Cython==3.1.5
49+
dill==0.3.1.1
50+
dnspython==2.8.0
51+
docker==7.1.0
52+
docopt==0.6.2
53+
docstring_parser==0.17.0
54+
exceptiongroup==1.3.0
55+
execnet==2.1.1
56+
fastavro==1.12.1
57+
fasteners==0.20
58+
filelock==3.20.0
59+
flatbuffers==25.9.23
60+
freezegun==1.5.5
61+
frozenlist==1.8.0
62+
fsspec==2025.9.0
63+
future==1.0.0
64+
gast==0.6.0
65+
google-api-core==2.26.0
66+
google-api-python-client==2.185.0
67+
google-apitools==0.5.31
68+
google-auth==2.41.1
69+
google-auth-httplib2==0.2.0
70+
google-cloud-aiplatform==1.121.0
71+
google-cloud-bigquery==3.38.0
72+
google-cloud-bigquery-storage==2.33.1
73+
google-cloud-bigtable==2.33.0
74+
google-cloud-core==2.4.3
75+
google-cloud-datastore==2.21.0
76+
google-cloud-dlp==3.33.0
77+
google-cloud-language==2.18.0
78+
google-cloud-profiler==4.1.0
79+
google-cloud-pubsub==2.31.1
80+
google-cloud-pubsublite==1.12.0
81+
google-cloud-recommendations-ai==0.10.18
82+
google-cloud-resource-manager==1.15.0
83+
google-cloud-secret-manager==2.25.0
84+
google-cloud-spanner==3.58.0
85+
google-cloud-storage==2.19.0
86+
google-cloud-videointelligence==2.17.0
87+
google-cloud-vision==3.11.0
88+
google-crc32c==1.7.1
89+
google-genai==1.45.0
90+
google-pasta==0.2.0
91+
google-resumable-media==2.7.2
92+
googleapis-common-protos==1.71.0
93+
greenlet==3.2.4
94+
grpc-google-iam-v1==0.14.3
95+
grpc-interceptor==0.15.4
96+
grpcio==1.65.5
97+
grpcio-status==1.65.5
98+
guppy3==3.1.5
99+
h11==0.16.0
100+
h5py==3.15.1
101+
hdfs==2.7.3
102+
hf-xet==1.1.10
103+
httpcore==1.0.9
104+
httplib2==0.22.0
105+
httpx==0.28.1
106+
huggingface-hub==0.35.3
107+
hypothesis==6.142.2
108+
idna==3.11
109+
importlib_metadata==8.7.0
110+
iniconfig==2.3.0
111+
jaraco.classes==3.4.0
112+
jaraco.context==6.0.1
113+
jaraco.functools==4.3.0
114+
jeepney==0.9.0
115+
Jinja2==3.1.6
116+
joblib==1.5.2
117+
jsonpickle==3.4.2
118+
jsonschema==4.25.1
119+
jsonschema-specifications==2025.9.1
120+
keras==3.11.3
121+
keyring==25.6.0
122+
keyrings.google-artifactregistry-auth==1.1.2
123+
libclang==18.1.1
124+
Markdown==3.9
125+
markdown-it-py==4.0.0
126+
MarkupSafe==3.0.3
127+
mdurl==0.1.2
128+
milvus-lite==2.5.1
129+
ml_dtypes==0.5.3
130+
mmh3==5.2.0
131+
mock==5.2.0
132+
more-itertools==10.8.0
133+
mpmath==1.3.0
134+
multidict==6.7.0
135+
namex==0.1.0
136+
networkx==3.4.2
137+
nltk==3.9.2
138+
numpy==2.2.6
139+
oauth2client==4.1.3
140+
objsize==0.7.1
141+
opentelemetry-api==1.38.0
142+
opentelemetry-sdk==1.38.0
143+
opentelemetry-semantic-conventions==0.59b0
144+
opt_einsum==3.4.0
145+
optree==0.17.0
146+
oracledb==3.4.0
147+
orjson==3.11.3
148+
overrides==7.7.0
149+
packaging==25.0
150+
pandas==2.2.3
151+
parameterized==0.9.0
152+
pg8000==1.31.5
153+
pillow==12.0.0
154+
pip==25.2
155+
pluggy==1.6.0
156+
propcache==0.4.1
157+
proto-plus==1.26.1
158+
protobuf==5.29.5
159+
psycopg2-binary==2.9.11
160+
pyarrow==18.1.0
161+
pyarrow-hotfix==0.7
162+
pyasn1==0.6.1
163+
pyasn1_modules==0.4.2
164+
pycparser==2.23
165+
pydantic==2.12.3
166+
pydantic_core==2.41.4
167+
pydot==1.4.2
168+
Pygments==2.19.2
169+
PyHamcrest==2.1.0
170+
PyJWT==2.10.1
171+
pymilvus==2.5.16
172+
pymongo==4.15.3
173+
PyMySQL==1.1.2
174+
pyparsing==3.2.5
175+
pyproject_hooks==1.2.0
176+
pytest==8.4.2
177+
pytest-timeout==2.4.0
178+
pytest-xdist==3.8.0
179+
python-dateutil==2.9.0.post0
180+
python-dotenv==1.1.1
181+
python-tds==1.17.1
182+
pytz==2025.2
183+
PyYAML==6.0.3
184+
redis==5.3.1
185+
referencing==0.37.0
186+
regex==2025.10.23
187+
requests==2.32.5
188+
requests-mock==1.12.1
189+
rich==14.2.0
190+
rpds-py==0.27.1
191+
rsa==4.9.1
192+
safetensors==0.6.2
193+
scikit-learn==1.7.2
194+
scipy==1.15.3
195+
scramp==1.4.6
196+
SecretStorage==3.4.0
197+
setuptools==80.9.0
198+
shapely==2.1.2
199+
six==1.17.0
200+
sniffio==1.3.1
201+
sortedcontainers==2.4.0
202+
soupsieve==2.8
203+
SQLAlchemy==2.0.44
204+
sqlalchemy_pytds==1.0.2
205+
sqlparse==0.5.3
206+
sympy==1.14.0
207+
tenacity==8.5.0
208+
tensorboard==2.20.0
209+
tensorboard-data-server==0.7.2
210+
tensorflow==2.20.0
211+
tensorflow-cpu-aws==2.20.0;platform_machine=="aarch64"
212+
termcolor==3.1.0
213+
testcontainers==4.13.2
214+
threadpoolctl==3.6.0
215+
tokenizers==0.21.4
216+
tomli==2.3.0
217+
torch==2.8.0+cpu
218+
tqdm==4.67.1
219+
transformers==4.55.4
220+
typing-inspection==0.4.2
221+
typing_extensions==4.15.0
222+
tzdata==2025.2
223+
ujson==5.11.0
224+
uritemplate==4.2.0
225+
urllib3==2.5.0
226+
virtualenv-clone==0.5.7
227+
websockets==15.0.1
228+
Werkzeug==3.1.3
229+
wheel==0.45.1
230+
wrapt==2.0.0
231+
yarl==1.22.0
232+
zipp==3.23.0
233+
zstandard==0.25.0

0 commit comments

Comments
 (0)