-
Notifications
You must be signed in to change notification settings - Fork 6.7k
chore(multiple samples): bump pillow to 12.2.0 and restrict to python 3.10+ #14251
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| google-genai==1.42.0 | ||
| pillow==11.1.0 | ||
| pillow==12.2.0; python_version >= "3.10" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| google-genai==1.60.0 | ||
| pillow==11.1.0 | ||
| pillow==12.2.0; python_version >= "3.10" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| google-genai==1.42.0 | ||
| pillow==11.1.0 | ||
| pillow==12.2.0; python_version >= "3.10" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restricting |
||
| google-cloud-aiplatform[all]==1.84.0 | ||
| sentencepiece==0.2.0 | ||
| google-auth==2.29.0 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" |
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.
By restricting
pillowtopython_version >= "3.10"without providing a fallback for older Python versions, environments running Python 3.8 or 3.9 (which are still supported by other dependencies in this file, such asnumpy==1.24.4andscipy==1.10.1) will fail to installpillowentirely. This will lead toModuleNotFoundErrorat runtime. Please add a fallback pin for Python < 3.10.