diff options
-rw-r--r-- | meta-python/recipes-devtools/python/python-license-expression.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-license-expression/run-ptest | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-license-expression.inc b/meta-python/recipes-devtools/python/python-license-expression.inc index 4c35e8dd70..add25810d7 100644 --- a/meta-python/recipes-devtools/python/python-license-expression.inc +++ b/meta-python/recipes-devtools/python/python-license-expression.inc | |||
@@ -7,10 +7,23 @@ LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=e23fadd6ceef8c618fc1c65191d846 | |||
7 | SRC_URI[md5sum] = "81477f779099f55071c6a7b88a29bb01" | 7 | SRC_URI[md5sum] = "81477f779099f55071c6a7b88a29bb01" |
8 | SRC_URI[sha256sum] = "8aaa455c5b97c4f2174090178b19792b2a1c620e80591aafd4e0a99b713f9e8d" | 8 | SRC_URI[sha256sum] = "8aaa455c5b97c4f2174090178b19792b2a1c620e80591aafd4e0a99b713f9e8d" |
9 | 9 | ||
10 | inherit pypi | 10 | inherit pypi ptest |
11 | 11 | ||
12 | RDEPENDS_${PN} += "\ | 12 | RDEPENDS_${PN} += "\ |
13 | ${PYTHON_PN}-booleanpy \ | 13 | ${PYTHON_PN}-booleanpy \ |
14 | " | 14 | " |
15 | 15 | ||
16 | BBCLASSEXTEND = "native nativesdk" | 16 | BBCLASSEXTEND = "native nativesdk" |
17 | |||
18 | SRC_URI += " \ | ||
19 | file://run-ptest \ | ||
20 | " | ||
21 | |||
22 | RDEPENDS_${PN}-ptest += " \ | ||
23 | ${PYTHON_PN}-pytest \ | ||
24 | " | ||
25 | |||
26 | do_install_ptest() { | ||
27 | install -d ${D}${PTEST_PATH}/tests | ||
28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
29 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-license-expression/run-ptest b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-license-expression/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||