Signed-off-by: Ross Burton <[email protected]>
---
meta/conf/distro/include/ptest-packagelists.inc | 1 +
meta/recipes-devtools/python/python3-idna/run-ptest | 3 +++
meta/recipes-devtools/python/python3-idna_3.7.bb | 9 ++++++++-
3 files changed, 12 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/python/python3-idna/run-ptest
diff --git a/meta/conf/distro/include/ptest-packagelists.inc
b/meta/conf/distro/include/ptest-packagelists.inc
index 7e9ec1c3aa6..5a9896cc211 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -61,6 +61,7 @@ PTESTS_FAST = "\
python3-beartype \
python3-calver \
python3-hypothesis \
+ python3-idna \
python3-jinja2 \
python3-jsonpointer \
python3-license-expression \
diff --git a/meta/recipes-devtools/python/python3-idna/run-ptest
b/meta/recipes-devtools/python/python3-idna/run-ptest
new file mode 100644
index 00000000000..d9693bb30f8
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-idna/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+python3 -mputao.unittest discover --top-level-directory . --start-directory
tests
diff --git a/meta/recipes-devtools/python/python3-idna_3.7.bb
b/meta/recipes-devtools/python/python3-idna_3.7.bb
index 20c92d65372..713e803d038 100644
--- a/meta/recipes-devtools/python/python3-idna_3.7.bb
+++ b/meta/recipes-devtools/python/python3-idna_3.7.bb
@@ -5,8 +5,15 @@ LIC_FILES_CHKSUM =
"file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1"
SRC_URI[sha256sum] =
"028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"
-inherit pypi python_flit_core
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_flit_core ptest
+
+do_install_ptest() {
+ cp -r ${S}/tests ${D}${PTEST_PATH}/
+}
RDEPENDS:${PN} += "python3-codecs"
+RDEPENDS:${PN}-ptest += "python3-unittest-automake-output"
BBCLASSEXTEND = "native nativesdk"
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202473):
https://lists.openembedded.org/g/openembedded-core/message/202473
Mute This Topic: https://lists.openembedded.org/mt/107527502/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-