-
Notifications
You must be signed in to change notification settings - Fork 6.6k
chore(deps): update dependency pillow to v12 #13605
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
base: main
Are you sure you want to change the base?
chore(deps): update dependency pillow to v12 #13605
Conversation
Summary of ChangesHello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request performs a routine dependency update for the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This PR updates the pillow dependency to v12.0.0 across many requirements.txt files. This is a major version upgrade from various versions (v9, v10, v11), which introduces breaking changes. My review focuses on two main points:
- Risk of Breaking Changes: The update from older versions of Pillow, especially v9.5.0, to v12.0.0 is significant. Pillow v10.0.0 removed many deprecated APIs. Since this PR only contains dependency updates and no code modifications, there's a critical risk of runtime failures if the application code uses any of these removed features. I've added comments with
criticalorhighseverity to highlight this risk on the affected files. It is essential to thoroughly test the application to ensure compatibility. - Dependency Consolidation: In several
requirements.txtfiles, thepillowdependency was specified multiple times with version markers for different Python versions. Since the updated version is the same across all Python versions, I've suggested consolidating these into a single line for improved maintainability.
Please review the detailed comments and ensure the application is fully tested against these changes before merging.
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.
Additionally, since the version is now the same for all python versions, these two lines can be consolidated.
pillow==12.0.0
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.
Additionally, since the version is now the same for all python versions, these two lines can be consolidated.
pillow==12.0.0
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.
Additionally, since the version is now the same for all python versions, these two lines can be consolidated.
pillow==12.0.0
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.
Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.
pillow==12.0.0
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.
Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.
pillow==12.0.0
| pillow==12.0.0; python_version < '3.8' | ||
| pillow==12.0.0; python_version >= '3.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.
Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.
pillow==12.0.0
| @@ -1,3 +1,3 @@ | |||
| pillow==10.3.0 | |||
| pillow==12.0.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating Pillow from v10.3.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes. Given this is a dependency-only update, it's crucial to verify that no breaking changes from Pillow v11 and v12 affect this application.
| @@ -1,2 +1,2 @@ | |||
| google-genai==1.42.0 | |||
| pillow==11.1.0 | |||
| pillow==12.0.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| google-genai==1.42.0 | ||
| # PIl is required for tools_code_execution_with_txt_img.py | ||
| pillow==11.1.0 | ||
| pillow==12.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,2 +1,2 @@ | |||
| google-genai==1.42.0 | |||
| pillow==11.1.0 | |||
| pillow==12.0.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR contains the following updates:
==10.4.0->==12.0.0==10.4.0->==12.0.0==9.5.0->==12.0.0==10.3.0->==12.0.0==11.1.0->==12.0.0Release Notes
python-pillow/Pillow (Pillow)
v12.0.0Compare Source
v11.3.0Compare Source
https://pillow.readthedocs.io/en/stable/releasenotes/11.3.0.html
Deprecations
Documentation
Makefile#8933 [@hugovk]Dependencies
Testing
matchparameter topytest.warns()#9038 [@hugovk]Type hints
Other changes
make [-C docs] htmlliveto rebuild and reload HTML files #8913 [@hugovk]v11.2.1Compare Source
https://pillow.readthedocs.io/en/stable/releasenotes/11.2.1.html
Deprecations
Documentation
Dependencies
Testing
make cleanorpipin tox #8754 [@hugovk]Type hints
Other changes
startswith/endswithonce with a tuple, andrangewithoutstart=0#8799 [@hugovk]startswith/endswith#8761 [@hugovk]pythoncapi_compat.hto fix building with PyPy3.11 #8757 [@mgorny]Image._wedge#8755 [@hugovk]bdf_slantandbdf_spacingvariables #8753 [@hugovk]v11.1.0Compare Source
See GitHub Releases:
v11.0.0Compare Source
Update licence to MIT-CMU #8460
[hugovk]
Conditionally define ImageCms type hint to avoid requiring core #8197
[radarhere]
Support writing LONG8 offsets in AppendingTiffWriter #8417
[radarhere]
Use ImageFile.MAXBLOCK when saving TIFF images #8461
[radarhere]
Do not close provided file handles with libtiff when saving #8458
[radarhere]
Support ImageFilter.BuiltinFilter for I;16* images #8438
[radarhere]
Use ImagingCore.ptr instead of ImagingCore.id #8341
[homm, radarhere, hugovk]
Updated EPS mode when opening images without transparency #8281
[Yay295, radarhere]
Use transparency when combining P frames from APNGs #8443
[radarhere]
Support all resampling filters when resizing I;16* images #8422
[radarhere]
Free memory on early return #8413
[radarhere]
Cast int before potentially exceeding INT_MAX #8402
[radarhere]
Check image value before use #8400
[radarhere]
Improved copying imagequant libraries #8420
[radarhere]
Use Capsule for WebP saving #8386
[homm, radarhere]
Fixed writing multiple StripOffsets to TIFF #8317
[Yay295, radarhere]
Fix
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.