Accepting request 865060 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/865060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=11
This commit is contained in:
2021-01-26 13:46:04 +00:00
committed by Git OBS Bridge
4 changed files with 40 additions and 6 deletions

View File

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

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

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

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Wed Jan 20 16:54:45 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Use %python_alternative to fix multi Python 3 builds
-------------------------------------------------------------------
Sat Oct 10 19:19:46 UTC 2020 - Arun Persaud <arun@gmx.de>
- update to version 0.16.1:
* Fix unpickling, now it is using the APP_REGISTRY as expected.
(Issue #1175)
* require importlib-[resources|metadata]
- changes from version 0.16 :
* Fixed issue where performing an operation of a Quantity with
certain units would perform an in-place unit conversion that
modified the operand in addition to the returned value (Issues
#1102 & #1144)
* Implements Logarithmic Units like dBm, dB or decade (Issue #71,
Thanks Dima Pustakhod, Clark Willison, Giorgio Signorello, Steven
Casagrande, Jonathan Wheeler)
* Drop dependency on setuptools pkg_resources to read package
resources, using std lib importlib.resources instead. (Issue
#1080)
-------------------------------------------------------------------
Fri Sep 18 10:59:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -19,23 +19,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-Pint
Version: 0.15
Version: 0.16.1
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 importlib-metadata}
BuildRequires: %{python_module importlib-resources}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-importlib-metadata
Requires: python-importlib-resources
Requires: python-packaging
Requires: python-uncertainties >= 3.0
Recommends: python-numpy
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest >= 4.0}
@@ -61,6 +63,7 @@ the complete list without changing the source code.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pint-convert
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -68,10 +71,16 @@ the complete list without changing the source code.
# See: https://github.com/hgrecco/pint/issues/1006
%pytest -k 'not test_result_type_numpy_func'
%post
%python_install_alternative pint-convert
%postun
%python_uninstall_alternative pint-convert
%files %{python_files}
%license LICENSE
%doc AUTHORS CHANGES README.rst
%{_bindir}/pint-convert
%python_alternative %{_bindir}/pint-convert
%{python_sitelib}/Pint-0*-py*.egg-info
%{python_sitelib}/pint/