commit python-Pillow for openSUSE:Factory
Hello community, here is the log from the commit of package python-Pillow for openSUSE:Factory checked in at 2018-01-13 21:35:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Pillow (Old) and /work/SRC/openSUSE:Factory/.python-Pillow.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-Pillow" Sat Jan 13 21:35:35 2018 rev:27 rq:563835 version:5.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Pillow/python-Pillow.changes 2017-08-29 11:37:29.383999188 +0200 +++ /work/SRC/openSUSE:Factory/.python-Pillow.new/python-Pillow.changes 2018-01-13 21:36:25.497455938 +0100 @@ -1,0 +2,139 @@ +Fri Jan 12 12:52:24 UTC 2018 - idonmez@suse.com + +- Add freetype-2.9.patch to fix tests with FreeType 2.9 gh#2954 + +------------------------------------------------------------------- +Wed Jan 10 13:31:48 UTC 2018 - tchvatal@suse.com + +- Remove other distro conditions as they can't use singlespec really +- Version update to 5.0.0: + * Docs: Added docstrings from documentation #2914 [radarhere] + * Test: Switch from nose to pytest #2815 [hugovk] + * Rework Source directory layout, preventing accidental import of PIL. #2911 [wiredfool] + * Dynamically link libraqm #2753 [wiredfool] + * Removed scripts directory #2901 [wiredfool] + * TIFF: Run all compressed tiffs through libtiff decoder #2899 [wiredfool] + * GIF: Add disposal option when saving GIFs #2902 [linnil1, wiredfool] + * EPS: Allow for an empty line in EPS header data #2903 [radarhere] + * PNG: Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk present #2898 [wiredfool] + * Dependencies: Update Tk Tcl to 8.6.8 #2905 [radarhere] + * Decompression bomb error now raised for images 2x larger than a decompression bomb warning #2583 [wiredfool] + * Test: avoid random failure in test_effect_noise #2894 [hugovk] + * Increased epsilon for test_file_eps.py:test_showpage due to Arch update. #2896 [wiredfool] + * Removed check parameter from _save in BmpImagePlugin, PngImagePlugin, ImImagePlugin, PalmImagePlugin, and PcxImagePlugin. #2873 [radarhere] + * Make PngImagePlugin.add_text() zip argument type bool #2890 [jdufresne] + * Depends: Updated libwebp to 0.6.1 #2880 [radarhere] + * Remove unnecessary bool() calls in Image.registered_extensions and skipKnownBadTests #2891 [jdufresne] + * Fix count of BITSPERSAMPLE items in broken TIFF files #2883 [homm] + * Fillcolor parameter for Image.Transform #2852 [wiredfool] + * Test: Display differences for test failures #2862 [wiredfool] + * Added executable flag to file with shebang line #2884 [radarhere] + * Setup: Specify compatible Python versions for pip #2877 [hugovk] + * Dependencies: Updated libimagequant to 2.11.4 #2878 [radarhere] + * Setup: Warn if trying to install for Py3.7 on Windows #2855 [hugovk] + * Doc: Fonts can be loaded from a file-like object, not just filename #2861 [robin-norwood] + * Add eog support for Ubuntu Image Viewer #2864 [NafisFaysal] + * Test: Test on 3.7-dev on Travis.ci #2870 [hugovk] + * Dependencies: Update libtiff to 4.0.9 #2871 [radarhere] + * Setup: Replace deprecated platform.dist with file existence check #2869 [wiredfool] + * Build: Fix setup.py on Debian #2853 [wiredfool] + * Docs: Correct error in ImageDraw documentation #2858 [meribold] + * Test: Drop Ubuntu Precise, Fedora 24, Fedora 25, add Fedora 27, Centos 7, Amazon v2 CI Support #2854, #2843, #2895, #2897 [wiredfool] + * Dependencies: Updated libimagequant to 2.11.3 #2849 [radarhere] + * Test: Fix test_image.py to use tempfile #2841 [radarhere] + * Replace PIL.OleFileIO deprecation warning with descriptive ImportError #2833 [hugovk] + * WebP: Add support for animated WebP files #2761 [jd20] + * PDF: Set encoderinfo for images when saving multi-page PDF. Fixes #2804. #2805 [ixio] + * Allow the olefile dependency to be optional #2789 [jdufresne] + * GIF: Permit LZW code lengths up to 12 bits in GIF decode #2813 [wiredfool] + * Fix unterminiated string and unchecked exception in _font_text_asBytes. #2825 [wiredfool] + * PPM: Use fixed list of whitespace, rather relying on locale, fixes #272. #2831 [markmiscavage] + * Added support for generators when using append_images #2829, #2835 [radarhere] + * Doc: Correct PixelAccess.rst #2824 [hasahmed] + * Depends: Update raqm to 0.3.0 #2822 [radarhere] + * Docs: Link to maintained version of aggdraw #2809 [hugovk] + * Include license file in the generated wheel packages #2801 [jdufresne] + * Depends: Update openjpeg to 2.3.0 #2791 [radarhere] + * Add option to Makefile to build and install with C coverage #2781 [hugovk] + * Add context manager support to ImageFile.Parser and PngImagePlugin.ChunkStream #2793 [radarhere] + * ImageDraw.textsize: fix zero length error #2788 [wiredfool, hugovk] + * Fix warning on pointer cast in isblock #2775, #2778 [cgohlke] + * Doc: Added macOS High Sierra tested Pillow version #2777 [radarhere] + * Use correct Windows handle type on 64 bit in imagingcms #2774 [cgohlke] + * 64 Bit Windows fix for block storage #2773 [cgohlke] + * Fix "expression result unused" warning #2764 [radarhere] + * Add 16bit Read/Write and RLE read support to SgiImageFile #2769 [jbltx, wiredfool] + * Block & array hybrid storage #2738 [homm] + * Common seek frame position check #1849 [radarhere] + * Doc: Add note about aspect ratio to Image thumbnail script #2281 [wilsonge] + * Fix ValueError: invalid version number '1.0.0rc1' in scipy release candidate #2771 [cgohlke] + * Unfreeze requirements.txt #2766 [hugovk] + * Test: ResourceWarning tests #2756 [hugovk] + * Use n_frames to determine is_animated if possible #2315 [radarhere] + * Doc: Corrected parameters in documentation #2768 [radarhere] + * Avoid unnecessary Image operations #1891 [radarhere] + * Added register_extensions method #1860 [radarhere] + * Fix TIFF support for I;16S, I;16BS, and I;32BS rawmodes #2748 [wiredfool] + * Fixed doc syntax in ImageDraw #2752 [radarhere] + * Fixed support for building on Windows/msys2. Added Appveyor CI coverage for python3 on msys2 #2476 [wiredfool] + * Fix ValueError in Exif/Tiff IFD #2719 [wiredfool] + * Use pathlib2 for Path objects on Python < 3.4 #2291 [asergi] + * Export only required properties in unsafe_ptrs #2740 [homm] + * Alpha composite fixes #2709 [homm] + * Faster Transpose operations, added 'Transverse' option #2730 [homm] + * Deprecate ImageOps undocumented functions gaussian_blur, gblur, unsharp_mask, usm and box_blur in favor of ImageFilter implementations #2735 [homm] + * Dependencies: Updated freetype to 2.8.1 #2741 [radarhere] + * Bug: Player skipped first image #2742 [radarhere] + * Faster filter operations for Kernel, Gaussian, and Unsharp Mask filters #2679 [homm] + * EPS: Add showpage to force rendering of some EPS images #2636 [kaplun] + * DOC: Fix type of palette parameter in Image.quantize. #2703 [kkopachev] + * DOC: Fix Ico docs to match code #2712 [hugovk] + * Added file pointer save to SpiderImagePlugin #2647 [radarhere] + * Add targa version 2 footer #2713 [jhultgre] + * Removed redundant lines #2714 [radarhere] + * Travis CI: Use default pypy/pypy3 #2721 [hugovk] + * Fix for SystemError when rendering an empty string, added in 4.2.0 #2706 [wiredfool] + * Fix for memory leaks in font handling added in 4.2.0 #2634 [wiredfool] + * Tests: cleanup, more tests. Fixed WMF save handler #2689 [radarhere] + * Removed debugging interface for Image.core.grabclipboard #2708 [radarhere] + * Doc syntax fix #2710 [radarhere] + * Faster packing and unpacking for RGB, LA, and related storage modes #2693 [homm] + * Use RGBX rawmode for RGB JPEG images where possible #1989 [homm] + * Remove palettes from non-palette modes in _new #2702 [wiredfool] + * Delete transparency info when convert'ing RGB/L to RGBA #2633 [olt] + * Code tweaks to ease type annotations #2687 [neiljp] + * Fixed incorrect use of 's#' to byteslike object #2691 [wiredfool] + * Fix JPEG subsampling labels for subsampling=2 #2698 [homm] + * Region of interest (box) for resampling #2254 [homm] + * Basic support for Termux (android) in setup.py #2684 [wiredfool] + * Bug: Fix Image.fromarray for numpy.bool type. #2683 [wiredfool] + * CI: Add Fedora 24 and 26 to Docker tests [wiredfool] + * JPEG: Fix ZeroDivisionError when EXIF contains invalid DPI (0/0). #2667 [vytisb] + * Depends: Updated openjpeg to 2.2.0 #2669 [radarhere] + * Depends: Updated Tk Tcl to 8.6.7 #2668 [radarhere] + * Depends: Updated libimagequant to 2.10.2 #2660 [radarhere] + * Test: Added test for ImImagePlugin tell() #2675 [radarhere] + * Test: Additional tests for SGIImagePlugin #2659 [radarhere] + * New Image.getchannel method #2661 [homm] + * Remove unused im.copy2 and core.copy methods #2657 [homm] + * Fast Image.merge() #2677 [homm] + * Fast Image.split() #2676 [homm] + * Fast image allocation #2655 [homm] + * Storage cleanup #2654 [homm] + * FLI: Use frame count from FLI header #2674 [radarhere] + * Test: Test animated FLI file #2650 [hugovk] + * Bug: Fixed uninitialized memory in bc5 decoding #2648 [ifeherva] + * Moved SgiImagePlugin save error to before the start of write operations #2646 [radarhere] + * Move createfontdatachunk.py so isn't installed globally #2645 [hugovk] + * Bug: Fix unexpected keyword argument 'align' #2641 [hugovk] + * Add newlines to error message for clarity #2640 [hugovk] + * Docs: Updated redirected URL #2637 [radarhere] + * Bug: Fix JPEG DPI when EXIF is invalid #2632 [wiredfool] + * Bug: Fix for font getsize on empty string #2624 [radarhere] + * Docs: Improved ImageDraw documentation #2626 [radarhere] + * Docs: Corrected alpha_composite args documentation #2627 [radarhere] + * Docs: added the description of the filename attribute to images.rst #2621 [dasdachs] + * Dependencies: Updated libimagequant to 2.10.1 #2616 [radarhere] + * PDF: Renamed parameter to not shadow built-in dict #2612 [kijeong] + +------------------------------------------------------------------- Old: ---- Pillow-4.2.1.tar.gz New: ---- Pillow-5.0.0.tar.gz freetype-2.9.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Pillow.spec ++++++ --- /var/tmp/diff_new_pack.qMYAcz/_old 2018-01-13 21:36:26.225422023 +0100 +++ /var/tmp/diff_new_pack.qMYAcz/_new 2018-01-13 21:36:26.229421837 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Pillow # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,51 +16,42 @@ # -%if ! 0%{?is_opensuse} && 0%{?sle_version} && 0%{?sle_version} < 150000 -%bcond_with tk -%else -%bcond_without tk -%endif - %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?is_opensuse} || 0%{?suse_version} > 1330 +%bcond_without tk +%else +%bcond_with tk +%endif Name: python-Pillow -Version: 4.2.1 +Version: 5.0.0 Release: 0 Summary: Python Imaging Library (Fork) License: HPND Group: Development/Languages/Python Url: http://python-imaging.github.io/ Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz +# PATCH-FIX-UPSTREAM freetype-2.9.patch https://github.com/python-pillow/Pillow/issues/2954 +Patch1: freetype-2.9.patch BuildRequires: %{python_module devel} -BuildRequires: %{python_module nose} BuildRequires: %{python_module olefile} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -%if %{with tk} -BuildRequires: %{python_module tk} -%endif BuildRequires: fdupes BuildRequires: freetype2-devel +BuildRequires: libjpeg8-devel +BuildRequires: liblcms2-devel BuildRequires: libtiff-devel +BuildRequires: libwebp-devel BuildRequires: python-rpm-macros BuildRequires: tix BuildRequires: tk-devel BuildRequires: unzip BuildRequires: zlib-devel Requires: python-olefile -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1210 -BuildRequires: libjpeg8-devel -BuildRequires: liblcms2-devel -BuildRequires: libwebp-devel -%else -%if 0%{?rhel} > 6 -BuildRequires: lcms2-devel -BuildRequires: libjpeg-turbo-devel -BuildRequires: libwebp-devel -%else -BuildRequires: %{python_module unittest2} -%endif +%if %{with tk} +BuildRequires: %{python_module tk} %endif %if 0%{?suse_version} > 1315 BuildRequires: openjpeg2-devel @@ -102,21 +93,15 @@ Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. -#NOTE(saschpe): No 'sane' subpackage like "python-imaging", that stuff -# would belong into python-pysane, if anybody would care :-) - %prep %setup -q -n Pillow-%{version} +%patch1 -p1 %build %python_build %install %python_install -for p in pilconvert pildriver pilfile pilfont pilprint createfontdatachunk enhancer explode gifmaker painter player thresholder viewer; do - # retain old alternative-based names - mv %{buildroot}%{_bindir}/$p.py %{buildroot}%{_bindir}/$p -done %fdupes %{buildroot}%{_prefix} # add missing path @@ -127,30 +112,16 @@ %ifarch ppc ppc64 s390 s390x $python selftest.py --installed || \ echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204" -$python test-installed.py || \ +$python setup.py test || \ echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204" %else $python selftest.py --installed -$python test-installed.py +$python setup.py test %endif } %files %{python_files} -%defattr(-,root,root,-) %doc CHANGES.rst README.rst LICENSE -%python3_only %{_bindir}/pilconvert -%python3_only %{_bindir}/pildriver -%python3_only %{_bindir}/pilfile -%python3_only %{_bindir}/pilfont -%python3_only %{_bindir}/pilprint -%python3_only %{_bindir}/createfontdatachunk -%python3_only %{_bindir}/enhancer -%python3_only %{_bindir}/explode -%python3_only %{_bindir}/gifmaker -%python3_only %{_bindir}/painter -%python3_only %{_bindir}/player -%python3_only %{_bindir}/thresholder -%python3_only %{_bindir}/viewer %{python_sitearch}/PIL %{python_sitearch}/PIL.pth %{python_sitearch}/Pillow-%{version}-py%{python_version}.egg-info @@ -162,9 +133,7 @@ %endif %if %{with tk} - %files %{python_files tk} -%defattr(-,root,root,-) %{python_sitearch}/PIL/ImageTk* %{python_sitearch}/PIL/_imagingtk* %pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.* ++++++ Pillow-4.2.1.tar.gz -> Pillow-5.0.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-Pillow/Pillow-4.2.1.tar.gz /work/SRC/openSUSE:Factory/.python-Pillow.new/Pillow-5.0.0.tar.gz differ: char 5, line 1 ++++++ freetype-2.9.patch ++++++ Index: Pillow-5.0.0/Tests/test_imagefont.py =================================================================== --- Pillow-5.0.0.orig/Tests/test_imagefont.py +++ Pillow-5.0.0/Tests/test_imagefont.py @@ -58,6 +58,9 @@ class TestImageFont(PillowTestCase): ('2', '8'): {'multiline': 6.2, 'textsize': 2.5, 'getters': (12, 16)}, + ('2', '9'): {'multiline': 6.2, + 'textsize': 2.5, + 'getters': (12, 16)}, 'Default': {'multiline': 0.5, 'textsize': 0.5, 'getters': (12, 16)},
participants (1)
-
root@hilbert.suse.de