summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-calver_2022.6.26.bb
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2024-12-18 18:05:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-08 12:37:20 +0000
commitcf6b12e5c95d0593970f945aa6930c818f7a819f (patch)
tree86c0e754eb04f0f8f372610c178b794b3091f9ca /meta/recipes-devtools/python/python3-calver_2022.6.26.bb
parent095beae0085c94a105256b6df4bd71bd4a506104 (diff)
downloadpoky-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-calver_2022.6.26.bb')
-rw-r--r--meta/recipes-devtools/python/python3-calver_2022.6.26.bb10
1 files changed, 1 insertions, 9 deletions
diff --git a/meta/recipes-devtools/python/python3-calver_2022.6.26.bb b/meta/recipes-devtools/python/python3-calver_2022.6.26.bb
index 71b5431400..b2e7e0769d 100644
--- a/meta/recipes-devtools/python/python3-calver_2022.6.26.bb
+++ b/meta/recipes-devtools/python/python3-calver_2022.6.26.bb
@@ -5,24 +5,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
5 5
6SRC_URI = " \ 6SRC_URI = " \
7 git://github.com/di/calver;branch=master;protocol=https \ 7 git://github.com/di/calver;branch=master;protocol=https \
8 file://run-ptest \
9 file://0001-setup.py-hard-code-version.patch \ 8 file://0001-setup.py-hard-code-version.patch \
10" 9"
11SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81" 10SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81"
12 11
13inherit python_setuptools_build_meta ptest 12inherit python_setuptools_build_meta ptest-python-pytest
14 13
15S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
16 15
17RDEPENDS:${PN}-ptest += " \ 16RDEPENDS:${PN}-ptest += " \
18 python3-pretend \ 17 python3-pretend \
19 python3-pytest \
20 python3-unittest-automake-output \
21" 18"
22 19
23do_install_ptest() {
24 install -d ${D}${PTEST_PATH}/tests
25 cp -rf ${S}/tests ${D}${PTEST_PATH}/
26}
27
28BBCLASSEXTEND = "native nativesdk" 20BBCLASSEXTEND = "native nativesdk"