summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-netaddr/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb13
-rw-r--r--meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb22
3 files changed, 25 insertions, 13 deletions
diff --git a/meta-python/recipes-devtools/python/python3-netaddr/run-ptest b/meta-python/recipes-devtools/python/python3-netaddr/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-netaddr/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb b/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb
deleted file mode 100644
index ce16cc1787..0000000000
--- a/meta-python/recipes-devtools/python/python3-netaddr_0.10.1.bb
+++ /dev/null
@@ -1,13 +0,0 @@
1SUMMARY = "A network address manipulation library for Python."
2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=e6345d695ffe3776f68a56fe7962db44"
4
5SRC_URI[sha256sum] = "f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf"
6
7inherit pypi setuptools3
8
9RDEPENDS:${PN} += " \
10 python3-io \
11 python3-pprint \
12 python3-xml \
13"
diff --git a/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb b/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb
new file mode 100644
index 0000000000..082e7c5025
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-netaddr_1.2.1.bb
@@ -0,0 +1,22 @@
1SUMMARY = "A network address manipulation library for Python."
2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa"
4
5SRC_URI[sha256sum] = "6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987"
6
7inherit pypi python_setuptools_build_meta ptest
8
9SRC_URI += " \
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
20 cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/
21}
22