summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2025-01-30 21:57:17 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-30 14:15:33 -0800
commit85b9417641d6446b4d2b12fc02ec94df69bccbce (patch)
tree3db4771dbccdfb165aea40c2222b93ede2e3747f /meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
parent6c26365bf067d54c0335d69fb13e0867cd585340 (diff)
downloadmeta-openembedded-85b9417641d6446b4d2b12fc02ec94df69bccbce.tar.gz
python3-netaddr: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb13
1 files changed, 2 insertions, 11 deletions
diff --git a/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
index b8a772566a..8b486d26ff 100644
--- a/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
@@ -4,18 +4,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa"
4 4
5SRC_URI[sha256sum] = "5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9ef6e48a" 5SRC_URI[sha256sum] = "5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9ef6e48a"
6 6
7inherit pypi python_setuptools_build_meta ptest 7inherit pypi python_setuptools_build_meta ptest-python-pytest
8 8
9SRC_URI += " \ 9do_install_ptest:append () {
10 file://run-ptest \
11"
12
13RDEPENDS:${PN}-ptest += " \
14 python3-pytest \
15 python3-unittest-automake-output \
16"
17
18do_install_ptest() {
19 install -d ${D}${PTEST_PATH}/tests 10 install -d ${D}${PTEST_PATH}/tests
20 cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/ 11 cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/
21} 12}