Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sfs for openSUSE:Factory checked in at 2024-09-17 18:18:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sfs (Old) and /work/SRC/openSUSE:Factory/.python-sfs.new.29891 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sfs" Tue Sep 17 18:18:59 2024 rev:5 rq:1201549 version:0.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sfs/python-sfs.changes 2023-09-14 16:29:07.197986181 +0200 +++ /work/SRC/openSUSE:Factory/.python-sfs.new.29891/python-sfs.changes 2024-09-17 18:20:00.815489308 +0200 @@ -1,0 +2,5 @@ +Mon Sep 16 10:54:25 UTC 2024 - Markéta Machová <[email protected]> + +- Add patch mpl39.patch to fix build with the new matplotlib + +------------------------------------------------------------------- New: ---- mpl39.patch BETA DEBUG BEGIN: New: - Add patch mpl39.patch to fix build with the new matplotlib BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sfs.spec ++++++ --- /var/tmp/diff_new_pack.8xWNHo/_old 2024-09-17 18:20:01.547518903 +0200 +++ /var/tmp/diff_new_pack.8xWNHo/_new 2024-09-17 18:20:01.551519065 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-sfs # -# 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 @@ -26,6 +26,8 @@ Source: https://files.pythonhosted.org/packages/source/s/sfs/sfs-%{version}.tar.gz #PATCH-FIX-UPSTREAM https://github.com/sfstoolbox/sfs-python/pull/163 Replace inner1d bei einsum Patch: numpy125.patch +# PATCH-FIX-UPSTREAM https://github.com/sfstoolbox/sfs-python/pull/179 Update to changes in matplotlib 3.9.0 +Patch: mpl39.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros ++++++ mpl39.patch ++++++ Index: sfs-0.6.2/sfs/plot2d.py =================================================================== --- sfs-0.6.2.orig/sfs/plot2d.py +++ sfs-0.6.2/sfs/plot2d.py @@ -18,13 +18,17 @@ def _register_cmap_clip(name, original_c cmap = LinearSegmentedColormap.from_list(name, cdata) cmap.set_over([alpha * c + 1 - alpha for c in cmap(1.0)[:3]]) cmap.set_under([alpha * c + 1 - alpha for c in cmap(0.0)[:3]]) - _plt.cm.register_cmap(cmap=cmap) + _plt.colormaps.register(cmap=cmap) # The 'coolwarm' colormap is based on the paper # "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland # http://www.sandia.gov/~kmorel/documents/ColorMaps/ -_register_cmap_clip('coolwarm_clip', 'coolwarm', 0.7) +# already registered in MPL 3.9.0 +try: + _register_cmap_clip('coolwarm_clip', 'coolwarm', 0.7) +except ImportError: + pass def _register_cmap_transparent(name, color): @@ -36,7 +40,7 @@ def _register_cmap_transparent(name, col 'blue': ((0, blue, blue), (1, blue, blue)), 'alpha': ((0, 0, 0), (1, 1, 1))} cmap = LinearSegmentedColormap(name, cdict) - _plt.cm.register_cmap(cmap=cmap) + _plt.colormaps.register(cmap=cmap) _register_cmap_transparent('blacktransparent', 'black')
