meta-openembedded/meta-python/recipes-devtools/python/python3-pint_0.16.bb
Leon Anavi e926680b8d 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 <leon.anavi@konsulko.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 09:28:35 -07:00

37 lines
835 B
BlitzBasic

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/
}