From ef6cecc28e8ddce528ba6aaef97be5db423f1755 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 26 Oct 2022 15:34:49 -0400 Subject: [PATCH] bump minimum version of Pillow to actual required minimum In commit a4fc7a11a90727195fd3edd781f2265aaf386a66 handling of Image.Transpose enum members was added, which is introduced in Pillow 9.1.0 as the superior way to handle constants: https://pillow.readthedocs.io/en/latest/deprecations.html#constants Previously, the minimum version was rather low. Make sure people cannot accidentally install WeasyPrint with too old Pillow. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f2fb14f7bd..01d8aaa2b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ 'tinycss2 >=1.0.0', 'cssselect2 >=0.1', 'Pyphen >=0.9.1', - 'Pillow >=4.0.0', + 'Pillow >=9.1.0', 'fonttools[woff] >=4.0.0', ] classifiers = [