Accepting request 1143987 from devel:languages:python:numeric

- 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/request/show/1143987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=18
This commit is contained in:
2024-02-04 18:09:52 +00:00
committed by Git OBS Bridge
4 changed files with 34 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d139f6abbcf3016cad7d3cec05707fe908ac4f99cf59aedfd6ee667b7a64433
size 342281

3
Pint-0.23.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1509b91606dbc52527c600a4ef74ffac12fff70688aff20e9072409346ec9b4
size 347420

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Sun Feb 4 10:46:35 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <ecsos@opensuse.org>
@@ -34,7 +57,7 @@ Wed Jan 4 20:05:35 UTC 2023 - Dirk Müller <dmueller@suse.com>
* 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 <arun@gmx.de>
@@ -148,7 +171,7 @@ Mon Apr 19 04:13:18 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
* 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.

View File

@@ -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"