From ff884c0ddb28d572e7e9b3c94062011e93dee8f3 Mon Sep 17 00:00:00 2001 From: Stefan <96178532+stefan6419846@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:13:01 +0200 Subject: [PATCH] MAINT: Add minimum Pillow version requirement (#2022) pypdf uses the `formats` option for `Image.open`, which is not available before Pillow 8.0.0 See https://pillow.readthedocs.io/en/stable/releasenotes/8.0.0.html#api-additions Closes #2019 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2bec04237..e99a9945e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,9 +38,9 @@ Source = "https://github.com/py-pdf/pypdf" Changelog = "https://pypdf.readthedocs.io/en/latest/meta/CHANGELOG.html" [project.optional-dependencies] -full = ["PyCryptodome", "Pillow"] +full = ["PyCryptodome", "Pillow>=8.0.0"] crypto = ["PyCryptodome"] -image = ["Pillow"] +image = ["Pillow>=8.0.0"] dev = ["black", "pip-tools", "pre-commit<2.18.0", "pytest-cov", "pytest-socket", "flit", "wheel"] docs = ["sphinx", "sphinx_rtd_theme", "myst_parser"]