python3-python-xmp-toolkit: Add recipe
PATCH 1/2 python3-python-xmp-toolkit: Add recipe
Add a recipe for release 2.1.0 of python-xmp-toolkit:
- Add support for python 3.14
- Make exempi a run-time dependency
- Add missing error codes
- Remove tox
- Use flit for build
- Remove travis
- Remove packaging dependency requirement
- Remove support for python <= 3.6 (All python2 code removed)
- fix exempi returns char-size bool, not int
- homebrew path fixup
This work was sponsored by GOVCERT.LU.
Signed-off-by Leon Anavi <[email protected]>
--- .../python3-python-xmp-toolkit_2.1.0.bb | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb
meta-python/recipes-devtools/python/python3-python-xmp-toolkit_2.1.0.bb new file +31 -0
@@ -0,0 +1,31 @@ +SUMMARY = "XMP I/O wrapping Exempi" +DESCRIPTION = "XMP I/O wrapping Exempi" +HOMEPAGE = "https://github.com/python-xmp-toolkit/python-xmp-toolkit" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=30fa74de63728af31f13dc3bb8cb1756" + +SRC_URI[sha256sum] = "ca0aa2c60d418dd2558767db59953ab5954fb5b87dc0b50cecd60566b0b4e2da" + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +PYPI_PACKAGE = "python_xmp_toolkit" + +DEPENDS += "\ + python3-pytz-native \ +" +RDEPENDS:${PN} = "\ + exempi \ + python3-pytz \ +" + +RDEPENDS:${PN}-ptest += "\ + python3-core \ + python3-pytest-cov \ +" + +do_install_ptest:append() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +} + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.47.3
PATCH 2/2 python3-pikepdf: Enable tests
Inherit ptest-python-pytest and include tests for PikePDF. Extend runtime dependencies and add new for the tests.
This work was sponsored by GOVCERT.LU.
Signed-off-by Leon Anavi <[email protected]>
--- .../python/python3-pikepdf_10.11.0.bb | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-)
meta-python/recipes-devtools/python/python3-pikepdf_10.11.0.bb +26 -8
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "4bebc59ac74411064e7c97a4036174023e22ccbecd22b78750ab76551e SRC_URI += "file://0001-pyproject.toml-Do-not-strip.patch" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest-python-pytest # pikepdf uses the C++20 language but no C++20 named modules. CMake's module # dependency scanning (clang-scan-deps) does not work in the cross environment,
@@ -20,16 +20,34 @@ PYPI_PACKAGE = "pikepdf" CVE_PRODUCT = "pikepdf" DEPENDS += " \ - python3-pybind11-native \ - python3-nanobind-native \ - python3-scikit-build-core-native \ - ninja-native \ - qpdf \ + python3-pybind11-native \ + python3-nanobind-native \ + python3-scikit-build-core-native \ + ninja-native \ + qpdf \ " RDEPENDS:${PN} += " \ - python3-pillow \ - python3-lxml \ + qpdf \ + python3-pillow \ + python3-lxml \ " +RDEPENDS:${PN}-ptest += " \ + python3-attrs \ + python3-hypothesis \ + python3-numpy \ + python3-pytest-cov \ + python3-pytest-timeout \ + python3-pytest-xdist \ + python3-psutil \ + python3-dateutil \ + python3-python-xmp-toolkit \ + python3-tomli \ +" + +do_install_ptest:append() { + install -m 0644 ${S}/pyproject.toml ${D}${PTEST_PATH}/ +} + BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.47.3