summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-11-05 16:12:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-06 12:18:05 +0000
commitf3f838a6d3e7e4129e46babe595ecb0c1ae9e5aa (patch)
treef281539f200e15e07e0dd262549431bfd95e0a55 /meta
parentd572b58a6205ba3d91efd8d3f594fcc951ec3f0e (diff)
downloadpoky-f3f838a6d3e7e4129e46babe595ecb0c1ae9e5aa.tar.gz
python3-pyyaml: rearrange recipe
Sort the recipe into a more traditional order, and remove a duplicated DEPENDS on libyaml. (From OE-Core rev: 11739d4419b790c798ba9f2d2ef0086a8c39271d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb29
1 files changed, 15 insertions, 14 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 a41d073af9..10e61274b0 100644
--- a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb
+++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb
@@ -1,38 +1,39 @@
1SUMMARY = "Python support for YAML" 1SUMMARY = "Python support for YAML"
2DEPENDS += "libyaml python3-cython-native"
3HOMEPAGE = "https://pyyaml.org/" 2HOMEPAGE = "https://pyyaml.org/"
4 3
5LICENSE = "MIT" 4LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079"
7 6
8inherit pypi python_setuptools_build_meta 7DEPENDS += "python3-cython-native"
9 8
10SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e" 9SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"
10
11SRC_URI += "\
12 https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \
13 file://run-ptest \
14"
15SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a"
16
11UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML" 17UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML"
12 18
19inherit pypi python_setuptools_build_meta ptest
20
13PACKAGECONFIG ?= "libyaml" 21PACKAGECONFIG ?= "libyaml"
14PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" 22PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml"
15 23
24do_install_ptest() {
25 install -d ${D}${PTEST_PATH}/tests
26 cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
27}
28
16RDEPENDS:${PN} += "\ 29RDEPENDS:${PN} += "\
17 python3-datetime \ 30 python3-datetime \
18 python3-netclient \ 31 python3-netclient \
19" 32"
20 33
21inherit ptest
22SRC_URI += "\
23 https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \
24 file://run-ptest \
25"
26SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a"
27
28RDEPENDS:${PN}-ptest += " \ 34RDEPENDS:${PN}-ptest += " \
29 python3-pytest \ 35 python3-pytest \
30 python3-unittest-automake-output \ 36 python3-unittest-automake-output \
31" 37"
32 38
33do_install_ptest() {
34 install -d ${D}${PTEST_PATH}/tests
35 cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
36}
37
38BBCLASSEXTEND = "native nativesdk" 39BBCLASSEXTEND = "native nativesdk"