From f1e34adcd566ec6f00d02d3f850589abd194f4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Sun, 5 Nov 2023 13:51:51 +0100 Subject: [PATCH] Relax Pillow and OpenCV version bounds. For Pillow, the change in commit e04e183b - chore: apply PIL major changes and increase min version specifier (#1237) that does the `font.getsize()` -> `font.getbbox()` migration is definitely already available in Pillow 9.2.0, see https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods > Deprecated since version 9.2.0. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 025807c3d..7889d7848 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ "numpy>=1.16.0,<2.0.0", "scipy>=1.4.0,<2.0.0", "h5py>=3.1.0,<4.0.0", - "opencv-python>=4.5.0,<5.0.0", + "opencv-python>=4.7.0,<5.0.0", "pypdfium2>=4.0.0,<5.0.0", "pyclipper>=1.2.0,<2.0.0", "shapely>=1.6.0,<3.0.0", @@ -46,7 +46,7 @@ dependencies = [ "rapidfuzz>=3.0.0,<4.0.0", "matplotlib>=3.1.0", "weasyprint>=55.0", - "Pillow>=10.0.0", + "Pillow>=9.2.0", "defusedxml>=0.7.0", "mplcursors>=0.3", "unidecode>=1.0.0",