summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-python/recipes-devtools/python/python-pint.inc30
-rw-r--r--meta-python/recipes-devtools/python/python3-pint_0.11.bb32
2 files changed, 30 insertions, 32 deletions
diff --git a/meta-python/recipes-devtools/python/python-pint.inc b/meta-python/recipes-devtools/python/python-pint.inc
deleted file mode 100644
index 5c34810080..0000000000
--- a/meta-python/recipes-devtools/python/python-pint.inc
+++ /dev/null
@@ -1,30 +0,0 @@
1DESCRIPTION = "Interval arithmetic for Python"
2HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
3SECTION = "devel/python"
4
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b"
7
8PYPI_PACKAGE := "Pint"
9
10inherit pypi ptest
11
12SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
13SRC_URI[sha256sum] = "308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
14
15DEPENDS += "python3-setuptools-scm-native"
16
17BBCLASSEXTEND = "native nativesdk"
18
19SRC_URI += " \
20 file://run-ptest \
21"
22
23RDEPENDS_${PN}-ptest += " \
24 ${PYTHON_PN}-pytest \
25"
26
27do_install_ptest() {
28 install -d ${D}${PTEST_PATH}/testsuite
29 cp -rf ${S}/pint/testsuite/* ${D}${PTEST_PATH}/testsuite/
30}
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.11.bb b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
index f793ac4ace..d37da7c6a7 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.11.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.11.bb
@@ -1,2 +1,30 @@
1inherit setuptools3 1DESCRIPTION = "Interval arithmetic for Python"
2require python-pint.inc 2HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
3SECTION = "devel/python"
4
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b"
7
8PYPI_PACKAGE := "Pint"
9
10inherit pypi ptest setuptools3
11
12SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965"
13SRC_URI[sha256sum] = "308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d"
14
15DEPENDS += "python3-setuptools-scm-native"
16
17BBCLASSEXTEND = "native nativesdk"
18
19SRC_URI += " \
20 file://run-ptest \
21"
22
23RDEPENDS_${PN}-ptest += " \
24 ${PYTHON_PN}-pytest \
25"
26
27do_install_ptest() {
28 install -d ${D}${PTEST_PATH}/testsuite
29 cp -rf ${S}/pint/testsuite/* ${D}${PTEST_PATH}/testsuite/
30}