Signed-off-by: Ross Burton <[email protected]>
---
.../distro/include/ptest-packagelists.inc | 1 +
.../python/python3-packaging/run-ptest | 3 +++
.../python/python3-packaging_24.1.bb | 21 ++++++++++++++++++-
3 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/python/python3-packaging/run-ptest
diff --git a/meta/conf/distro/include/ptest-packagelists.inc
b/meta/conf/distro/include/ptest-packagelists.inc
index 3dc1a2e88f1..7e9ec1c3aa6 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -67,6 +67,7 @@ PTESTS_FAST = "\
python3-mako \
python3-markupsafe \
python3-more-itertools \
+ python3-packaging \
python3-pluggy \
python3-pyasn1 \
python3-pytz \
diff --git a/meta/recipes-devtools/python/python3-packaging/run-ptest
b/meta/recipes-devtools/python/python3-packaging/run-ptest
new file mode 100644
index 00000000000..8d2017d39ce
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-packaging/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
diff --git a/meta/recipes-devtools/python/python3-packaging_24.1.bb
b/meta/recipes-devtools/python/python3-packaging_24.1.bb
index 596250b066d..20bcd55fbad 100644
--- a/meta/recipes-devtools/python/python3-packaging_24.1.bb
+++ b/meta/recipes-devtools/python/python3-packaging_24.1.bb
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM =
"file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
SRC_URI[sha256sum] =
"026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
-inherit pypi python_flit_core
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_flit_core ptest
BBCLASSEXTEND = "native nativesdk"
@@ -16,3 +18,20 @@ RDEPENDS:${PN} += "python3-profile"
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
+}
+
+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"
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202462):
https://lists.openembedded.org/g/openembedded-core/message/202462
Mute This Topic: https://lists.openembedded.org/mt/107526227/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-