From f41b3757dddfc1b950f0d21de3af6b81167cd3ba Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 21 Jan 2022 15:05:29 +0200 Subject: python3-pillow: Upgrade 8.3.2 -> 9.0.0 Upgrade to release 9.0.0: - Restrict builtins for ImageMath.eval() - Ensure JpegImagePlugin stops at the end of a truncated file - Fixed ImagePath.Path array handling - Remove consecutive duplicate tiles that only differ by their offset - Removed redundant part of condition - Explicitly enable strip chopping for large uncompressed TIFFs - Use the Windows method to get TCL functions on Cygwin - Changed error type to allow for incremental WebP parsing - Improved I;16 operations on big endian - Ensure that BMP pixel data offset does not ignore palette - Limit quantized palette to number of colors - Use latin1 encoding to decode bytes - Fixed palette index for zeroed color in FASTOCTREE quantize - When saving RGBA to GIF, make use of first transparent palette entry - Pass SAMPLEFORMAT to libtiff - Added rounding when converting P and PA - Improved putdata() documentation and data handling - Exclude carriage return in PDF regex to help prevent ReDoS - Image.NONE is only used for resampling and dithers - Fixed freeing pointer in ImageDraw.Outline.transform - Add Tidelift alignment action and badge - Replaced further direct invocations of setup.py - Added ImageShow support for xdg-open - Switched from deprecated "setup.py install" to "pip install ." - Support 16-bit grayscale ImageQt conversion - Fixed raising OSError in _safe_read when size is greater than SAFEBLOCK - Convert subsequent GIF frames to RGB or RGBA - WebP: Fix memory leak during decoding on failure - Do not prematurely return in ImageFile when saving to stdout - Added support for top right and bottom right TGA orientations - Corrected ICNS file length in header - Block tile TIFF tags when saving - Added line width argument to ImageDraw polygon - Do not redeclare class each time when converting to NumPy - Only prevent repeated polygon pixels when drawing with transparency - Fix pushes_fd method signature - Add support for pickling TrueType fonts - Only prefer command line tools SDK on macOS over default MacOSX SDK - Fix compilation on 64-bit Termux - Replace 'setup.py sdist' with '-m build --sdist' - Use declarative package configuration - Use title for display in ImageShow - Fix for PyQt6 - Rename master to main Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/python3-pillow_9.0.0.bb | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb (limited to 'meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb b/meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb new file mode 100644 index 0000000000..de3c92c3d3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb @@ -0,0 +1,37 @@ +SUMMARY = "Python Imaging Library (Fork). Pillow is the friendly PIL fork by Alex \ +Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and \ +Contributors." +HOMEPAGE = "https://pillow.readthedocs.io" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad081a0aede51e89f8da13333a8fb849" + +SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=9.0.x;protocol=https \ + file://0001-support-cross-compiling.patch \ + file://0001-explicitly-set-compile-options.patch \ +" +SRCREV ?= "82541b6dec8452cb612067fcebba1c5a1a2bfdc8" + +inherit setuptools3 + +DEPENDS += " \ + zlib \ + jpeg \ + tiff \ + freetype \ + lcms \ + openjpeg \ +" + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-misc \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-numbers \ +" + +CVE_PRODUCT = "pillow" + +S = "${WORKDIR}/git" + +RPROVIDES:${PN} += "python3-imaging" + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf