diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-pint.inc | 30 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pint_0.11.bb | 32 |
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 @@ | |||
1 | DESCRIPTION = "Interval arithmetic for Python" | ||
2 | HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals" | ||
3 | SECTION = "devel/python" | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b" | ||
7 | |||
8 | PYPI_PACKAGE := "Pint" | ||
9 | |||
10 | inherit pypi ptest | ||
11 | |||
12 | SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965" | ||
13 | SRC_URI[sha256sum] = "308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d" | ||
14 | |||
15 | DEPENDS += "python3-setuptools-scm-native" | ||
16 | |||
17 | BBCLASSEXTEND = "native nativesdk" | ||
18 | |||
19 | SRC_URI += " \ | ||
20 | file://run-ptest \ | ||
21 | " | ||
22 | |||
23 | RDEPENDS_${PN}-ptest += " \ | ||
24 | ${PYTHON_PN}-pytest \ | ||
25 | " | ||
26 | |||
27 | do_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 @@ | |||
1 | inherit setuptools3 | 1 | DESCRIPTION = "Interval arithmetic for Python" |
2 | require python-pint.inc | 2 | HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals" |
3 | SECTION = "devel/python" | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b" | ||
7 | |||
8 | PYPI_PACKAGE := "Pint" | ||
9 | |||
10 | inherit pypi ptest setuptools3 | ||
11 | |||
12 | SRC_URI[md5sum] = "3a8f29c2a30efd35af4b5c5a224ef965" | ||
13 | SRC_URI[sha256sum] = "308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d" | ||
14 | |||
15 | DEPENDS += "python3-setuptools-scm-native" | ||
16 | |||
17 | BBCLASSEXTEND = "native nativesdk" | ||
18 | |||
19 | SRC_URI += " \ | ||
20 | file://run-ptest \ | ||
21 | " | ||
22 | |||
23 | RDEPENDS_${PN}-ptest += " \ | ||
24 | ${PYTHON_PN}-pytest \ | ||
25 | " | ||
26 | |||
27 | do_install_ptest() { | ||
28 | install -d ${D}${PTEST_PATH}/testsuite | ||
29 | cp -rf ${S}/pint/testsuite/* ${D}${PTEST_PATH}/testsuite/ | ||
30 | } | ||