Hello community, here is the log from the commit of package python3-Pillow for openSUSE:Factory checked in at 2016-10-28 10:45:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Pillow (Old) and /work/SRC/openSUSE:Factory/.python3-Pillow.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Pillow" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Pillow/python3-Pillow.changes 2016-08-24 10:08:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Pillow.new/python3-Pillow.changes 2016-10-28 10:45:43.000000000 +0200 @@ -1,0 +2,8 @@ +Thu Sep 29 01:13:38 UTC 2016 - [email protected] + +- Add python3-Pillow-tests-update-epsilon-for-freetype27.patch: + Fix buildfailures against freetype 2.7 by increasing the epsilon + (gh#python-pillow/Pillow#2116); this seems to be the recommended + solution by upstream. + +------------------------------------------------------------------- New: ---- python3-Pillow-tests-update-epsilon-for-freetype27.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Pillow.spec ++++++ --- /var/tmp/diff_new_pack.sYDtut/_old 2016-10-28 10:45:44.000000000 +0200 +++ /var/tmp/diff_new_pack.sYDtut/_new 2016-10-28 10:45:44.000000000 +0200 @@ -24,6 +24,8 @@ Group: Development/Languages/Python Url: http://python-pillow.github.io/ Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python3-Pillow-tests-update-epsilon-for-freetype27.patch gh#python-pillow/Pillow#2116 [email protected] -- Fix buildfailures against freetype 2.7 by increasing the epsilon +Patch0: python3-Pillow-tests-update-epsilon-for-freetype27.patch BuildRequires: libjpeg8-devel BuildRequires: liblcms2-devel BuildRequires: libwebp-devel @@ -59,6 +61,7 @@ %prep %setup -q -n Pillow-%{version} +%patch0 -p1 %build # no need to build it here, as setup.py install will build it again, anyway ++++++ python3-Pillow-tests-update-epsilon-for-freetype27.patch ++++++ Index: Pillow-3.3.1/Tests/test_imagefont.py =================================================================== --- Pillow-3.3.1.orig/Tests/test_imagefont.py +++ Pillow-3.3.1/Tests/test_imagefont.py @@ -125,7 +125,9 @@ try: target = 'Tests/images/rectangle_surrounding_text.png' target_img = Image.open(target) - self.assert_image_similar(im, target_img, .5) + # Original epsilon=0.5 causes the test to fail with freetype >= 2.7 + # Setting it to ~2.5 fixes this failure + self.assert_image_similar(im, target_img, 2.5) def test_render_multiline(self): im = Image.new(mode='RGB', size=(300, 100)) @@ -144,7 +146,9 @@ try: # some versions of freetype have different horizontal spacing. # setting a tight epsilon, I'm showing the original test failure # at epsilon = ~38. - self.assert_image_similar(im, target_img, .5) + # Original epsilon=0.5 causes the test to fail with freetype >= 2.7 + # Setting it to ~6.5 fixes this failure + self.assert_image_similar(im, target_img, 6.2) def test_render_multiline_text(self): ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE) @@ -158,7 +162,9 @@ try: target = 'Tests/images/multiline_text.png' target_img = Image.open(target) - self.assert_image_similar(im, target_img, .5) + # Original epsilon=0.5 causes the test to fail with freetype >= 2.7 + # Setting it to ~6.5 fixes this failure + self.assert_image_similar(im, target_img, 6.2) # Test that text() can pass on additional arguments # to multiline_text() @@ -178,7 +184,9 @@ try: target = 'Tests/images/multiline_text'+ext+'.png' target_img = Image.open(target) - self.assert_image_similar(im, target_img, .5) + # Original epsilon=0.5 causes the test to fail with freetype >= 2.7 + # Setting it to ~6.5 fixes this failure + self.assert_image_similar(im, target_img, 6.2) def test_unknown_align(self): im = Image.new(mode='RGB', size=(300, 100)) @@ -227,7 +235,9 @@ try: target = 'Tests/images/multiline_text_spacing.png' target_img = Image.open(target) - self.assert_image_similar(im, target_img, .5) + # Original epsilon=0.5 causes the test to fail with freetype >= 2.7 + # Setting it to ~6.5 fixes this failure + self.assert_image_similar(im, target_img, 6.2) def test_rotated_transposed_font(self): img_grey = Image.new("L", (100, 100))
