diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
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 | |||
| 3 | pytest --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 @@ | |||
| 1 | SUMMARY = "A network address manipulation library for Python." | ||
| 2 | LICENSE = "BSD-3-Clause" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e6345d695ffe3776f68a56fe7962db44" | ||
| 4 | |||
| 5 | SRC_URI[sha256sum] = "f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf" | ||
| 6 | |||
| 7 | inherit pypi setuptools3 | ||
| 8 | |||
| 9 | RDEPENDS:${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 @@ | |||
| 1 | SUMMARY = "A network address manipulation library for Python." | ||
| 2 | LICENSE = "BSD-3-Clause" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa" | ||
| 4 | |||
| 5 | SRC_URI[sha256sum] = "6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987" | ||
| 6 | |||
| 7 | inherit pypi python_setuptools_build_meta ptest | ||
| 8 | |||
| 9 | SRC_URI += " \ | ||
| 10 | file://run-ptest \ | ||
| 11 | " | ||
| 12 | |||
| 13 | RDEPENDS:${PN}-ptest += " \ | ||
| 14 | python3-pytest \ | ||
| 15 | python3-unittest-automake-output \ | ||
| 16 | " | ||
| 17 | |||
| 18 | do_install_ptest() { | ||
| 19 | install -d ${D}${PTEST_PATH}/tests | ||
| 20 | cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 21 | } | ||
| 22 | |||
