1
0

Accepting request 1035220 from devel:languages:python:numeric

- Remove also setuptools_scm_git_archive dependency as it's suggested in the
  release post
  https://discourse.matplotlib.org/t/matplotlib-announce-amm-matplotlib-3-5-3/23046

- Allow build with setuptools_scm>=7

OBS-URL: https://build.opensuse.org/request/show/1035220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=96
This commit is contained in:
Dominique Leuenberger 2022-11-12 16:40:12 +00:00 committed by Git OBS Bridge
commit a7da7789a4
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Nov 11 11:40:06 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove also setuptools_scm_git_archive dependency as it's suggested in the
release post
https://discourse.matplotlib.org/t/matplotlib-announce-amm-matplotlib-3-5-3/23046
-------------------------------------------------------------------
Fri Nov 11 11:19:52 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Allow build with setuptools_scm>=7
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 14 14:47:16 UTC 2022 - Arun Persaud <arun@gmx.de> Sun Aug 14 14:47:16 UTC 2022 - Arun Persaud <arun@gmx.de>

View File

@ -51,7 +51,6 @@ BuildRequires: %{python_module packaging >= 20.0}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyparsing > 2.2.1} BuildRequires: %{python_module pyparsing > 2.2.1}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools_scm_git_archive}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler BuildRequires: c++_compiler
@ -248,6 +247,10 @@ find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec
cp %{SOURCE1} mplsetup.cfg cp %{SOURCE1} mplsetup.cfg
# The setup procedure wants certifi to download packages over https. Not applicable here. # The setup procedure wants certifi to download packages over https. Not applicable here.
sed -i '/"certifi>=.*"/ d' setup.py 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
sed -i '/"setuptools_scm_git_archive"/ d' setup.py
%build %build
%if !%{with test} %if !%{with test}