diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-07-24 17:08:32 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-26 12:28:42 +0100 |
| commit | d4c0282f2bb52ac49987da9f101592e79cfd3b22 (patch) | |
| tree | af262e1d27c0ccc93948d2306e74d003b18de0ed /meta/recipes-devtools | |
| parent | bd21b9e878abca12488b514795bcaef28d01e829 (diff) | |
| download | poky-d4c0282f2bb52ac49987da9f101592e79cfd3b22.tar.gz | |
python3-packaging: enable ptest
(From OE-Core rev: df1e2e5bbf675f2b2582179fe28b25b840bb4790)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/python/python3-packaging/run-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-packaging_24.1.bb | 21 |
2 files changed, 23 insertions, 1 deletions
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 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-packaging/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | 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 596250b066..20bcd55fba 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" | |||
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" | 6 | SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" |
| 7 | 7 | ||
| 8 | inherit pypi python_flit_core | 8 | SRC_URI += "file://run-ptest" |
| 9 | |||
| 10 | inherit pypi python_flit_core ptest | ||
| 9 | 11 | ||
| 10 | BBCLASSEXTEND = "native nativesdk" | 12 | BBCLASSEXTEND = "native nativesdk" |
| 11 | 13 | ||
| @@ -16,3 +18,20 @@ RDEPENDS:${PN} += "python3-profile" | |||
| 16 | do_compile:class-native () { | 18 | do_compile:class-native () { |
| 17 | python_flit_core_do_manual_build | 19 | python_flit_core_do_manual_build |
| 18 | } | 20 | } |
| 21 | |||
| 22 | do_install_ptest() { | ||
| 23 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
| 24 | # We don't need this script which is used to build the binaries | ||
| 25 | rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh | ||
| 26 | } | ||
| 27 | |||
| 28 | RDEPENDS:${PN}-ptest = "\ | ||
| 29 | python3-ctypes \ | ||
| 30 | python3-pretend \ | ||
| 31 | python3-pytest \ | ||
| 32 | python3-unittest-automake-output \ | ||
| 33 | " | ||
| 34 | |||
| 35 | # The ptest package contains prebuilt test binaries | ||
| 36 | INSANE_SKIP:${PN} = "already-stripped" | ||
| 37 | INSANE_SKIP:${PN}-ptest = "arch" | ||
