Hello community, here is the log from the commit of package python-Pillow for openSUSE:Factory checked in at 2017-04-28 10:37:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Pillow (Old) and /work/SRC/openSUSE:Factory/.python-Pillow.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Pillow" Fri Apr 28 10:37:25 2017 rev:24 rq:487696 version:4.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Pillow/python-Pillow.changes 2016-10-10 16:18:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-Pillow.new/python-Pillow.changes 2017-04-28 10:37:42.795165352 +0200 @@ -1,0 +2,401 @@ +Wed Apr 12 19:01:50 UTC 2017 - toddrme2...@gmail.com + +- Fix download URL. + +------------------------------------------------------------------- +Wed Apr 12 17:33:12 UTC 2017 - toddrme2...@gmail.com + +- Update to 4.1.0 + * Close files after loading if possible #2330 + * Fix Image Access to be reloadable when embedding the Python interpreter + #2296 + * Fetch DPI from EXIF if not specified in JPEG header #2449, #2472 + * Removed winbuild checksum verification #2468 + * Git: Set ContainerIO test file as binary #2469 + * Remove superfluous import of FixTk #2455 + * Fix import of tkinter/Tkinter #2456 + * Pure Python Decoders, including Python decoder to fix for MSP images #1938 + * Reorganized GifImagePlugin, fixes #2314. #2374 + * Doc: Reordered operating systems in Compatibility Matrix #2436 + * Test: Additional tests for BurfStub, Eps, Container, GribStub, IPTC, Wmf, + XVThumb, ImageDraw, ImageMorph ImageShow #2425 + * Health fixes #2437 + * Test: Correctness tests ContainerIO, XVThumbImagePlugin, + BufrStubImagePlugin, GribStubImagePlugin, FitsStubImagePlugin, + Hdf5StubImagePlugin, PixarImageFile, PsdImageFile #2443, #2442, #2441, #2440, + #2431, #2430, #2428, #2427 + * Remove unused imports #1822 + * Replaced KeyError catch with dictionary get method #2424 + * Test: Removed unrunnable code in test_image_toqimage #2415 + * Removed use of spaces in TIFF kwargs names, deprecated in 2.7 #1390 + * Removed deprecated ImageDraw setink, setfill, setfont methods #2220 + * Send unwanted subprocess output to /dev/null #2253 + * Fix division by zero when creating 0x0 image from numpy array #2419 + * Test: Added matrix convert tests #2381 + * Replaced broken URL to partners.adobe.com #2413 + * Removed unused private functions in setup.py and build_dep.py #2414 + * Test: Fixed Qt tests for QT5 and saving 1 bit PNG #2394 + * Test: docker builds for Arch and Debian Stretch #2394 + * Updated libwebp to 0.6.0 on appveyor #2395 + * More explicit error message when saving to a file with invalid extension + #2399 + * Docs: Update some http urls to https #2403 + * Preserve aux/alpha channels when performing Imagecms transforms #2355 + * Test linear and radial gradient effects #2382 + * Test ImageDraw.Outline and and ImageDraw.Shape #2389 + * Added PySide to ImageQt documentation #2392 + * BUG: Empty image mode no longer causes a crash #2380 + * Exclude .travis and contents from manifest #2386 + * Remove 'MIT-like' from license #2145 + * Tests: Add tests for several Image operations #2379 + * PNG: Moved iCCP chunk before PLTE chunk when saving as PNG, restricted + chunks known value/ordering #2347 + * Default to inch-interpretation for missing ResolutionUnit in + TiffImagePlugin #2365 + * Bug: Fixed segfault when using ImagingTk on pypy Issue #2376, #2359. + * Bug: Fixed Integer overflow using ImagingTk on 32 bit platforms #2359 + * Tests: Added docker images for testing alternate platforms. See also + https://github.com/python-pillow/docker-images. #2368 + * Removed PIL 1.0 era TK readme that concerns Windows 95/NT #2360 + * Prevent `nose -v` printing docstrings #2369 + * Replaced absolute PIL imports with relative imports #2349 + * Added context managers for file handling #2307 + * Expose registered file extensions in Image #2343 + * Make mode descriptor cache initialization thread-safe. #2351 + * Updated Windows test dependencies: Freetype 2.7.1, zlib 1.2.11 #2331, + #2332, #2357 + * Followed upstream pngquant packaging reorg to libimagquant #2354 + * Fix invalid string escapes #2352 + * Add test for crop operation with no argument #2333 +- update to version 4.0.0: + * Refactor out postprocessing hack to load_end in PcdImageFile + [wiredfool] + * Add center and translate option to Image.rotate. #2328 [lambdafu] + * Test: Relax WMF test condition, fixes #2323 [wiredfool] + * Allow 0 size images, Fixes #2259, Reverts to pre-3.4 + behavior. [wiredfool] + * SGI: Save uncompressed SGI/BW/RGB/RGBA files #2325 [jbltx] + * Depends: Updated pngquant to 2.8.2 #2319 [radarhere] + * Test: Added correctness tests for opening SGI images #2324 + [wiredfool] + * Allow passing a list or tuple of individual frame durations when + saving a GIF #2298 [Xdynix] + * Unified different GIF optimize conditions #2196 [radarhere] + * Build: Refactor dependency installation #2305 [hugovk] + * Test: Add python 3.6 to travis, tox #2304 [hugovk] + * Test: Fix coveralls coverage for Python+C #2300 [hugovk] + * Remove executable bit and shebang from OleFileIO.py #2308 [jwilk, + radarhere] + * PyPy: Buffer interface workaround #2294 [wiredfool] + * Test: Switch to Ubuntu Trusty 14.04 on Travis CI #2294 + * Remove vendored version of olefile Python package in favor of + upstream #2199 [jdufresne] + * Updated comments to use print as a function #2234 [radarhere] + * Set executable flag on selftest.py, setup.py and added shebang + line #2282, #2277 [radarhere, homm] + * Test: Increase epsilon for FreeType 2.7 as rendering is slightly + different. #2286 [hugovk] + * Test: Faster assert_image_similar #2279 [homm] + * Removed depreciated internal "stretch" method #2276 [homm] + * Removed the handles_eof flag in decode.c #2223 [wiredfool] + * Tiff: Fix for writing Tiff to BytesIO using libtiff #2263 + [wiredfool] + * Doc: Design docs #2269 [wiredfool] + * Test: Move tests requiring libtiff to test_file_libtiff #2273 + [wiredfool] + * Update Maxblock heuristic #2275 [wiredfool] + * Fix for 2-bit palette corruption #2274 [pdknsk, wiredfool] + * Tiff: Update info.icc_profile when using libtiff reader. #2193 + [lambdafu] + * Test: Fix bug in test_ifd_rational_save when libtiff is not + available #2270 [ChristopherHogan] + * ICO: Only save relevant sizes #2267 [hugovk] + * ICO: Allow saving .ico files of 256x256 instead of 255x255 #2265 + [hugovk] + * Fix TIFFImagePlugin ICC color profile saving. #2087 [cskau] + * Doc: Improved description of ImageOps.deform resample parameter + #2256 [radarhere] + * EMF: support negative bounding box coordinates #2249 [glexey] + * Close file if opened in WalImageFile #2216 [radarhere] + * Use Image._new() instead of _makeself() #2248 [homm] + * SunImagePlugin fixes #2241 [wiredfool] + * Use minimal scale for jpeg drafts #2240 [homm] + * Updated dependency scripts to use FreeType 2.7, OpenJpeg 2.1.2, + WebP 0.5.2 and Tcl/Tk 8.6.6 #2235, #2236, #2237, #2290, #2302 + [radarhere] + * Fix "invalid escape sequence" bytestring warnings in Python 3.6 + #2186 [timgraham] + * Removed support for Python 2.6 and Python 3.2 #2192 [jdufresne] + * Setup: Raise custom exceptions when required/requested + dependencies are not found #2213 [wiredfool] + * Use a context manager in FontFile.save() to ensure file is always + closed #2226 [jdufresne] + * Fixed bug in saving to fp-objects in Python >= 3.4 #2227 + [radarhere] + * Use a context manager in ImageFont._load_pilfont() to ensure file + is always closed #2232 [jdufresne] + * Use generator expressions instead of list comprehension #2225 + [jdufresne] + * Close file after reading in ImagePalette.load() #2215 [jdufresne] + * Changed behaviour of default box argument for paste method to + match docs #2211 [radarhere] + * Add support for another BMP bitfield #2221 [jmerdich] + * Added missing top-level test __main__ #2222 [radarhere] + * Replaced range(len()) #2197 [radarhere] + * Fix for ImageQt Segfault, fixes #1370 #2182 [wiredfool] + * Setup: Close file in setup.py after finished reading #2208 + [jdufresne] + * Setup: optionally use pkg-config (when present) to detect + dependencies #2074 [garbas] + * Search for tkinter first in builtins #2210 [matthew-brett] + * Tests: Replace try/except/fail pattern with + TestCase.assertRaises() #2200 [jdufresne] + * Tests: Remove unused, open files at top level of tests #2188 + [jdufresne] + * Replace type() equality checks with isinstance #2184 [jdufresne] + * Doc: Move ICO out of the list of read-only file formats #2180 + [alexwlchan] + * Doc: Fix formatting, too-short title underlines and malformed + table #2175 [hugovk] + * Fix BytesWarnings #2172 [jdufresne] + * Use Integer division to eliminate deprecation warning. #2168 + [mastermatt] + * Doc: Update compatibility matrix [daavve, wiredfool] +- update to version 3.4.2: + * Fix Resample coefficient calculation #2161 [homm] +- update to version 3.4.1: + * Allow lists as arguments for Image.new() #2149 [homm] + * Fix fix for map.c overflow #2151 (also in 3.3.3) [wiredfool] +- update to version 3.4.0: + * Removed Image.core.open_ppm, added negative image size checks in + Image.py. #2146 [wiredfool] + * Windows build: fetch dependencies from pillow-depends #2095 + [hugovk] + * Add TIFF save_all writer. #2140 [lambdafu, vashek] + * Move libtiff fd duplication to _load_libtiff #2141 [sekrause] + * Speed up GIF save optimization step, fixes #2093. #2133 + [wiredfool] + * Fix for ImageCms Segfault, Issue #2037. #2131 [wiredfool] + * Make Image.crop an immediate operation, not lazy. #2138 + [wiredfool] + * Skip empty values in ImageFileDirectory #2024 [homm] + * Force reloading palette when using mmap in ImageFile. #2139 + [lambdafu] + * Fix "invalid escape sequence" warning in Python 3.6 #2136 + [timgraham] + * Update documentation about drafts #2137 [radarhere] + * Converted documentation parameter format, comments to docstrings + #2021 [radarhere] + * Fixed typos #2128 #2142 [radarhere] + * Renamed references to OS X to macOS #2125 2130 [radarhere] + * Use truth value when checking for progressive and optimize option + on save #2115, #2129 [radarhere] + * Convert DPI to ints when saving as JPEG #2102 [radarhere] + * Added append_images parameter to GIF saving #2103 [radarhere] + * Speedup paste with masks up to 80% #2015 [homm] + * Rewrite DDS decoders in C, add DXT3 and BC7 decoders #2068 + [Mischanix] ++++ 204 more lines (skipped) ++++ between /work/SRC/openSUSE:Factory/python-Pillow/python-Pillow.changes ++++ and /work/SRC/openSUSE:Factory/.python-Pillow.new/python-Pillow.changes Old: ---- Pillow-3.1.1.tar.gz python-Pillow-tests-update-epsilon-for-freetype27.patch New: ---- Pillow-4.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Pillow.spec ++++++ --- /var/tmp/diff_new_pack.lG08Ix/_old 2017-04-28 10:37:44.486926233 +0200 +++ /var/tmp/diff_new_pack.lG08Ix/_new 2017-04-28 10:37:44.490925667 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Pillow # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,22 +16,31 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Pillow -Version: 3.1.1 +Version: 4.1.0 Release: 0 Summary: Python Imaging Library (Fork) License: HPND Group: Development/Languages/Python Url: http://python-imaging.github.io/ -Source: https://pypi.python.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz -# PATCH-FIX-UPSTREAM python-Pillow-tests-update-epsilon-for-freetype27.patch gh#python-pillow/Pillow#2116 badshah...@gmail.com -- Fix buildfailures against freetype 2.7 by increasing the epsilon -Patch0: python-Pillow-tests-update-epsilon-for-freetype27.patch -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-tk +Source: https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module olefile} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tk} +BuildRequires: fdupes +BuildRequires: freetype2-devel +BuildRequires: libtiff-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 @@ -42,31 +51,29 @@ BuildRequires: libjpeg-turbo-devel BuildRequires: libwebp-devel %else -BuildRequires: python-unittest2 +BuildRequires: %{python_module unittest2} %endif %endif %if 0%{?suse_version} > 1315 BuildRequires: openjpeg2-devel %endif -BuildRequires: freetype2-devel -BuildRequires: libtiff-devel -BuildRequires: python-nose -BuildRequires: zlib-devel -Requires(post): update-alternatives -Requires(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%ifpython2 +Obsoletes: %{oldpython}-imaging-sane +Provides: %{oldpython}-imaging-sane + # Pillow is a friendly PIL fork which we package as 'imaging', the latter isn't obsolete though: -Conflicts: python-imaging < %{version} # NOTE(saschpe): python-imaging should have never provided this and I'm a bit relucatant do it either. # http://en.opensuse.org/openSUSE:Upgrade_dependencies_explanation#Replace_a_package_by_another_with_the_same_functionality # ALSO NOTE (frispete): without providing python-imaging, all packages requiring it will break -Provides: python-imaging = %{version} - -Obsoletes: python-imaging-sane -Provides: python-imaging-sane +Conflicts: %{oldpython}-imaging < %{version} +Provides: %{oldpython}-imaging = %{version} +%endif +# explicitly do this for python 2 and 3 but not other versions which never had an -imaging package +%ifpython3 +Conflicts: python3-imaging < %{version} +Provides: python3-imaging = %{version} +%endif +%python_subpackages %description Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the @@ -76,13 +83,15 @@ Summary: Python Imaging Library (Fork) - Tcl/Tk Module Group: Development/Languages/Python Requires: %{name} = %{version} +%ifpython2 # NOTE: We don't need to conflict with python-imaging here, # because this package depends on python-Pillow, which already conflicts with python-imaging, # so this cannot be installed alongside python-imaging # And we cannot conflict with python-imaging directly, since python-Pillow provides python-imaging # Just in case, conflict with python-imaging-tk in case it is ever implemented. -Obsoletes: python-imaging-tk -Provides: python-imaging-tk +Obsoletes: %{oldpython}-imaging-tk +Provides: %{oldpython}-imaging-tk +%endif %description tk Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the @@ -93,105 +102,61 @@ %prep %setup -q -n Pillow-%{version} -%patch0 -p1 %build -# no need to build it here, as setup.py install will build it again, anyway +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives +%python_install for p in pilconvert pildriver pilfile pilfont pilprint createfontdatachunk enhancer explode gifmaker painter player thresholder viewer; do - mv %{buildroot}%{_bindir}/$p.py %{buildroot}%{_bindir}/$p-%{py_ver} - ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p - touch %{buildroot}%{_sysconfdir}/alternatives/$p + # retain old alternative-based names + mv %{buildroot}%{_bindir}/$p.py %{buildroot}%{_bindir}/$p done + +%fdupes %{buildroot}%{_prefix} # add missing path -echo "PIL" > %{buildroot}%{python_sitearch}/PIL.pth +%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth} %check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} %ifarch ppc ppc64 s390 s390x -PYTHONPATH=%{buildroot}/%{python_sitearch} python selftest.py --installed || \ +$python selftest.py --installed || \ echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204" -PYTHONPATH=%{buildroot}/%{python_sitearch} python test-installed.py || \ +$python test-installed.py || \ echo "WARNING ignore failure https://github.com/python-pillow/Pillow/issues/1204" %else -PYTHONPATH=%{buildroot}/%{python_sitearch} python selftest.py --installed -PYTHONPATH=%{buildroot}/%{python_sitearch} python test-installed.py +$python selftest.py --installed +$python test-installed.py %endif +} -%post -update-alternatives \ - --install %{_bindir}/pilconvert pilconvert %{_bindir}/pilconvert-%{py_ver} 20 \ - --slave %{_bindir}/pildriver pildriver %{_bindir}/pildriver-%{py_ver} \ - --slave %{_bindir}/pilfile pilfile %{_bindir}/pilfile-%{py_ver} \ - --slave %{_bindir}/pilfont pilfont %{_bindir}/pilfont-%{py_ver} \ - --slave %{_bindir}/pilprint pilprint %{_bindir}/pilprint-%{py_ver} \ - --slave %{_bindir}/createfontdatachunk createfontdatachunk %{_bindir}/createfontdatachunk-%{py_ver} \ - --slave %{_bindir}/enhancer enhancer %{_bindir}/enhancer-%{py_ver} \ - --slave %{_bindir}/explode explode %{_bindir}/explode-%{py_ver} \ - --slave %{_bindir}/gifmaker gifmaker %{_bindir}/gifmaker-%{py_ver} \ - --slave %{_bindir}/painter painter %{_bindir}/painter-%{py_ver} \ - --slave %{_bindir}/player player %{_bindir}/player-%{py_ver} \ - --slave %{_bindir}/thresholder thresholder %{_bindir}/thresholder-%{py_ver} \ - --slave %{_bindir}/viewer viewer %{_bindir}/viewer-%{py_ver} - -%preun -if [ $1 -eq 0 ] ; then - update-alternatives --remove pilconvert %{_bindir}/pilconvert-%{py_ver} -fi - -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst README.rst LICENSE -%{_bindir}/pilconvert -%{_bindir}/pildriver -%{_bindir}/pilfile -%{_bindir}/pilfont -%{_bindir}/pilprint -%{_bindir}/createfontdatachunk -%{_bindir}/enhancer -%{_bindir}/explode -%{_bindir}/gifmaker -%{_bindir}/painter -%{_bindir}/player -%{_bindir}/thresholder -%{_bindir}/viewer -%{_bindir}/pilconvert-%{py_ver} -%{_bindir}/pildriver-%{py_ver} -%{_bindir}/pilfile-%{py_ver} -%{_bindir}/pilfont-%{py_ver} -%{_bindir}/pilprint-%{py_ver} -%{_bindir}/createfontdatachunk-%{py_ver} -%{_bindir}/enhancer-%{py_ver} -%{_bindir}/explode-%{py_ver} -%{_bindir}/gifmaker-%{py_ver} -%{_bindir}/painter-%{py_ver} -%{_bindir}/player-%{py_ver} -%{_bindir}/thresholder-%{py_ver} -%{_bindir}/viewer-%{py_ver} +%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%{py_ver}.egg-info +%{python_sitearch}/Pillow-%{version}-py%{python_version}.egg-info %exclude %{python_sitearch}/PIL/ImageTk* %exclude %{python_sitearch}/PIL/_imagingtk* -%ghost %{_sysconfdir}/alternatives/pilconvert -%ghost %{_sysconfdir}/alternatives/pildriver -%ghost %{_sysconfdir}/alternatives/pilfile -%ghost %{_sysconfdir}/alternatives/pilfont -%ghost %{_sysconfdir}/alternatives/pilprint -%ghost %{_sysconfdir}/alternatives/createfontdatachunk -%ghost %{_sysconfdir}/alternatives/enhancer -%ghost %{_sysconfdir}/alternatives/explode -%ghost %{_sysconfdir}/alternatives/gifmaker -%ghost %{_sysconfdir}/alternatives/painter -%ghost %{_sysconfdir}/alternatives/player -%ghost %{_sysconfdir}/alternatives/thresholder -%ghost %{_sysconfdir}/alternatives/viewer +%pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.* -%files tk +%files %{python_files tk} %defattr(-,root,root,-) %{python_sitearch}/PIL/ImageTk* %{python_sitearch}/PIL/_imagingtk* +%pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.* %changelog ++++++ Pillow-3.1.1.tar.gz -> Pillow-4.1.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-Pillow/Pillow-3.1.1.tar.gz /work/SRC/openSUSE:Factory/.python-Pillow.new/Pillow-4.1.0.tar.gz differ: char 5, line 1