From 45ff38c4d70cc3748cd5e74e935e647d73971769 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Fri, 13 Nov 2026 13:37:35 +0000 Subject: [PATCH] chore(deps): update Pillow to v13 on Python 3.11+ and disable Pillow updates for Python 3.10 --- .github/renovate.json5 | 9 +++++++++ packages/toolbox-langchain/pyproject.toml | 4 +++- packages/toolbox-llamaindex/pyproject.toml | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index f678f258f..43aeea807 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -71,6 +71,15 @@ matchCurrentValue: '/^<2$/', enabled: false, }, + { + description: 'Disable Pillow updates for Python < 3.11 (Pillow 13 requires Python >= 3.11)', + matchPackageNames: [ + 'Pillow', + 'pillow', + ], + matchCurrentValue: '/^==12\\./', + enabled: false, + }, ], customManagers: [ { diff --git a/packages/toolbox-langchain/pyproject.toml b/packages/toolbox-langchain/pyproject.toml index e5b374425..12b286758 100644 --- a/packages/toolbox-langchain/pyproject.toml +++ b/packages/toolbox-langchain/pyproject.toml @@ -50,7 +50,9 @@ test = [ "pytest-asyncio==1.4.0", "pytest==9.0.3", "pytest-cov==7.1.0", - "Pillow==12.3.0; python_version >= '3.10'", + # Pillow 13 requires Python >= 3.11; keep 12.x on 3.10. + "Pillow==12.3.0; python_version < '3.11'", + "Pillow==13.0.0; python_version >= '3.11'", "google-cloud-secret-manager==2.28.0", "google-cloud-storage==3.10.1", # numpy 2.x stubs use the Python 3.12 `type` statement; mypy rejects them on older Pythons. diff --git a/packages/toolbox-llamaindex/pyproject.toml b/packages/toolbox-llamaindex/pyproject.toml index 1633248ae..3d2e18d37 100644 --- a/packages/toolbox-llamaindex/pyproject.toml +++ b/packages/toolbox-llamaindex/pyproject.toml @@ -50,7 +50,9 @@ test = [ "pytest-asyncio==1.4.0", "pytest==9.0.3", "pytest-cov==7.1.0", - "Pillow==12.3.0; python_version >= '3.10'", + # Pillow 13 requires Python >= 3.11; keep 12.x on 3.10. + "Pillow==12.3.0; python_version < '3.11'", + "Pillow==13.0.0; python_version >= '3.11'", "google-cloud-secret-manager==2.28.0", "google-cloud-storage==3.10.1", # numpy 2.x stubs use the Python 3.12 `type` statement; mypy rejects them on older Pythons.