From b433558aa03e352696eeed769b31ebae6520745a Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 25 Mar 2021 15:34:33 +0200 Subject: python3-pint: Upgrade 0.16.1 -> 0.17 Upgrade to release 0.17: - Add the Wh unit for battery capacity measurements - Fix issue with reducable dimensionless units when using power (Quantity**ndarray) - Fix comparisons between Quantities and Measurements. - UnitsContainer returns false if other is str and cannnot be parsed - Fix numpy.linalg.solve unit output. - Support numpy.lib.stride_tricks.sliding_window_view. - NEP29 Support docs. - Move all tests to pytest. - Fix to __pow__ and __ipow__ - Migrate to Github Actions. - Update linter to use pre-commit. - Quantity comparisons now ensure other is Quantity. - Add sign function compatibility. - Fix scalar to ndarray tolist. - Fix tolist function with scalar ndarray. - Corrected typos and dacstrings - Implements a first benchmark suite in airspeed velocity (asv). - Power for pseudo-dimensionless units. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-pint_0.16.1.bb | 36 ---------------------- .../recipes-devtools/python/python3-pint_0.17.bb | 35 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 36 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pint_0.16.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-pint_0.17.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pint_0.16.1.bb b/meta-python/recipes-devtools/python/python3-pint_0.16.1.bb deleted file mode 100644 index d96659592a..0000000000 --- a/meta-python/recipes-devtools/python/python3-pint_0.16.1.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] = "d4a7bbdf505dee964eb1e5e6e7f80c34" -SRC_URI[sha256sum] = "d43a2e9ae003164978b60fdf8cd920d8581e1a5991df8dded29b00f4850ec83a" - -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.17.bb b/meta-python/recipes-devtools/python/python3-pint_0.17.bb new file mode 100644 index 0000000000..9a474901e9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pint_0.17.bb @@ -0,0 +1,35 @@ +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[sha256sum] = "f4d0caa713239e6847a7c6eefe2427358566451fe56497d533f21fb590a3f313" + +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