diff options
| author | Derek Straka <derek@asterius.io> | 2024-12-18 18:05:48 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-08 12:37:20 +0000 |
| commit | cf6b12e5c95d0593970f945aa6930c818f7a819f (patch) | |
| tree | 86c0e754eb04f0f8f372610c178b794b3091f9ca /meta/recipes-devtools/python/python3-license-expression_30.4.0.bb | |
| parent | 095beae0085c94a105256b6df4bd71bd4a506104 (diff) | |
| download | poky-cf6b12e5c95d0593970f945aa6930c818f7a819f.tar.gz | |
python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class
The newly added ptest-python-pytest removes duplication for:
1. Copying pytest files to the ptest directory
2. Adding standard pytest dependencies
3. Adding a common run-ptest script using pytest
(From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21)
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-license-expression_30.4.0.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-license-expression_30.4.0.bb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb index fc92026c79..3af739bed4 100644 --- a/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb +++ b/meta/recipes-devtools/python/python3-license-expression_30.4.0.bb | |||
| @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://apache-2.0.LICENSE;md5=86d3f3a95c324c9479bd8986968f43 | |||
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "6464397f8ed4353cc778999caec43b099f8d8d5b335f282e26a9eb9435522f05" | 7 | SRC_URI[sha256sum] = "6464397f8ed4353cc778999caec43b099f8d8d5b335f282e26a9eb9435522f05" |
| 8 | 8 | ||
| 9 | inherit pypi ptest python_setuptools_build_meta | 9 | inherit pypi ptest-python-pytest python_setuptools_build_meta |
| 10 | PYPI_PACKAGE = "license_expression" | 10 | PYPI_PACKAGE = "license_expression" |
| 11 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | 11 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" |
| 12 | 12 | ||
| @@ -22,19 +22,8 @@ RDEPENDS:${PN} += "\ | |||
| 22 | 22 | ||
| 23 | BBCLASSEXTEND = "native nativesdk" | 23 | BBCLASSEXTEND = "native nativesdk" |
| 24 | 24 | ||
| 25 | SRC_URI += " \ | ||
| 26 | file://run-ptest \ | ||
| 27 | " | ||
| 28 | |||
| 29 | RDEPENDS:${PN}-ptest += " \ | ||
| 30 | python3-pytest \ | ||
| 31 | python3-unittest-automake-output \ | ||
| 32 | " | ||
| 33 | |||
| 34 | do_install_ptest() { | 25 | do_install_ptest() { |
| 35 | install -d ${D}${PTEST_PATH}/tests | ||
| 36 | install -d ${D}${PTEST_PATH}/src | 26 | install -d ${D}${PTEST_PATH}/src |
| 37 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 38 | cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ | 27 | cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ |
| 39 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ | 28 | cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ |
| 40 | } | 29 | } |
