diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-11-05 16:12:27 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-06 12:18:05 +0000 |
| commit | f3f838a6d3e7e4129e46babe595ecb0c1ae9e5aa (patch) | |
| tree | f281539f200e15e07e0dd262549431bfd95e0a55 /meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb | |
| parent | d572b58a6205ba3d91efd8d3f594fcc951ec3f0e (diff) | |
| download | poky-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/recipes-devtools/python/python3-pyyaml_6.0.2.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb | 29 |
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 @@ | |||
| 1 | SUMMARY = "Python support for YAML" | 1 | SUMMARY = "Python support for YAML" |
| 2 | DEPENDS += "libyaml python3-cython-native" | ||
| 3 | HOMEPAGE = "https://pyyaml.org/" | 2 | HOMEPAGE = "https://pyyaml.org/" |
| 4 | 3 | ||
| 5 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079" |
| 7 | 6 | ||
| 8 | inherit pypi python_setuptools_build_meta | 7 | DEPENDS += "python3-cython-native" |
| 9 | 8 | ||
| 10 | SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e" | 9 | SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e" |
| 10 | |||
| 11 | SRC_URI += "\ | ||
| 12 | https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ | ||
| 13 | file://run-ptest \ | ||
| 14 | " | ||
| 15 | SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" | ||
| 16 | |||
| 11 | UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML" | 17 | UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML" |
| 12 | 18 | ||
| 19 | inherit pypi python_setuptools_build_meta ptest | ||
| 20 | |||
| 13 | PACKAGECONFIG ?= "libyaml" | 21 | PACKAGECONFIG ?= "libyaml" |
| 14 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" | 22 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" |
| 15 | 23 | ||
| 24 | do_install_ptest() { | ||
| 25 | install -d ${D}${PTEST_PATH}/tests | ||
| 26 | cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/ | ||
| 27 | } | ||
| 28 | |||
| 16 | RDEPENDS:${PN} += "\ | 29 | RDEPENDS:${PN} += "\ |
| 17 | python3-datetime \ | 30 | python3-datetime \ |
| 18 | python3-netclient \ | 31 | python3-netclient \ |
| 19 | " | 32 | " |
| 20 | 33 | ||
| 21 | inherit ptest | ||
| 22 | SRC_URI += "\ | ||
| 23 | https://raw.githubusercontent.com/yaml/pyyaml/a98fd6088e81d7aca571220c966bbfe2ac43c335/tests/test_dump_load.py;name=test \ | ||
| 24 | file://run-ptest \ | ||
| 25 | " | ||
| 26 | SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1a832359434a" | ||
| 27 | |||
| 28 | RDEPENDS:${PN}-ptest += " \ | 34 | RDEPENDS:${PN}-ptest += " \ |
| 29 | python3-pytest \ | 35 | python3-pytest \ |
| 30 | python3-unittest-automake-output \ | 36 | python3-unittest-automake-output \ |
| 31 | " | 37 | " |
| 32 | 38 | ||
| 33 | do_install_ptest() { | ||
| 34 | install -d ${D}${PTEST_PATH}/tests | ||
| 35 | cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/ | ||
| 36 | } | ||
| 37 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | 39 | BBCLASSEXTEND = "native nativesdk" |
