pillow: bump to version 10.1.0
authorAlexandru Ardelean <alex@shruggie.ro>
Mon, 16 Oct 2023 18:44:41 +0000 (21:44 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 20 Oct 2023 11:02:49 +0000 (13:02 +0200)
Add test.sh also.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
lang/python/pillow/Makefile
lang/python/pillow/patches/001-remove-setuptools-version-limit.patch
lang/python/pillow/test.sh [new file with mode: 0644]

index c974723a97621dee09e72f34dc7623a750485983..c6b1faf0ee0f941e22c2918d359ecaacec11edc4 100644 (file)
@@ -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
 
index 3dc07d9926674519754b1935334b6f6fb0267f8a..e5ac168cbfadbf0a4cf264642acdae5ce90876c4 100644 (file)
@@ -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 (file)
index 0000000..9bad292
--- /dev/null
@@ -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