From 92a8c3c90a079bb9c0ccca001f857a655fc7e8e4 Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Fri, 29 May 2026 20:16:43 +0000 Subject: [PATCH] chore(multiple samples): bump pillow to 12.2.0 and restrict to python 3.10+ - Consolidated multiple pillow entries across requirements files into a single, version-pinned entry (`pillow==12.2.0`). - Restricted execution strictly to Python 3.10 and newer (`python_version >= "3.10"`) to resolve compatibility conflicts. --- appengine/flexible/scipy/requirements.txt | 2 +- .../gpu-examples/tensorflow-landsat-prime/requirements.txt | 2 +- dataflow/gpu-examples/tensorflow-landsat/requirements.txt | 2 +- genai/bounding_box/requirements.txt | 2 +- genai/code_execution/requirements.txt | 2 +- genai/image_generation/requirements.txt | 2 +- genai/tools/requirements.txt | 2 +- generative_ai/embeddings/requirements.txt | 3 +-- generative_ai/evaluation/requirements.txt | 3 +-- generative_ai/extensions/requirements.txt | 3 +-- generative_ai/image_generation/requirements.txt | 3 +-- generative_ai/model_garden/requirements.txt | 3 +-- generative_ai/model_tuning/requirements.txt | 3 +-- generative_ai/prompts/requirements.txt | 3 +-- generative_ai/reasoning_engine/requirements.txt | 3 +-- people-and-planet-ai/image-classification/requirements.txt | 2 +- vision/snippets/crop_hints/requirements.txt | 3 +-- vision/snippets/document_text/requirements.txt | 3 +-- vision/snippets/face_detection/requirements.txt | 3 +-- 19 files changed, 19 insertions(+), 30 deletions(-) diff --git a/appengine/flexible/scipy/requirements.txt b/appengine/flexible/scipy/requirements.txt index fe4d29690ea..6a91f152207 100644 --- a/appengine/flexible/scipy/requirements.txt +++ b/appengine/flexible/scipy/requirements.txt @@ -5,6 +5,6 @@ imageio==2.36.1; python_version >= '3.9' numpy==2.2.4; python_version > '3.9' numpy==1.26.4; python_version == '3.9' numpy==1.24.4; python_version == '3.8' -pillow==10.4.0 +pillow==12.2.0; python_version >= "3.10" scipy==1.10.1; python_version <= '3.9' scipy==1.14.1; python_version > '3.9' diff --git a/dataflow/gpu-examples/tensorflow-landsat-prime/requirements.txt b/dataflow/gpu-examples/tensorflow-landsat-prime/requirements.txt index 69a05b307ac..e8058a01af2 100644 --- a/dataflow/gpu-examples/tensorflow-landsat-prime/requirements.txt +++ b/dataflow/gpu-examples/tensorflow-landsat-prime/requirements.txt @@ -1,4 +1,4 @@ -Pillow==10.4.0 +pillow==12.2.0; python_version >= "3.10" apache-beam[gcp]==2.58.1 rasterio==1.3.10 tensorflow==2.12.0 # Check TensorFlow/CUDA compatibility with Dockerfile: https://www.tensorflow.org/install/source#gpu diff --git a/dataflow/gpu-examples/tensorflow-landsat/requirements.txt b/dataflow/gpu-examples/tensorflow-landsat/requirements.txt index 69a05b307ac..e8058a01af2 100644 --- a/dataflow/gpu-examples/tensorflow-landsat/requirements.txt +++ b/dataflow/gpu-examples/tensorflow-landsat/requirements.txt @@ -1,4 +1,4 @@ -Pillow==10.4.0 +pillow==12.2.0; python_version >= "3.10" apache-beam[gcp]==2.58.1 rasterio==1.3.10 tensorflow==2.12.0 # Check TensorFlow/CUDA compatibility with Dockerfile: https://www.tensorflow.org/install/source#gpu diff --git a/genai/bounding_box/requirements.txt b/genai/bounding_box/requirements.txt index 86da356810f..cc8e5d32af3 100644 --- a/genai/bounding_box/requirements.txt +++ b/genai/bounding_box/requirements.txt @@ -1,2 +1,2 @@ google-genai==1.42.0 -pillow==11.1.0 +pillow==12.2.0; python_version >= "3.10" diff --git a/genai/code_execution/requirements.txt b/genai/code_execution/requirements.txt index 7365e0b937d..445a1770611 100644 --- a/genai/code_execution/requirements.txt +++ b/genai/code_execution/requirements.txt @@ -1,2 +1,2 @@ google-genai==1.60.0 -pillow==11.1.0 +pillow==12.2.0; python_version >= "3.10" diff --git a/genai/image_generation/requirements.txt b/genai/image_generation/requirements.txt index 86da356810f..cc8e5d32af3 100644 --- a/genai/image_generation/requirements.txt +++ b/genai/image_generation/requirements.txt @@ -1,2 +1,2 @@ google-genai==1.42.0 -pillow==11.1.0 +pillow==12.2.0; python_version >= "3.10" diff --git a/genai/tools/requirements.txt b/genai/tools/requirements.txt index 9f6fafbe8ec..43d18271a18 100644 --- a/genai/tools/requirements.txt +++ b/genai/tools/requirements.txt @@ -1,3 +1,3 @@ google-genai==1.45.0 # PIl is required for tools_code_execution_with_txt_img.py -pillow==11.1.0 +pillow==12.2.0; python_version >= "3.10" diff --git a/generative_ai/embeddings/requirements.txt b/generative_ai/embeddings/requirements.txt index 13c79e4e255..1c1d554c82d 100644 --- a/generative_ai/embeddings/requirements.txt +++ b/generative_ai/embeddings/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.84.0 sentencepiece==0.2.0 google-auth==2.29.0 diff --git a/generative_ai/evaluation/requirements.txt b/generative_ai/evaluation/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/evaluation/requirements.txt +++ b/generative_ai/evaluation/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/extensions/requirements.txt b/generative_ai/extensions/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/extensions/requirements.txt +++ b/generative_ai/extensions/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/image_generation/requirements.txt b/generative_ai/image_generation/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/image_generation/requirements.txt +++ b/generative_ai/image_generation/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/model_garden/requirements.txt b/generative_ai/model_garden/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/model_garden/requirements.txt +++ b/generative_ai/model_garden/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/model_tuning/requirements.txt b/generative_ai/model_tuning/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/model_tuning/requirements.txt +++ b/generative_ai/model_tuning/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/prompts/requirements.txt b/generative_ai/prompts/requirements.txt index 30b8dfcdd9f..2f231ca6270 100644 --- a/generative_ai/prompts/requirements.txt +++ b/generative_ai/prompts/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.74.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/generative_ai/reasoning_engine/requirements.txt b/generative_ai/reasoning_engine/requirements.txt index be13d57d368..8ce9dc7d7f8 100644 --- a/generative_ai/reasoning_engine/requirements.txt +++ b/generative_ai/reasoning_engine/requirements.txt @@ -1,8 +1,7 @@ pandas==2.2.3; python_version == '3.7' pandas==2.2.3; python_version == '3.8' pandas==2.2.3; python_version > '3.8' -pillow==10.4.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" google-cloud-aiplatform[all]==1.69.0 sentencepiece==0.2.0 google-auth==2.38.0 diff --git a/people-and-planet-ai/image-classification/requirements.txt b/people-and-planet-ai/image-classification/requirements.txt index 3a5c78d3764..0ab5c27ef56 100644 --- a/people-and-planet-ai/image-classification/requirements.txt +++ b/people-and-planet-ai/image-classification/requirements.txt @@ -1,3 +1,3 @@ -pillow==10.3.0 +pillow==12.2.0; python_version >= "3.10" apache-beam[gcp]==2.55.1 google-cloud-aiplatform==1.47.0 diff --git a/vision/snippets/crop_hints/requirements.txt b/vision/snippets/crop_hints/requirements.txt index e813a2c08ea..defcaa2ab63 100644 --- a/vision/snippets/crop_hints/requirements.txt +++ b/vision/snippets/crop_hints/requirements.txt @@ -1,3 +1,2 @@ google-cloud-vision==3.8.1 -pillow==10.3.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" diff --git a/vision/snippets/document_text/requirements.txt b/vision/snippets/document_text/requirements.txt index e813a2c08ea..defcaa2ab63 100644 --- a/vision/snippets/document_text/requirements.txt +++ b/vision/snippets/document_text/requirements.txt @@ -1,3 +1,2 @@ google-cloud-vision==3.8.1 -pillow==10.3.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10" diff --git a/vision/snippets/face_detection/requirements.txt b/vision/snippets/face_detection/requirements.txt index e813a2c08ea..defcaa2ab63 100644 --- a/vision/snippets/face_detection/requirements.txt +++ b/vision/snippets/face_detection/requirements.txt @@ -1,3 +1,2 @@ google-cloud-vision==3.8.1 -pillow==10.3.0; python_version < '3.8' -pillow==10.4.0; python_version >= '3.8' +pillow==12.2.0; python_version >= "3.10"