- This recipe is needed by newer versions of fwupd from meta-oe - Add ptest support for python3-pefile - Add python3-pefile to PTESTS_FAST_META_OE since tests take < 30s
Signed-off-by: Khem Raj <[email protected]> --- .../include/ptest-packagelists-meta-oe.inc | 1 + .../python/python3-pefile/run-ptest | 3 ++ .../python/python3-pefile_2023.2.7.bb | 30 +++++++++++++++++++ .../python/python3-pefile_2023.2.7.bb | 16 ---------- 4 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 meta-oe/recipes-devtools/python/python3-pefile/run-ptest create mode 100644 meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb delete mode 100644 meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc index a29408a822..eaa86c411b 100644 --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc @@ -36,6 +36,7 @@ PTESTS_FAST_META_OE = "\ oprofile \ protobuf \ pv \ + python3-pefile \ sdbus-c++ \ uthash \ xmlsec1 \ diff --git a/meta-oe/recipes-devtools/python/python3-pefile/run-ptest b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest new file mode 100644 index 0000000000..95ae72306f --- /dev/null +++ b/meta-oe/recipes-devtools/python/python3-pefile/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake --ignore=./tests/pefile_test.py diff --git a/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb new file mode 100644 index 0000000000..76837434df --- /dev/null +++ b/meta-oe/recipes-devtools/python/python3-pefile_2023.2.7.bb @@ -0,0 +1,30 @@ +SUMMARY = "Python PE parsing module" +DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." +HOMEPAGE = "https://github.com/erocarrera/pefile" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" + +inherit setuptools3 ptest +SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266" +SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ + file://run-ptest" +S = "${WORKDIR}/git" + +BBCLASSEXTEND = "native nativesdk" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-mmap \ + python3-netclient \ + python3-stringold \ +" +RDEPENDS:${PN}-ptest += "\ + python3-coverage \ + python3-pytest \ + python3-tox \ + python3-unittest-automake-output \ +" diff --git a/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb deleted file mode 100644 index 50dae7b407..0000000000 --- a/meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb +++ /dev/null @@ -1,16 +0,0 @@ -SUMMARY = "Python PE parsing module" -DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." -HOMEPAGE = "https://github.com/erocarrera/pefile" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" - -inherit setuptools3 pypi ptest -SRC_URI[sha256sum] = "82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc" - -BBCLASSEXTEND = "native nativesdk" - -RDEPENDS:${PN} += " \ - python3-mmap \ - python3-netclient \ - python3-stringold \ -"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110791): https://lists.openembedded.org/g/openembedded-devel/message/110791 Mute This Topic: https://lists.openembedded.org/mt/106585820/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
