diff --git a/Pint-0.15.tar.gz b/Pint-0.15.tar.gz deleted file mode 100644 index 4033b2e..0000000 --- a/Pint-0.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:73b517bc4e49d199eb8ae9ed49104d74a11e596849ad2330b58c09e1eb6f327d -size 255706 diff --git a/Pint-0.16.1.tar.gz b/Pint-0.16.1.tar.gz new file mode 100644 index 0000000..7e27ed2 --- /dev/null +++ b/Pint-0.16.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d43a2e9ae003164978b60fdf8cd920d8581e1a5991df8dded29b00f4850ec83a +size 261815 diff --git a/python-Pint.changes b/python-Pint.changes index 86cb71b..e8309ae 100644 --- a/python-Pint.changes +++ b/python-Pint.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Jan 20 16:54:45 UTC 2021 - John Vandenberg + +- Use %python_alternative to fix multi Python 3 builds + +------------------------------------------------------------------- +Sat Oct 10 19:19:46 UTC 2020 - Arun Persaud + +- 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 diff --git a/python-Pint.spec b/python-Pint.spec index d98cb91..84acf16 100644 --- a/python-Pint.spec +++ b/python-Pint.spec @@ -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/