From f5aba026f7ccb61d55e74e620f2b7d1b448ca27c933a7092ee75a6e17f7af1a7 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 11 Nov 2022 11:20:37 +0000 Subject: [PATCH] - Allow build with setuptools_scm>=7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=66 --- python-matplotlib.changes | 5 +++++ python-matplotlib.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/python-matplotlib.changes b/python-matplotlib.changes index cfcb80d..89ff68c 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 11 11:19:52 UTC 2022 - Daniel Garcia + +- Allow build with setuptools_scm>=7 + ------------------------------------------------------------------- Sun Aug 14 14:47:16 UTC 2022 - Arun Persaud diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 0a85227..fc192f5 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -248,6 +248,9 @@ find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec cp %{SOURCE1} mplsetup.cfg # The setup procedure wants certifi to download packages over https. Not applicable here. sed -i '/"certifi>=.*"/ d' setup.py +# To make it work with setuptools_scm >= 7 +# https://discourse.matplotlib.org/t/matplotlib-announce-amm-matplotlib-3-5-3/23046 +sed -i 's/setuptools_scm>=4,<7/setuptools_scm>=4/' setup.py %build %if !%{with test}