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-pyasn1_0.6.1.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-pyasn1_0.6.1.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb b/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb index 3913cb51d2..820ef27d2b 100644 --- a/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb +++ b/meta/recipes-devtools/python/python3-pyasn1_0.6.1.bb | |||
| @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=190f79253908c986e6cacf380c3a5f6d" | |||
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034" | 6 | SRC_URI[sha256sum] = "6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034" |
| 7 | 7 | ||
| 8 | inherit pypi python_setuptools_build_meta ptest | 8 | inherit pypi python_setuptools_build_meta ptest-python-pytest |
| 9 | 9 | ||
| 10 | RDEPENDS:${PN}:class-target += " \ | 10 | RDEPENDS:${PN}:class-target += " \ |
| 11 | python3-codecs \ | 11 | python3-codecs \ |
| @@ -14,18 +14,4 @@ RDEPENDS:${PN}:class-target += " \ | |||
| 14 | python3-shell \ | 14 | python3-shell \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | SRC_URI += " \ | ||
| 18 | file://run-ptest \ | ||
| 19 | " | ||
| 20 | |||
| 21 | RDEPENDS:${PN}-ptest += " \ | ||
| 22 | python3-pytest \ | ||
| 23 | python3-unittest-automake-output \ | ||
| 24 | " | ||
| 25 | |||
| 26 | do_install_ptest() { | ||
| 27 | install -d ${D}${PTEST_PATH}/tests | ||
| 28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 29 | } | ||
| 30 | |||
| 31 | BBCLASSEXTEND = "native nativesdk" | 17 | BBCLASSEXTEND = "native nativesdk" |
