From 60632a5f1b8584a80504d4a697b3f9b42e0909a9e87417063e25b4f929505bcf Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 4 Feb 2024 11:18:40 +0000 Subject: [PATCH] - update to 0.23: * Add _get_conversion_factor to registry with cache. * Homogenize input and ouput of internal regitry functions to facility typing, subclassing and wrapping. (_yield_unit_triplets, ) * Generated downstream_status page to track the state of downstream projects. * Improve typing annotation. * Updated to flexparser 0.2. * Faster wraps * Add codspeed github action. * Move benchmarks to pytest-benchmarks. * Support pytest on python 3.12 wrt Fraction formatting change * Fixed Transformation type protocol. * Documented to_preferred and created added an autoautoconvert_to_preferred registry option. * Enable Pint to parse uncertainty numbers. * Optimize matplotlib unit conversion for Quantity arrays * Add numpy.linalg.norm implementation. * Better support for pandas and dask. * Implements a first benchmark suite in airspeed velocity (asv). - Improved behaviour in ScaleConverter, OffsetConverter - Reimplemented loading of default definitions to allow Pint in - Added UnitRegistry () operator to parse OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=33 --- Pint-0.22.tar.gz | 3 --- Pint-0.23.tar.gz | 3 +++ python-Pint.changes | 33 ++++++++++++++++++++++++++++----- python-Pint.spec | 5 +++-- 4 files changed, 34 insertions(+), 10 deletions(-) delete mode 100644 Pint-0.22.tar.gz create mode 100644 Pint-0.23.tar.gz diff --git a/Pint-0.22.tar.gz b/Pint-0.22.tar.gz deleted file mode 100644 index af3e30b..0000000 --- a/Pint-0.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d139f6abbcf3016cad7d3cec05707fe908ac4f99cf59aedfd6ee667b7a64433 -size 342281 diff --git a/Pint-0.23.tar.gz b/Pint-0.23.tar.gz new file mode 100644 index 0000000..2eadeda --- /dev/null +++ b/Pint-0.23.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1509b91606dbc52527c600a4ef74ffac12fff70688aff20e9072409346ec9b4 +size 347420 diff --git a/python-Pint.changes b/python-Pint.changes index 8ed9887..51731a8 100644 --- a/python-Pint.changes +++ b/python-Pint.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Sun Feb 4 10:46:35 UTC 2024 - Dirk Müller + +- update to 0.23: + * Add _get_conversion_factor to registry with cache. + * Homogenize input and ouput of internal regitry functions to + facility typing, subclassing and wrapping. + (_yield_unit_triplets, ) + * Generated downstream_status page to track the + state of downstream projects. + * Improve typing annotation. + * Updated to flexparser 0.2. + * Faster wraps + * Add codspeed github action. + * Move benchmarks to pytest-benchmarks. + * Support pytest on python 3.12 wrt Fraction formatting change + * Fixed Transformation type protocol. + * Documented to_preferred and created added an + autoautoconvert_to_preferred registry option. + * Enable Pint to parse uncertainty numbers. + * Optimize matplotlib unit conversion for Quantity arrays + * Add numpy.linalg.norm implementation. + ------------------------------------------------------------------- Thu Dec 28 15:25:28 UTC 2023 - ecsos @@ -34,7 +57,7 @@ Wed Jan 4 20:05:35 UTC 2023 - Dirk Müller * Update test_non_int tests for pytest. * Create NaN-value quantities of appropriate non-int-type (Issue #1570). * New documentation format and organization! - * Better support for pandas and dask. + * Better support for pandas and dask. ------------------------------------------------------------------- Tue May 31 03:00:36 UTC 2022 - Arun Persaud @@ -148,7 +171,7 @@ Mon Apr 19 04:13:18 UTC 2021 - Steve Kowalik * Add sign function compatibility. * Fix scalar to ndarray tolist. * Fix tolist function with scalar ndarray. - * Implements a first benchmark suite in airspeed velocity (asv). + * Implements a first benchmark suite in airspeed velocity (asv). * Power for pseudo-dimensionless units. - No longer build for Python 3.6, due to no NumPy. @@ -547,16 +570,16 @@ Thu May 8 10:40:45 UTC 2014 - toddrme2178@gmail.com - Improved test suite helper functions. - Print honors default format w/o format(). - Fixed sum() by treating number zero as a special case. - - Improved behaviour in ScaleConverter, OffsetConverter + - Improved behaviour in ScaleConverter, OffsetConverter and Quantity.to. - - Reimplemented loading of default definitions to allow Pint in + - Reimplemented loading of default definitions to allow Pint in a cx_freeze or similar package. - Implemented parsing of pretty printed units. - Fixed representation of dimensionless quantities. - Raise error when invalid formatting code is given. - Default registry to lazy load, raise error on redefinition. - Added condensed format. - - Added UnitRegistry () operator to parse + - Added UnitRegistry () operator to parse expression replacing []. - Optional case insensitive unit parsing. - Change the Quantity mutability depending on magnitude type. diff --git a/python-Pint.spec b/python-Pint.spec index 4128fb0..54d6e1e 100644 --- a/python-Pint.spec +++ b/python-Pint.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pint # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-Pint -Version: 0.22 +Version: 0.23 Release: 0 Summary: Physical quantities module License: BSD-3-Clause @@ -66,6 +66,7 @@ the complete list without changing the source code. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +rm -rv pint/testsuite/benchmarks # fails with numpy 1.25 https://github.com/hgrecco/pint/issues/1825 %pytest -k "not test_equal_zero_nan_NP"