Skip to contentSkip to conversation

python3-wand: add recipe

PATCH New Leon Anavi 1 participant 4 messages Nov 7, 2023

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/4 python3-wand: add recipe

Add Wand, a ctypes-based simple MagickWand API binding for Python. Versions 0.6.13 and 0.6.12 provide:

- Hotfix release to remove a "work-in-progress" pyproject.toml
- Fixed behavior when passing zero to Image.chop()
- Fixed libmagick yield MagickCore library on Linux
- Fixed removing mask when passing None to Image.write_mask() method
- Added new COMPOSITE_OPERATORS operators

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-wand_0.6.13.bb                 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-wand_0.6.13.bb
meta-python/recipes-devtools/python/python3-wand_0.6.13.bb new file +15 -0
new file mode 100644
index 000000000..85e05ad97
@@ -0,0 +1,15 @@
+SUMMARY = "Ctypes-based simple MagickWand API binding for Python"
+HOMEPAGE = "https://docs.wand-py.org/"
+LICENSE = "MIT"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0bf19e5c00d047fee994ae332db3aab6"
+
+SRC_URI[sha256sum] = "f5013484eaf7a20eb22d1821aaefe60b50cc329722372b5f8565d46d4aaafcca"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE="Wand"
+
+FILES:${PN}-doc += "${datadir}/README.rst"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/4 python3-pdm-backend: add recipe

Add pdm-backend, the build backend used by PDM that supports latest packaging standards. Version 2.1.7 provides:

- Rename tag-pattern to tag_regex in the docs
- Copytree handle existing dirs
- Normalize the dist info name in the wheel

---
 .../python/python3-pdm-backend_2.1.7.bb             | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pdm-backend_2.1.7.bb
meta-python/recipes-devtools/python/python3-pdm-backend_2.1.7.bb new file +13 -0
new file mode 100644
index 000000000..679ecb0d4
@@ -0,0 +1,13 @@
+SUMMARY = "The build backend used by PDM that supports latest packaging standards"
+HOMEPAGE = "https://github.com/pdm-project/pdm-backend"
+LICENSE = "MIT"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4a564297b3c5b629a528b92fd8ff61ea"
+
+SRC_URI[sha256sum] = "d3b50ab6374557c1edc348135e0da5decef228ddf8c973a58e40f437cf3595ba"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE= "pdm_backend"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 3/4 python3-pdm: add recipe

In reply to Leon Anavi

Add pdm, a modern Python package and dependency manager supporting the latest PEP standards. Version 2.10.1 brings:

- Fix list index out of range when build error message is empty
- Fix find_link sources being exported as --extra--index-url
- Fix an installation failure when install.cache = true
- Fix a resolution issue that extra dependencies are not resolved when the bare dependency has more specific version constraint

---
 .../recipes-devtools/python/python3-pdm_2.10.1.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pdm_2.10.1.bb
meta-python/recipes-devtools/python/python3-pdm_2.10.1.bb new file +15 -0
new file mode 100644
index 000000000..d5aab3db7
@@ -0,0 +1,15 @@
+SUMMARY = "A modern Python package and dependency manager supporting the latest PEP standards"
+HOMEPAGE = "https://pdm-project.org/latest/"
+LICENSE = "MIT"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2eb31a2cc1a758c34b499f287dd04ef2"
+
+SRC_URI[sha256sum] = "d166531c659fc4905933546544dd2e16cf648c2ba6d898c82126ad6a42117a81"
+
+inherit pypi python_setuptools_build_meta
+
+DEPENDS += " \
+    ${PYTHON_PN}-pdm-backend-native \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH 4/4 python3-jsonref: Upgrade 1.0.1 -> 1.1.0

In reply to Leon Anavi

Upgrade to version 1.1.0:

- Fixes documents where the root is a reference object not being cached
- Allows a reference object to refer to a fragment within itself
- Extra properties of a reference object will now have references resolved

License-Update: License remains the same

---
 .../files/migrate-to-pdm-backend.patch        | 27 +++++++++++++++++++
 .../python-jsonref/python3-jsonref_1.0.1.bb   | 16 -----------
 .../python-jsonref/python3-jsonref_1.1.0.bb   | 23 ++++++++++++++++
 3 files changed, 50 insertions(+), 16 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python-jsonref/files/migrate-to-pdm-backend.patch
 delete mode 100644 meta-python/recipes-devtools/python-jsonref/python3-jsonref_1.0.1.bb
 create mode 100644 meta-python/recipes-devtools/python-jsonref/python3-jsonref_1.1.0.bb
meta-python/recipes-devtools/python-jsonref/files/migrate-to-pdm-backend.patch new file +27 -0
new file mode 100644
index 000000000..805d9edce
@@ -0,0 +1,27 @@
+From 1b594cf12e5a69aa25f49f532c1201a6b39e280d Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Tue, 7 Nov 2023 10:43:32 +0000
+Subject: [PATCH] Migrate to pdm-backend
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ pyproject.toml | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index f549376..c608213 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -36,7 +36,5 @@ includes = [
+ profile = "black"
+ 
+ [build-system]
+-requires = [
+-    "pdm-pep517>=1.0.0",
+-]
+-build-backend = "pdm.pep517.api"
++requires = ["pdm-backend"]
++build-backend = "pdm.backend"
+-- 
+2.39.2
+
meta-python/recipes-devtools/python-jsonref/python3-jsonref_1.0.1.bb deleted +0 -16
deleted file mode 100644
index 5b842a462..000000000
@@ -1,16 +0,0 @@
-SUMMARY = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python"
-HOMEPAGE = "https://github.com/gazpachoking/jsonref"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=a34264f25338d41744dca1abfe4eb18f"
-
-SRC_URI[sha256sum] = "51d3e18b83ca7170ff51286a0e1a6719d8b7fcc7abdb16b189395a8536996b97"
-
-inherit pypi setuptools3
-
-BBCLASSEXTEND = "native nativesdk"
-
-RDEPENDS:${PN} += " \
-	${PYTHON_PN}-core \
-	${PYTHON_PN}-json \
-	${PYTHON_PN}-netclient \
-"
meta-python/recipes-devtools/python-jsonref/python3-jsonref_1.1.0.bb new file +23 -0
new file mode 100644
index 000000000..fae1da268
@@ -0,0 +1,23 @@
+SUMMARY = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python"
+HOMEPAGE = "https://github.com/gazpachoking/jsonref"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ac1cccee5d43e11fc4eddcf445be64a"
+
+SRC_URI[sha256sum] = "32fe8e1d85af0fdefbebce950af85590b22b60f9e95443176adbde4e1ecea552"
+
+SRC_URI += "file://migrate-to-pdm-backend.patch"
+
+inherit pypi python_setuptools_build_meta
+
+BBCLASSEXTEND = "native nativesdk"
+
+DEPENDS += " \
+    ${PYTHON_PN}-pdm-native \
+    ${PYTHON_PN}-pdm-backend-native \
+"
+
+RDEPENDS:${PN} += " \
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-json \
+    ${PYTHON_PN}-netclient \
+"
Signature · 1 line
2.39.2