From e926680b8dd027273088c7889742a22592209ae2 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 14 Sep 2020 16:15:35 +0300 Subject: python3-pint: Upgrade 0.15 -> 0.16 Upgrade to release 0.16: - Fixed issue where performing an operation of a Quantity with certain units would perform an in-place unit conversion that modified the operand in addition to the returned value - Implements Logarithmic Units like dBm, dB or decade - Drop dependency on setuptools pkg_resources to read package resources, using std lib importlib.resources instead. Signed-off-by: Leon Anavi Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-pint_0.16.bb | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pint_0.16.bb (limited to 'meta-python/recipes-devtools/python/python3-pint_0.16.bb') diff --git a/meta-python/recipes-devtools/python/python3-pint_0.16.bb b/meta-python/recipes-devtools/python/python3-pint_0.16.bb new file mode 100644 index 0000000000..7775d733a7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pint_0.16.bb @@ -0,0 +1,36 @@ +SUMMARY = "Physical quantities module" +DESCRIPTION = "Physical quantities Python module" +HOMEPAGE = "https://github.com/hgrecco/pint" +SECTION = "devel/python" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b" + +PYPI_PACKAGE := "Pint" + +inherit pypi ptest setuptools3 + +SRC_URI[md5sum] = "ec78e4e42512b93f80b9093416ad7417" +SRC_URI[sha256sum] = "e437420e65fa72a2805f4036f986669c48d54944eeb0e47c8ba16f98cbdcd599" + +DEPENDS += "python3-setuptools-scm-native" + +BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-setuptools \ + ${PYTHON_PN}-packaging \ +" + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testsuite + cp -rf ${S}/pint/testsuite/* ${D}${PTEST_PATH}/testsuite/ +} -- cgit v1.2.3-54-g00ecf