diff options
| author | Leon Anavi <leon.anavi@konsulko.com> | 2020-06-11 12:08:59 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-06-12 08:46:48 -0700 |
| commit | 3def8e05265bceb86c6f32531ecd2cad179598c4 (patch) | |
| tree | 3593a781ad0a7bfa27a1300f71e8df91b420cc7a /meta-python/recipes-devtools/python | |
| parent | ab0372b3bf8d38266e4dd04d6af67fccc35fb82e (diff) | |
| download | meta-openembedded-3def8e05265bceb86c6f32531ecd2cad179598c4.tar.gz | |
python3-pint: Consolidate in a single file
Consolidate inc and bb files into a single bb file.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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 | } | ||
