diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2024-06-25 16:56:13 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-06-27 09:19:01 -0700 |
| commit | 208332560f528d17eac963e4297b3b3f4a61b7a0 (patch) | |
| tree | e6d93974e3360a7e5ea8c848449dbe97a342d36b /meta-python/recipes-devtools/python/python3-pint_0.24.bb | |
| parent | d15cc04635af2a32b4d01763c2ffea9f4517a7cf (diff) | |
| download | meta-openembedded-208332560f528d17eac963e4297b3b3f4a61b7a0.tar.gz | |
python3-pint: upgrade 0.23 -> 0.24
Changelog:
==========
- Fix detection of invalid conversion between offset and delta units.
- Added dBW, decibel Watts, which is used in RF high power applications
- NumPy 2.0 support
- Implement numpy roll (Related to issue #981)
- Implement numpy correlate
- Add 'dim_sort' function to _formatter_helpers.
- Add 'dim_order' and 'default_sort_func' properties to FullFormatter.
- Documented packages using pint.
- Fixed bug causing operations between arrays of quantity scalars and quantity holding
array resulting in incorrect units.
- Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal.
- Added refractive index units.
- Fix converting to offset units of higher dimension e.g. gauge pressure
- Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal
- Improved error message in 'get_dimensionality()' when non existent units are passed.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pint_0.24.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pint_0.24.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.24.bb b/meta-python/recipes-devtools/python/python3-pint_0.24.bb new file mode 100644 index 0000000000..c570fed6ba --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pint_0.24.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | SUMMARY = "Physical quantities module" | ||
| 2 | DESCRIPTION = "Physical quantities Python module" | ||
| 3 | HOMEPAGE = "https://github.com/hgrecco/pint" | ||
| 4 | SECTION = "devel/python" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b" | ||
| 8 | |||
| 9 | PYPI_PACKAGE := "Pint" | ||
| 10 | |||
| 11 | inherit ptest python_setuptools_build_meta | ||
| 12 | |||
| 13 | SRCREV = "7b47d6b7b0f7655efca810a90f2781c0d1cc7fb9" | ||
| 14 | SRC_URI = "git://github.com/hgrecco/pint;protocol=https;branch=master" | ||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | #SRC_URI[sha256sum] = "e1509b91606dbc52527c600a4ef74ffac12fff70688aff20e9072409346ec9b4" | ||
| 17 | |||
| 18 | DEPENDS += "python3-setuptools-scm-native" | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native nativesdk" | ||
| 21 | |||
| 22 | SRC_URI += " \ | ||
| 23 | file://run-ptest \ | ||
| 24 | " | ||
| 25 | |||
| 26 | RDEPENDS:${PN} += " \ | ||
| 27 | python3-setuptools \ | ||
| 28 | python3-packaging \ | ||
| 29 | " | ||
| 30 | |||
| 31 | RDEPENDS:${PN}-ptest += " \ | ||
| 32 | python3-appdirs \ | ||
| 33 | python3-flexcache \ | ||
| 34 | python3-flexparser \ | ||
| 35 | python3-pytest \ | ||
| 36 | " | ||
| 37 | |||
| 38 | do_install_ptest() { | ||
| 39 | install -d ${D}${PTEST_PATH}/testsuite | ||
| 40 | cp -rf ${S}/pint/* ${D}${PTEST_PATH}/ | ||
| 41 | } | ||
