Skip to content

chore(multiple samples): bump pillow to 12.2.0 and restrict to python 3.10+#14251

Merged
iennae merged 3 commits into
GoogleCloudPlatform:mainfrom
XrossFox:python-pillow-dependency-update-1
Jun 5, 2026
Merged

chore(multiple samples): bump pillow to 12.2.0 and restrict to python 3.10+#14251
iennae merged 3 commits into
GoogleCloudPlatform:mainfrom
XrossFox:python-pillow-dependency-update-1

Conversation

@XrossFox
Copy link
Copy Markdown
Contributor

@XrossFox XrossFox commented May 29, 2026

  • 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.

Description

Fixes b/517989048

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. api: people-and-planet-ai api: vision Issues related to the Cloud Vision API. labels May 29, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the pillow dependency to version 12.2.0 (restricted to Python >= 3.10) across multiple requirements.txt files. The reviewer noted that restricting pillow to Python >= 3.10 without providing a fallback for older Python versions will cause installation and runtime issues on environments running Python 3.8 or 3.9, which are still supported by other dependencies in these files. It is recommended to add a fallback pin (such as pillow==10.4.0; python_version < "3.10") to maintain backward compatibility.

Comment thread appengine/flexible/scipy/requirements.txt Outdated
Comment thread generative_ai/embeddings/requirements.txt Outdated
Comment thread vision/snippets/crop_hints/requirements.txt
… 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.
@XrossFox XrossFox force-pushed the python-pillow-dependency-update-1 branch from 92a8c3c to 0b8ee14 Compare June 4, 2026 18:08
@XrossFox XrossFox marked this pull request as ready for review June 4, 2026 18:49
@XrossFox XrossFox requested review from a team as code owners June 4, 2026 18:49
Comment thread appengine/flexible/scipy/requirements.txt Outdated
Comment thread appengine/flexible/scipy/requirements.txt Outdated
Comment thread generative_ai/embeddings/requirements.txt Outdated
Comment thread generative_ai/evaluation/requirements.txt Outdated
Comment thread generative_ai/extensions/requirements.txt Outdated
Copy link
Copy Markdown
Contributor

@amcolin amcolin left a comment

Choose a reason for hiding this comment

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

LGTM!

@iennae iennae merged commit 1b85d7e into GoogleCloudPlatform:main Jun 5, 2026
9 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: appengine Issues related to the App Engine Admin API API. api: people-and-planet-ai api: vision Issues related to the Cloud Vision API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants