Accepting request 980050 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/980050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=14
This commit is contained in:
2022-05-31 13:47:44 +00:00
committed by Git OBS Bridge
4 changed files with 69 additions and 7 deletions

View File

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

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

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

View File

@@ -1,3 +1,64 @@
-------------------------------------------------------------------
Tue May 31 03:00:36 UTC 2022 - Arun Persaud <arun@gmx.de>
- specfile:
* update copyright year
* require python >= 3.8, numpy >= 1.19
- update to version 0.19.2:
* Add the "separate_format_defaults" registry setting (Issue #1501,
PR #1503)
* Handle definitions @import from relative paths on Windows (Issue
#1508, thanks khaeru)
- changes from version 0.19.1:
* Provide a method to iter the definitions in the order they appear,
recursing the imported files. (Issue #1498)
- changes from version 0.19:
* Better separation between parsing and loading of definitions.
Implement a parsed "binary" version of "textual" definition files.
Infrastructure to disk cache parsed definition files and
RegistryCache resulting in a 10X speed up in registry
instantiation when enabled. (Issue #1465)
* Deprecate the old format defaulting behavior and prepare for the
new one (Issue #1407)
* Fix a bug for offset units of higher dimension, e.g. gauge
pressure. (Issue #1066, thanks dalito)
* Fix type hints of function wrapper (Issue #1431)
* Upgrade min version of uncertainties to 3.1.4
* Add a example for `register_unit_format` to the formatting docs
(Issue #1422).
* Fix setting options of the application registry (Issue #1403).
* Fix Quantity & Unit `is_compatible_with` with registry active
contexts (Issue #1424).
* Allow Quantity to parse 'NaN' and 'inf(inity)', case insensitive
* Fix casting error when using to_reduced_units with array of int.
(Issue #1184)
* Use default numpy `np.printoptions` available since numpy 1.15.
* Implement `numpy.nanprod` (Issue #1369)
* Fix default_format ignored for measurement (Issue #1456)
* Add `pint.testing` with functions to compare pint objects in tests
(Issue #1421).
* Fix handling modulo & floordiv operator in pint_eval (Issue #1470)
* Fix `to_compact` and `infer_base_unit` for non-float non_int_type.
* Fix `to_reduced_units` to work with dimensionless units. (Issue
#919)
* Fix parsing of units string with same canonalized name (Issue
#1441 & #1142)
* The pint-pandas example notebook has been moved to the pint-pandas
package.
* New Units
+ `sverdrup` (PR #1404)
+ `cooling_tower_ton` (PR #1484)
* Breaking Changes
+ Update hour default symbol to `h`. (Issue #719)
+ Replace `h` with `` (U+210E) as default symbol for planck
constant.
+ Change minimal Python version support to 3.8+
+ Change minimal Numpy version support to 1.19+
-------------------------------------------------------------------
Sat Nov 27 20:37:27 UTC 2021 - Arun Persaud <arun@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Pint
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,12 +20,13 @@
%define skip_python2 1
%define skip_python36 1
Name: python-Pint
Version: 0.18
Version: 0.19.2
Release: 0
Summary: Physical quantities module
License: BSD-3-Clause
URL: https://github.com/hgrecco/pint
Source: https://files.pythonhosted.org/packages/source/P/Pint/Pint-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module importlib-resources}
BuildRequires: %{python_module setuptools_scm}
@@ -36,10 +37,10 @@ Requires: python-importlib-metadata
Requires: python-importlib-resources
Requires: python-packaging
Requires: python-uncertainties >= 3.0
Recommends: python-numpy >= 1.17
Recommends: python-numpy >= 1.19
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module numpy >= 1.17}
BuildRequires: %{python_module numpy >= 1.19}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest >= 4.0}
BuildRequires: %{python_module pytest-subtests}