summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-packaging_25.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-05-12 17:03:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-13 10:29:21 +0100
commit5af28a28a8e9969ec4f39da63e1ec9bdae113301 (patch)
treed36e9d97d53e26111688d6073a7e64893cd8f131 /meta/recipes-devtools/python/python3-packaging_25.0.bb
parent50f3fe6abc5fb22c96f77b7ffb890d54dabb54df (diff)
downloadpoky-5af28a28a8e9969ec4f39da63e1ec9bdae113301.tar.gz
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 <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-packaging_25.0.bb')
-rw-r--r--meta/recipes-devtools/python/python3-packaging_25.0.bb43
1 files changed, 43 insertions, 0 deletions
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 @@
1SUMMARY = "Core utilities for Python packages"
2HOMEPAGE = "https://github.com/pypa/packaging"
3LICENSE = "Apache-2.0 | BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
5
6SRC_URI[sha256sum] = "d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"
7
8SRC_URI += "file://run-ptest.in"
9
10inherit pypi python_flit_core ptest
11
12BBCLASSEXTEND = "native nativesdk"
13
14# Bootstrap the native build
15DEPENDS:remove:class-native = "python3-build-native"
16RDEPENDS:${PN} += "python3-profile"
17
18# https://github.com/pypa/packaging/issues/850
19SKIPLIST ?= ""
20SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py"
21
22do_compile:class-native () {
23 python_flit_core_do_manual_build
24}
25
26do_install_ptest() {
27 cp -r ${S}/tests ${D}${PTEST_PATH}/
28 # We don't need this script which is used to build the binaries
29 rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh
30 sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest
31 chmod 0755 ${D}${PTEST_PATH}/run-ptest
32}
33
34RDEPENDS:${PN}-ptest = "\
35 python3-ctypes \
36 python3-pretend \
37 python3-pytest \
38 python3-unittest-automake-output \
39"
40
41# The ptest package contains prebuilt test binaries
42INSANE_SKIP:${PN} = "already-stripped"
43INSANE_SKIP:${PN}-ptest = "arch"