diff options
| author | Alexandru Ardelean <alex@shruggie.ro> | 2023-10-16 21:44:41 +0300 |
|---|---|---|
| committer | Josef Schlehofer <pepe.schlehofer@gmail.com> | 2023-10-20 13:02:49 +0200 |
| commit | 3be6f6bec9d57b046673d18ed53f8fb57fec99f1 (patch) | |
| tree | 46e276938f3fee7041164634ae4f23a2e0201aef /lang/python/pillow | |
| parent | 0449b530ba1d75911abf52c30d3cbee056b8f7b4 (diff) | |
pillow: bump to version 10.1.0
Add test.sh also.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Diffstat (limited to 'lang/python/pillow')
| -rw-r--r-- | lang/python/pillow/Makefile | 4 | ||||
| -rw-r--r-- | lang/python/pillow/patches/001-remove-setuptools-version-limit.patch | 2 | ||||
| -rw-r--r-- | lang/python/pillow/test.sh | 20 |
3 files changed, 23 insertions, 3 deletions
diff --git a/lang/python/pillow/Makefile b/lang/python/pillow/Makefile index c974723a9..c6b1faf0e 100644 --- a/lang/python/pillow/Makefile +++ b/lang/python/pillow/Makefile @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pillow -PKG_VERSION:=10.0.0 +PKG_VERSION:=10.1.0 PKG_RELEASE:=1 PYPI_NAME:=Pillow -PKG_HASH:=9c82b5b3e043c7af0d95792d0d20ccf68f61a1fec6b3530e718b688422727396 +PKG_HASH:=e6bf8de6c36ed96c86ea3b6e1d5273c53f46ef518a062464cd7ef5dd2cf92e38 PKG_BUILD_DEPENDS:=python-setuptools-scm/host diff --git a/lang/python/pillow/patches/001-remove-setuptools-version-limit.patch b/lang/python/pillow/patches/001-remove-setuptools-version-limit.patch index 3dc07d992..e5ac168cb 100644 --- a/lang/python/pillow/patches/001-remove-setuptools-version-limit.patch +++ b/lang/python/pillow/patches/001-remove-setuptools-version-limit.patch @@ -6,6 +6,6 @@ requires = [ - "setuptools>=67.8", + "setuptools", - "wheel", ] backend-path = [ + "_custom_build", diff --git a/lang/python/pillow/test.sh b/lang/python/pillow/test.sh new file mode 100644 index 000000000..9bad29241 --- /dev/null +++ b/lang/python/pillow/test.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +[ "$1" = "python3-pillow" ] || exit 0 + +python3 - << EOF +import sys +from PIL import Image, ImageDraw + +if (Image.__version__ != "$2"): + print("Wrong version: " + Image.__version__) + sys.exit(1) + +from PIL import Image, ImageDraw +img = Image.new('RGB', (100, 30), color = (73, 109, 137)) +d = ImageDraw.Draw(img) +d.text((10,10), "Hello World", fill=(255,255,0)) + +# Getting here means we did not get exceptions +sys.exit(0) +EOF |
