From f1b10c2686ba12e64136862fb545f3c195494c90 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 6 Oct 2025 12:53:58 +0300 Subject: python3-pint: Upgrade 0.24.4 -> 0.25 Upgrade to release 0.25: - Bump minimum Python version to 3.11 - Upgrade code to Python 3.11 - Move to pixi/uv/ruff - Refactor compat to make it easier to test - Implemented several pixi environment and tasks to simplify development - Add docs to the functions in pint.testing - Fix round function returning float instead of int - Fix return type of PlainQuantity.to - Update constants to CODATA 2022 recommended values - Fixed issue with .to_compact and Magnitudes with uncertainties / Quantities with units - Fixed issue in unit conversion which led to loss of precision when using decimal - Add conductivity dimension - Add absorbance unit and dimension - Add membrane filtration flux and permeability dimensionality, and shorthand "LMH" - Fix find_shortest_path to use breadth first search - Fix typo in pyproject.toml: rename AS_MIP to HAS_MIP so that MIP support is correctly detected - Fix handling of extra arguments in conversion with enabled contexts - Fix swapped left and right arguments in interp - Fix formatted scientific notation bug in Python 3.13 - Fix ability to add dB units, and to add dB (dimensionless) to referenced dB units, such as dBm or dBW - Improve pressure unit definitions in default definition file - Avoid and document known issues with MIP during install, testing and runtime - Fix issue with Dask by restricting its version to < 2025.3.0 - Skip false xfail tests linked to a known numpy issue - Improve Contributing documentation - Add Quantity.to_unprefixed` and `ito_unprefixed methods that remove SI prefixes without converting to base units Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-pint_0.24.4.bb | 35 ---------------------- .../recipes-devtools/python/python3-pint_0.25.bb | 35 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pint_0.24.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-pint_0.25.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb b/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb deleted file mode 100644 index 1bf62ca729..0000000000 --- a/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb +++ /dev/null @@ -1,35 +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" - -inherit pypi ptest-python-pytest python_setuptools_build_meta - -SRC_URI[sha256sum] = "35275439b574837a6cd3020a5a4a73645eb125ce4152a73a2f126bf164b91b80" - -DEPENDS += "python3-setuptools-scm-native" - -BBCLASSEXTEND = "native nativesdk" - -PTEST_PYTEST_DIR = "pint" - -RDEPENDS:${PN} += " \ - python3-setuptools \ - python3-packaging \ - python3-platformdirs \ -" -# python3-misc for timeit.py -RDEPENDS:${PN}-ptest += " \ - python3-appdirs \ - python3-attrs \ - python3-flexcache \ - python3-flexparser \ - python3-misc \ - python3-pytest-benchmark \ - python3-pytest-subtests \ - python3-statistics \ -" - diff --git a/meta-python/recipes-devtools/python/python3-pint_0.25.bb b/meta-python/recipes-devtools/python/python3-pint_0.25.bb new file mode 100644 index 0000000000..c85805e1f4 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pint_0.25.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" + +inherit pypi python_hatchling ptest-python-pytest python_setuptools_build_meta + +SRC_URI[sha256sum] = "22911a30d682ee0540d656571c19a7b1806ce00b2be88a16f67218108b7b8cc2" + +DEPENDS += "python3-setuptools-scm-native python3-hatch-vcs-native" + +BBCLASSEXTEND = "native nativesdk" + +PTEST_PYTEST_DIR = "pint" + +RDEPENDS:${PN} += " \ + python3-setuptools \ + python3-packaging \ + python3-platformdirs \ +" +# python3-misc for timeit.py +RDEPENDS:${PN}-ptest += " \ + python3-appdirs \ + python3-attrs \ + python3-flexcache \ + python3-flexparser \ + python3-misc \ + python3-pytest-benchmark \ + python3-pytest-subtests \ + python3-statistics \ +" + -- cgit v1.2.3-54-g00ecf