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.15.bb | 36 ---------------------- .../recipes-devtools/python/python3-pint_0.16.bb | 36 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pint_0.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pint_0.16.bb diff --git a/meta-python/recipes-devtools/python/python3-pint_0.15.bb b/meta-python/recipes-devtools/python/python3-pint_0.15.bb deleted file mode 100644 index 4df5573b1d..0000000000 --- a/meta-python/recipes-devtools/python/python3-pint_0.15.bb +++ /dev/null @@ -1,36 +0,0 @@ -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] = "8171859d92713c13cd13ea7100a707f0" -SRC_URI[sha256sum] = "73b517bc4e49d199eb8ae9ed49104d74a11e596849ad2330b58c09e1eb6f327d" - -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/ -} 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