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/python-intervals.inc15
-rw-r--r--meta-python/recipes-devtools/python/python3-intervals/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb30
3 files changed, 31 insertions, 17 deletions
diff --git a/meta-python/recipes-devtools/python/python-intervals.inc b/meta-python/recipes-devtools/python/python-intervals.inc
deleted file mode 100644
index 4489aa59d5..0000000000
--- a/meta-python/recipes-devtools/python/python-intervals.inc
+++ /dev/null
@@ -1,15 +0,0 @@
1DESCRIPTION = "Interval arithmetic for Python"
2HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
3SECTION = "devel/python"
4
5LICENSE = "LGPLv3"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
7
8PYPI_PACKAGE := "python-intervals"
9
10inherit pypi
11
12SRC_URI[md5sum] = "8955317ff4e42590c90ba6247b1caaed"
13SRC_URI[sha256sum] = "0d26746eaed0be78a61dd289bb7a10721b08770bb3e807614835f490d514f2a5"
14
15BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-intervals/run-ptest b/meta-python/recipes-devtools/python/python3-intervals/run-ptest
new file mode 100644
index 0000000000..357d8cb987
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-intervals/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest -o log_cli=true -o log_cli_level=INFO test_intervals.py| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb b/meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb
index 8cbe1090f3..2e8276ec72 100644
--- a/meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb
+++ b/meta-python/recipes-devtools/python/python3-intervals_1.10.0.bb
@@ -1,2 +1,28 @@
1inherit setuptools3 1DESCRIPTION = "Interval arithmetic for Python"
2require python-intervals.inc 2HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
3SECTION = "devel/python"
4
5LICENSE = "LGPLv3"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
7
8PYPI_PACKAGE := "python-intervals"
9
10SRC_URI += " \
11 file://run-ptest \
12"
13
14inherit pypi setuptools3 ptest
15
16RDEPENDS_${PN}-ptest += " \
17 ${PYTHON_PN}-pytest \
18"
19
20do_install_ptest() {
21 cp -f ${S}/test_intervals.py ${D}${PTEST_PATH}
22 cp -f ${S}/README.md ${D}${PTEST_PATH}
23}
24
25SRC_URI[md5sum] = "8955317ff4e42590c90ba6247b1caaed"
26SRC_URI[sha256sum] = "0d26746eaed0be78a61dd289bb7a10721b08770bb3e807614835f490d514f2a5"
27
28BBCLASSEXTEND = "native"