From 547e701369b934eaff137358b2b71e687c1dbf12 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Fri, 7 Jul 2023 11:13:43 +0800 Subject: python3-pillow: upgrade 9.5.0 -> 10.0.0 Changelog: ========== Fixed deallocating mask images #7246 Added ImageFont.MAX_STRING_LENGTH #7244 Fix Windows build with pyproject.toml #7230 Do not close provided file handles with libtiff #7199 Convert to HSV if mode is HSV in getcolor() #7226 Added alpha_only argument to getbbox() #7123 Prioritise speed in _repr_png_ #7242 Do not use CFFI access by default on PyPy #7236 Limit size even if one dimension is zero in decompression bomb check #7235 Use --config-settings instead of deprecated --global-option #7171 Better C integer definitions #6645 Fixed finding dependencies on Cygwin #7175 Changed grabclipboard() to use PNG instead of JPG compression on macOS #7219 Added in_place argument to ImageOps.exif_transpose() #7092 Fixed calling putpalette() on L and LA images before load() #7187 Fixed saving TIFF multiframe images with LONG8 tag types #7078 Fixed combining single duration across duplicate APNG frames #7146 Remove temporary file when error is raised #7148 Do not use temporary file when grabbing clipboard on Linux #7200 If the clipboard fails to open on Windows, wait and try again #7141 Fixed saving multiple 1 mode frames to GIF #7181 Replaced absolute PIL import with relative import #7173 Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12 #7192 Improved wl-paste mimetype handling in ImageGrab #7094 Added _repr_jpeg_() for IPython display_jpeg #7135 Use "/sbin/ldconfig" if ldconfig is not found #7068 Prefer screenshots using XCB over gnome-screenshot #7143 Fixed joined corners for ImageDraw rounded_rectangle() odd dimensions #7151 Support reading signed 8-bit TIFF images #7111 Added width argument to ImageDraw regular_polygon #7132 Support I mode for ImageFilter.BuiltinFilter #7108 Raise error from stderr of Linux ImageGrab.grabclipboard() command #7112 Added unpacker from I;16B to I;16 #7125 Support float font sizes #7107 Use later value for duplicate xref entries in PdfParser #7102 Load before getting size in __getstate__ #7105 Fixed type handling for include and lib directories #7069 Remove deprecations for Pillow 10.0.0 #7059, #7080 Drop support for soon-EOL Python 3.7 #7058 Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-pillow_10.0.0.bb | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pillow_10.0.0.bb (limited to 'meta-python/recipes-devtools/python/python3-pillow_10.0.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-pillow_10.0.0.bb b/meta-python/recipes-devtools/python/python3-pillow_10.0.0.bb new file mode 100644 index 0000000000..8683ef2287 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow_10.0.0.bb @@ -0,0 +1,65 @@ +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=b22dc6b663b9175820e5e03337c7596b" + +SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ + file://0001-support-cross-compiling.patch \ + file://0001-explicitly-set-compile-options.patch \ + file://run-ptest \ + " +SRCREV ?= "82541b6dec8452cb612067fcebba1c5a1a2bfdc8" + +inherit setuptools3 ptest + +PIP_INSTALL_PACKAGE = "Pillow" +PIP_INSTALL_DIST_PATH = "${S}/dist" + +DEPENDS += " \ + zlib \ + jpeg \ + tiff \ + freetype \ + lcms \ + openjpeg \ +" + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-misc \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-numbers \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \ +" + +RDEPENDS:${PN}-ptest += " \ + bash \ + ghostscript \ + jpeg-tools \ + libwebp \ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-distutils \ + ${PYTHON_PN}-image \ + ${PYTHON_PN}-mmap \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-pytest-timeout \ + ${PYTHON_PN}-resource \ + ${PYTHON_PN}-unixadmin\ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ +" + +CVE_PRODUCT = "pillow" + +S = "${WORKDIR}/git" + +RPROVIDES:${PN} += "python3-imaging" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/Tests + cp -rf ${S}/Tests ${D}${PTEST_PATH}/ +} + +BBCLASSEXTEND = "native" + +SRCREV = "6e28ed1f36d0eb74053af54e1eddc9c29db698cd" -- cgit v1.2.3-54-g00ecf