#7 Fix FTBFS in all Fedora releases
Merged 7 months ago by mrunge. Opened 10 months ago by music.
rpms/ music/python-pint py312  into  rawhide

file modified
+2
@@ -5,3 +5,5 @@ 

  /Pint-0.16.tar.gz

  /Pint-0.16.1.tar.gz

  /Pint-0.17.tar.gz

+ /Pint-0.19.tar.gz

+ /Pint-0.19.2.tar.gz

@@ -0,0 +1,25 @@ 

+ From 9ace880dfa2a57772f1c2cac1316338995baf1fb Mon Sep 17 00:00:00 2001

+ From: Justus Magin <keewis@posteo.de>

+ Date: Tue, 7 Mar 2023 13:24:37 +0100

+ Subject: [PATCH] add `min` and `max` to the array function overrides

+ 

+ ---

+  pint/numpy_func.py | 2 ++

+  1 file changed, 2 insertions(+)

+ 

+ diff --git a/pint/numpy_func.py b/pint/numpy_func.py

+ index e09decb..ccc99b9 100644

+ --- a/pint/numpy_func.py

+ +++ b/pint/numpy_func.py

+ @@ -805,6 +805,8 @@ for func_str, unit_arguments, wrap_output in [

+      ("broadcast_to", ["array"], True),

+      ("amax", ["a", "initial"], True),

+      ("amin", ["a", "initial"], True),

+ +    ("max", ["a", "initial"], True),

+ +    ("min", ["a", "initial"], True),

+      ("searchsorted", ["a", "v"], False),

+      ("isclose", ["a", "b"], False),

+      ("nan_to_num", ["x", "nan", "posinf", "neginf"], True),

+ -- 

+ 2.41.0

+ 

@@ -0,0 +1,26 @@ 

+ From b3b18277ecc682bff7ca1fa9e48992f7ec68e47f Mon Sep 17 00:00:00 2001

+ From: Hernan Grecco <hgrecco@gmail.com>

+ Date: Wed, 12 Jul 2023 20:39:13 -0300

+ Subject: [PATCH] Fix test as NumPy 1.25 changes the rules for equality

+  operator

+ 

+ ---

+  pint/testsuite/test_quantity.py | 5 ++++-

+  1 file changed, 4 insertions(+), 1 deletion(-)

+ 

+ diff --git a/pint/testsuite/test_quantity.py b/pint/testsuite/test_quantity.py

+ index 1843b69ca..7efe74f80 100644

+ --- a/pint/testsuite/test_quantity.py

+ +++ b/pint/testsuite/test_quantity.py

+ @@ -1906,7 +1906,10 @@ def test_equal_zero_nan_NP(self):

+              self.Q_([0, 1, 2], "J") == np.array([0, 0, np.nan]),

+              np.asarray([True, False, False]),

+          )

+ -        assert not (self.Q_(np.arange(4), "J") == np.zeros(3))

+ +

+ +        # This raise an exception on NumPy 1.25 as dimensions

+ +        # are different

+ +        # assert not (self.Q_(np.arange(4), "J") == np.zeros(3))

+  

+      def test_offset_equal_zero(self):

+          ureg = self.ureg

file added
+128
@@ -0,0 +1,128 @@ 

+ * Fri Aug 25 2023 Mark E. Fuller <fuller@fedoraproject.org> - 0.17-1

+ - Bump to minimum version required to compile Cantera 3.0.0

+ - Switch to autorelease in spec

+ 

+ * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-12

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

+ 

+ * Sun Jul 16 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.16.1-11

+ - Support numpy 1.24.x some types removal which were already deprecated

+ - Workaround python3.12 changes for Fractions which now returns ValueError

+   instead of TypeError

+ - Fix for python3.12 with unittest.assertEquals removal

+ 

+ * Tue Jun 27 2023 Python Maint <python-maint@redhat.com> - 0.16.1-10

+ - Rebuilt for Python 3.12

+ 

+ * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-9

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

+ 

+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-8

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

+ 

+ * Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.16.1-7

+ - Rebuilt for Python 3.11

+ 

+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-6

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

+ 

+ * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-5

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

+ 

+ * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.16.1-4

+ - Rebuilt for Python 3.10

+ 

+ * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

+ 

+ * Sun Jan 24 2021 Matthias Runge <mrunge@redhat.com> - 0.16.1-2

+ - rebuild without bootstrap

+ - fix FTBFS (rhbz#1914333)

+ 

+ * Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 0.13-3

+ - Fix test dependencies and execution

+ 

+ * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

+ 

+ * Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.13-1

+ - Update to 0.13

+ 

+ * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-3

+ - Rebuilt for Python 3.9

+ 

+ * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

+ 

+ * Thu Jan 09 2020 Matthias Runge <mrunge@redhat.com> - 0.10.1-1

+ - update to 0.10.1 (rhbz#1789066)

+ - modernize specfile

+ 

+ * Thu Sep 05 2019 Matthias Runge <mrunge@redhat.com> - 0.9-5

+ - skip test_quantity for now (rhbz#1706212)

+ 

+ * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-5

+ - Rebuilt for Python 3.8

+ 

+ * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

+ 

+ * Wed Jul 10 2019 Matthias Runge <mrunge@redhat.com> - 0.9-3

+ - Use context manager for assertWarns and fix DeprecationWarning

+   resolves: rhbz#1706212

+ 

+ * Sun Mar 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-2

+ - Subpackages python2-pint, python2-pint-doc have been removed

+   See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

+ 

+ * Mon Feb 25 2019 Yatin Karel <ykarel@redhat.com> - 0.9-1

+ - Update to 0.9

+ 

+ * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-16

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

+ 

+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-15

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

+ 

+ * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-14

+ - Rebuilt for Python 3.7

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-13

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6-12

+ - Update Python 2 dependency declarations to new packaging standards

+   (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-11

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-10

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6-9

+ - Rebuild for Python 3.6

+ 

+ * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-8

+ - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6

+ - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

+ 

+ * Sun Sep 06 2015 Matthias Runge <mrunge@redhat.com> - 0.6-5

+ - fix uppercase/lowercase naming, fix obsoletes

+ 

+ * Fri Sep 04 2015 Chandan Kumar <chkumar246@gmail.com> - 0.6-4

+ - Add python2 and python3 subpackages

+ 

+ * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

+ 

+ * Mon Dec 15 2014 Matthias Runge <mrunge@redhat.com> - 0.6-2

+ - change BR python-devel to python2-devel (rhbz#1173109)

+ 

+ * Thu Dec 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6-1

+ - Initial package.

file modified
+72 -215
@@ -1,244 +1,101 @@ 

- %global pypi_name Pint

- %bcond_with docs

- 

  Name:           python-pint

- Version:        0.17

+ Version:        0.19.2

  Release:        %autorelease

  Summary:        Physical quantities module

  

- License:        BSD

+ # The entire source is BSD-3-Clause, except:

+ #   - pint/_vendor/appdirs.py is MIT, but is unbundled in %%prep

+ #   - pint/_vendor/flexcache.py is also BSD-3-Clause, but is unbundled in

+ #     %%prep

+ License:        BSD-3-Clause

  URL:            https://github.com/hgrecco/pint

- Source0:        %pypi_source

+ Source0:        %{pypi_source Pint}

+ 

+ # Fix test as NumPy 1.25 changes the rules for equality operator

+ # https://github.com/hgrecco/pint/commit/b3b18277ecc682bff7ca1fa9e48992f7ec68e47f

+ #

+ # Fixes:

+ #

+ # test_equal_zero_nan_NP fails with numpy 1.25.1

+ # https://github.com/hgrecco/pint/issues/1825

+ Patch:          %{url}/commit/b3b18277ecc682bff7ca1fa9e48992f7ec68e47f.patch

+ 

+ # add min and max to the array function overrides

+ # https://github.com/hgrecco/pint/commit/1b2b0592f88a1c9fdf9b5649ebade19fa81adea4

+ #

+ # Fixes several failures in TestNumpyUnclassified

+ #

+ # Cherry-picked to 0.19.

+ Patch:          0001-add-min-and-max-to-the-array-function-overrides.patch

  

  BuildArch:      noarch

- BuildRequires:  pyproject-rpm-macros

  

- %description

- Pint is Python module/package to define, operate and manipulate physical

- quantities: the product of a numerical value and a unit of measurement.

- It allows arithmetic operations between them and conversions from and

- to different units.

+ %global _description %{expand:

+ Pint is a Python package to define, operate and manipulate physical quantities:

+ the product of a numerical value and a unit of measurement. It allows

+ arithmetic operations between them and conversions from and to different units.

  

- It is distributed with a comprehensive list of physical units, prefixes

- and constants.

+ It is distributed with a comprehensive list of physical units, prefixes and

+ constants.}

  

- %package -n python3-pint

- Summary:        Physical quantities module

- %{?python_provide:%python_provide python3-pint}

- 

- BuildRequires:  python3-numpy

- BuildRequires:  python3-pytest

- 

- %description -n python3-pint

- Pint is Python module/package to define, operate and manipulate physical

- quantities: the product of a numerical value and a unit of measurement.

- It allows arithmetic operations between them and conversions from and

- to different units.

- 

- It is distributed with a comprehensive list of physical units, prefixes

- and constants.

- 

- %if %{with docs}

- %package -n python3-pint-doc

- Summary:        Documentation for the pint module

- %{?python_provide:%python_provide python3-pint-doc}

- 

- BuildRequires:  pandoc

- BuildRequires:  python3-graphviz

- BuildRequires:  python3-ipykernel

- BuildRequires:  python3-jupyter-client

- BuildRequires:  python3-matplotlib

- BuildRequires:  python3-nbsphinx

- BuildRequires:  python3-pandas

- BuildRequires:  python3-dask

- BuildRequires:  python3-pygments

- BuildRequires:  python3-sphinx

- BuildRequires:  python3-xarray

- 

- %description -n python3-pint-doc

- Documentation for the pint module

- %endif

+ %description %{_description}

  

- %prep

- %setup -q -n %{pypi_name}-%{version}

- 

- # numpy 1.24.x removes np.float np.alen and so on

- # These are already fixed upstream

- grep -rl "dtype=np\.float" . | xargs sed -i -e 's|dtype=np\.float|dtype=float|'

- sed -i pint/testsuite/test_numpy.py \

- 	-e 's|dtype=float32|dtype=np.float32|' \

- 	-e 's|dtype=float64|dtype=np.float64|' \

- 	-e 's|np\.alen|len|' \

- 	%{nil}

+ %package -n python3-pint

+ Summary:        %{summary}

  

- # Workaround for https://github.com/hgrecco/pint/issues/1818

- sed -i pint/testsuite/__init__.py -e '115s|except TypeError:|except (TypeError, ValueError):|'

+ %description -n python3-pint %{_description}

  

- # python 3.12 removes deprecated unittest.assertEquals

- # This is already fixed upstream

- sed -i pint/testsuite/test_contexts.py -e 's|self.assertEquals|self.assertEqual|'

+ # We omit the “uncertainties” extra because python-uncertainties is not yet

+ # packaged.

+ %pyproject_extras_subpkg -n python3-pint numpy

  

- # drop numpy version requirement

- sed -i '/@helpers.requires_numpy_at_least("1.16")/d' pint/testsuite/test_quantity.py

+ %prep

+ %autosetup -n Pint-%{version} -p1

+ 

+ # We are not sure where this was bundled from, but we are pretty sure it was

+ # bundled from somewhere! We are not building HTML documentation, so we do not

+ # need it.

+ rm -rvf docs/_themes

+ 

+ # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

+ sed -r -i '/pytest-cov/d' setup.cfg

+ 

+ # Unbundle python-appdirs

+ # http://github.com/ActiveState/appdirs

+ # Provides:       bundled(python3dist(appdirs)) = 1.4.4

+ rm -vf pint/_vendor/appdirs.py

+ # Unbundle python-flexcache

+ # https://github.com/hgrecco/flexcache

+ # Provides:       bundled(python3dist(flexcache)) = 0.2

+ rm -vf pint/_vendor/flexcache.py

+ # Add devendored dependencies back in as regular dependencies

+ sed -r -i 's/^setup_requires/install_requires = appdirs; flexcache\n&/' \

+     setup.cfg

+ # The find-then-modify pattern keeps us from discarding mtimes on sources that

+ # do not need modification.

+ find pint -type f -exec \

+     gawk '/^from \.+_vendor import (appdirs|flexcache)/ {

+         print FILENAME; nextfile }' '{}' '+' |

+   xargs -r -t sed -r -i \

+       's/^from \.+_vendor (import (appdirs|flexcache))/\1/'

  

  %generate_buildrequires

- %pyproject_buildrequires -x test

+ # We omit the “uncertainties” extra because python-uncertainties is not yet

+ # packaged.

+ %pyproject_buildrequires -x numpy,test

  

  %build

  %pyproject_wheel

  

- %if %{with docs}

- export PYTHONPATH="$( pwd ):$PYTHONPATH"

- sphinx-build-3 docs html

- # remove the sphinx-build leftovers

- 

- rm -rf html/.{doctrees,buildinfo}

- %endif

- 

  %install

  %pyproject_install

+ %pyproject_save_files pint

  

  %check

  %pytest

  

- %files -n python3-pint

- %license LICENSE

+ %files -n python3-pint -f %{pyproject_files}

  %{_bindir}/pint-convert

- %{python3_sitelib}/pint

- %{python3_sitelib}/Pint-%{version}.*

- 

- %if %{with docs}

- %files -n python3-pint-doc

- %doc html

- %license docs/_themes/LICENSE

- %endif

  

  %changelog

- * Fri Aug 25 2023 Mark E. Fuller <fuller@fedoraproject.org> - 0.17-1

- - Bump to minimum version required to compile Cantera 3.0.0

- - Switch to autorelease in spec

- 

- * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-12

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

- 

- * Sun Jul 16 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.16.1-11

- - Support numpy 1.24.x some types removal which were already deprecated

- - Workaround python3.12 changes for Fractions which now returns ValueError

-   instead of TypeError

- - Fix for python3.12 with unittest.assertEquals removal

- 

- * Tue Jun 27 2023 Python Maint <python-maint@redhat.com> - 0.16.1-10

- - Rebuilt for Python 3.12

- 

- * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-9

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

- 

- * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-8

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

- 

- * Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.16.1-7

- - Rebuilt for Python 3.11

- 

- * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-6

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

- 

- * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-5

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

- 

- * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.16.1-4

- - Rebuilt for Python 3.10

- 

- * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

- 

- * Sun Jan 24 2021 Matthias Runge <mrunge@redhat.com> - 0.16.1-2

- - rebuild without bootstrap

- - fix FTBFS (rhbz#1914333)

- 

- * Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 0.13-3

- - Fix test dependencies and execution

- 

- * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

- 

- * Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.13-1

- - Update to 0.13

- 

- * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-3

- - Rebuilt for Python 3.9

- 

- * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

- 

- * Thu Jan 09 2020 Matthias Runge <mrunge@redhat.com> - 0.10.1-1

- - update to 0.10.1 (rhbz#1789066)

- - modernize specfile

- 

- * Thu Sep 05 2019 Matthias Runge <mrunge@redhat.com> - 0.9-5

- - skip test_quantity for now (rhbz#1706212)

- 

- * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-5

- - Rebuilt for Python 3.8

- 

- * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

- 

- * Wed Jul 10 2019 Matthias Runge <mrunge@redhat.com> - 0.9-3

- - Use context manager for assertWarns and fix DeprecationWarning

-   resolves: rhbz#1706212

- 

- * Sun Mar 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-2

- - Subpackages python2-pint, python2-pint-doc have been removed

-   See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

- 

- * Mon Feb 25 2019 Yatin Karel <ykarel@redhat.com> - 0.9-1

- - Update to 0.9

- 

- * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-16

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

- 

- * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-15

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

- 

- * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-14

- - Rebuilt for Python 3.7

- 

- * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-13

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

- 

- * Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6-12

- - Update Python 2 dependency declarations to new packaging standards

-   (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

- 

- * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-11

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

- 

- * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-10

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

- 

- * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6-9

- - Rebuild for Python 3.6

- 

- * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-8

- - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

- 

- * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-7

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

- 

- * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6

- - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

- 

- * Sun Sep 06 2015 Matthias Runge <mrunge@redhat.com> - 0.6-5

- - fix uppercase/lowercase naming, fix obsoletes

- 

- * Fri Sep 04 2015 Chandan Kumar <chkumar246@gmail.com> - 0.6-4

- - Add python2 and python3 subpackages

- 

- * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

- 

- * Mon Dec 15 2014 Matthias Runge <mrunge@redhat.com> - 0.6-2

- - change BR python-devel to python2-devel (rhbz#1173109)

- 

- * Thu Dec 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6-1

- - Initial package.

+ %autochangelog

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (Pint-0.17.tar.gz) = 3e715d67b4a7b931ccaf7cdbeda4aa2338e7129840de447837f86696efb52117c6e6e832d1cc3605d160f12a631f3ce2e5dceff46be0de91460c3fec4c605146

+ SHA512 (Pint-0.19.2.tar.gz) = 9f4a00142159d298bf09fdc8ed2c4367a9ef2328663466b43bb4fbc31361c4fa63b1f0d5dec6a71fc5e50ddff22cb86e37abac5e75a13569c5332bb52884c7ee

First, some tidying-up:

  • Remove unused/disabled docs conditional. Sphinx-generated HTML documentation is unsuitable for packaging; see https://bugzilla.redhat.com/show_bug.cgi?id=2006555 and linked mailing list threads. It might be possible to generate a PDF with Sphinx; if so, the best way would be to use the GitHub source archive if necessary to get requirements_docs.txt and use it to generate BuildRequires. However, it seems unlikely that this will be worthwhile. I can attempt it in a follow-up PR if you like.
  • Improve dependency generation, add extras metapackages, and finish fully porting to pyproject-rpm-macros
  • Document bundling of python3dist(parameterizedtestcase) (removed in 0.17)
  • Update License to SPDX
  • Remove HTML documentation themes that look bundled

I confirmed everything still works on EPEL9 if the pytest-mpl dependency is patched out as in https://src.fedoraproject.org/rpms/python-pint/c/efe3b404813364c4b6f99729370a381efbe40050?branch=epel9.

Based on the upstream changelog file, 0.17 is the last release after the currently-packaged 0.16.1 without any documented breaking changes. So the next thing I did was update to that version. The EPEL9 branch could be updated to this, although I do not know if it is worth the effort.

Next, I updated to 0.19, the oldest upstream release that is compatible with versions of numpy present in Fedora 37, 38, and 39. This fixes the FTBFS in all three branches.

There are technically some breaking changes in 0.18:

  • pint no longer supports Python 3.6
  • Minimum Numpy version supported is 1.17+
  • Add supports for type hints for Quantity class. Quantity is now a Generic (PEP560).
  • Add support for PEP561 (Package Type information)

and a few more in 0.19:

  • 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+

However, I don’t think it’s worth worrying about these when the F37/F38 packages are already significantly broken. Instead, I think all Fedora releases should be updated to at least the 0.19 series.

Updating to 0.19 introduced a vendored copy of https://src.fedoraproject.org/rpms/python-appdirs, which I unbundled, and a vendored copy of https://pypi.org/project/flexcache/, which is not yet packaged in Fedora and should be handled in accordance with https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling (ideally, unbundled) as soon as practical.

Finally, I updated to 1.19.2, the last patch release in the 0.19 series.

Upstream changelogs indicate I should be able to update as far as 20.1 before I hit any additional breaking changes. I’m not sure if it’s worth doing this in stable releases. I would be happy to provide a follow-up PR to update to the latest version, 0.22, in Rawhide.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/7fb0103b9d6248c193970ee7cba561ff

Review request for a separate python-flexcache package: https://bugzilla.redhat.com/show_bug.cgi?id=2222279

1 new commit added

  • Unbundle python-flexcache
10 months ago

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging src.fedoraproject.org/rpms/python-pint for 7,4e3fe89

I now have python-flexcache packaged, so I amended this PR to unbundle it too.

rebased onto b7175ca

10 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/6d79699f071f4bac81275564ea107fc7

rpm-install-test fails due to
Please install "python3-dnf" or "python2-dnf" package or ensure you have specified the correct ansible_python_interpreter. (attempted ['/usr/libexec/platform-python', '/usr/bin/python3', '/usr/bin/python2', '/usr/bin/python'])

Thank you for your extensive work here. It seems that we now have 3 "competing" PRs.

I re-created this PR starting with the current state of rawhide.

As before:

  • 0.19 is the oldest upstream release that is compatible with versions of numpy present in Fedora 37, 38, and 39. This PR builds in all three branches.
  • There are technically some breaking changes in 0.18 and 0.19 (see the initial comment), but “I don’t think it’s worth worrying about these when the F37/F38 packages are already significantly broken. Instead, I think all Fedora releases should be updated to at least the 0.19 series.”

There is a new regression in F40; a few tests are failing there. I assume this is related to numpy 1.26.0. I plan to investigate that next.

rebased onto 2b6a46e

7 months ago

1 new commit added

  • Skip and document failure of test_equal_zero_nan_NP on recent numpy
7 months ago

One regression handled in F40; the rest of the failing tests are all failing for the same reason as each other. They seem to be related to Python 3.12.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/d2a2b2fcdd8642e982775158189c6a19

1 new commit added

  • Backport fix for test_equal_zero_nan_NP rather than skipping it
7 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/89cc53670e034a7a82d6e6ee097b8572

It looks like the remaining failures in Rawhide,

FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_max_numpy_func - TypeError: no implementation found for 'numpy.max' on types that implement __array_function__: [<class 'pint.util.Quantity'>]
FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_max_with_axis_arg - TypeError: no implementation found for 'numpy.max' on types that implement __array_function__: [<class 'pint.util.Quantity'>]
FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_max_with_initial_arg - TypeError: no implementation found for 'numpy.max' on types that implement __array_function__: [<class 'pint.util.Quantity'>]
FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_min_numpy_func - TypeError: no implementation found for 'numpy.min' on types that implement __array_function__: [<class 'pint.util.Quantity'>]
FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_min_with_axis_arg - TypeError: no implementation found for 'numpy.min' on types that implement __array_function__: [<class 'pint.util.Quantity'>]
FAILED pint/testsuite/test_numpy.py::TestNumpyUnclassified::test_min_with_initial_arg - TypeError: no implementation found for 'numpy.min' on types that implement __array_function__: [<class 'pint.util.Quantity'>]

were fixed between 0.20.1 and 0.21. I’ll keep bisecting.

1 new commit added

  • Backport fix for several failures in TestNumpyUnclassified
7 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/b287b16f9ee3472fb427ae4877a65afe

@mrunge

This builds on all branches now. Would you like to review this?

Pull-Request has been merged by mrunge

7 months ago

Thanks a lot @music . This looks good to me.