From 7dbc21776895924dff153f54f91d329a43a44fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sat, 28 Nov 2020 22:16:13 +0100 Subject: [PATCH 1/3] Remove restriction on Pillow version as it was there due to Py2 support --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 393de9c7..0353407a 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,7 @@ extra_opts = { "pytest-cov", "coverage<5.0", # recent coverage switched to sqlite format for the .coverage file which isn't handled properly by coveralls "blinker", - "Pillow>=2.0.0, <7.0.0", # 7.0.0 dropped Python2 support + "Pillow>=2.0.0", ], } From 0a05c1f5907543df4e3c5499349682ba66b13ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 29 Nov 2020 10:08:58 +0100 Subject: [PATCH 2/3] Fix image size that needs to be forced in test --- tests/fields/test_file_field.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fields/test_file_field.py b/tests/fields/test_file_field.py index de10c987..4f3f1d45 100644 --- a/tests/fields/test_file_field.py +++ b/tests/fields/test_file_field.py @@ -429,7 +429,7 @@ class TestFileField(MongoDBTestCase): @require_pil def test_image_field_resize(self): class TestImage(Document): - image = ImageField(size=(185, 37)) + image = ImageField(size=(185, 37, True)) TestImage.drop_collection() @@ -471,7 +471,7 @@ class TestFileField(MongoDBTestCase): @require_pil def test_image_field_thumbnail(self): class TestImage(Document): - image = ImageField(thumbnail_size=(92, 18)) + image = ImageField(thumbnail_size=(92, 18, True)) TestImage.drop_collection() From b1a2cf061d60fbc1199b556469c9c0cceb8b0b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 29 Nov 2020 10:22:41 +0100 Subject: [PATCH 3/3] update test requirement for pillow > 7.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0353407a..80819b13 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,7 @@ extra_opts = { "pytest-cov", "coverage<5.0", # recent coverage switched to sqlite format for the .coverage file which isn't handled properly by coveralls "blinker", - "Pillow>=2.0.0", + "Pillow>=7.0.0", ], }