summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pyyaml_6.0.2.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-pyyaml_6.0.2.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-pyyaml_6.0.2.bb')
-rw-r--r--meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb13
1 files changed, 1 insertions, 12 deletions
diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb
index 6ea342eae3..7ebe3f7d9f 100644
--- a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb
+++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb
@@ -8,28 +8,17 @@ SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff
8 8
9SRC_URI += "\ 9SRC_URI += "\
10 https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ 10 https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \
11 file://run-ptest \
12" 11"
13SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" 12SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a"
14 13
15inherit pypi python_setuptools_build_meta ptest cython 14inherit pypi python_setuptools_build_meta ptest-python-pytest cython
16 15
17PACKAGECONFIG ?= "libyaml" 16PACKAGECONFIG ?= "libyaml"
18PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" 17PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml"
19 18
20do_install_ptest() {
21 install -d ${D}${PTEST_PATH}/tests
22 cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
23}
24
25RDEPENDS:${PN} += "\ 19RDEPENDS:${PN} += "\
26 python3-datetime \ 20 python3-datetime \
27 python3-netclient \ 21 python3-netclient \
28" 22"
29 23
30RDEPENDS:${PN}-ptest += " \
31 python3-pytest \
32 python3-unittest-automake-output \
33"
34
35BBCLASSEXTEND = "native nativesdk" 24BBCLASSEXTEND = "native nativesdk"