From 5af28a28a8e9969ec4f39da63e1ec9bdae113301 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 12 May 2025 17:03:27 +0800 Subject: python3-packaging: upgrade 24.2 -> 25.0 Changelog: ============ - Re-add a test for Unicode file name parsing - Upgrade to ruff 0.9.1 - Add support for PEP 738 Android tags - feat(markers): support 'extras' and 'dependency_groups' markers (From OE-Core rev: 1f6a72bf37297a362119375523750544a11a23ea) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- .../python/python3-packaging_25.0.bb | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-packaging_25.0.bb (limited to 'meta/recipes-devtools/python/python3-packaging_25.0.bb') diff --git a/meta/recipes-devtools/python/python3-packaging_25.0.bb b/meta/recipes-devtools/python/python3-packaging_25.0.bb new file mode 100644 index 0000000000..9cb5c68f58 --- /dev/null +++ b/meta/recipes-devtools/python/python3-packaging_25.0.bb @@ -0,0 +1,43 @@ +SUMMARY = "Core utilities for Python packages" +HOMEPAGE = "https://github.com/pypa/packaging" +LICENSE = "Apache-2.0 | BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91" + +SRC_URI[sha256sum] = "d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f" + +SRC_URI += "file://run-ptest.in" + +inherit pypi python_flit_core ptest + +BBCLASSEXTEND = "native nativesdk" + +# Bootstrap the native build +DEPENDS:remove:class-native = "python3-build-native" +RDEPENDS:${PN} += "python3-profile" + +# https://github.com/pypa/packaging/issues/850 +SKIPLIST ?= "" +SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py" + +do_compile:class-native () { + python_flit_core_do_manual_build +} + +do_install_ptest() { + cp -r ${S}/tests ${D}${PTEST_PATH}/ + # We don't need this script which is used to build the binaries + rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh + sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest + chmod 0755 ${D}${PTEST_PATH}/run-ptest +} + +RDEPENDS:${PN}-ptest = "\ + python3-ctypes \ + python3-pretend \ + python3-pytest \ + python3-unittest-automake-output \ +" + +# The ptest package contains prebuilt test binaries +INSANE_SKIP:${PN} = "already-stripped" +INSANE_SKIP:${PN}-ptest = "arch" -- cgit v1.2.3-54-g00ecf