From e3f75e67959d6c27ca654b51d21ef89651fb0d1bd30366cb7ef6bf938abc6e68 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 5 Mar 2024 21:06:23 +0000 Subject: [PATCH] Accepting request 1155316 from home:bnavigator:branches:devel:languages:python:numeric - Don't build nbagg for python39: ipython not available anymore OBS-URL: https://build.opensuse.org/request/show/1155316 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=89 --- python-matplotlib.changes | 5 +++++ python-matplotlib.spec | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-matplotlib.changes b/python-matplotlib.changes index 273f1d7..e6a483b 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 18:06:28 UTC 2024 - Ben Greiner + +- Don't build nbagg for python39: ipython not available anymore + ------------------------------------------------------------------- Fri Feb 23 07:40:01 UTC 2024 - Max Lin diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 1c97421..bd7507e 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -89,7 +89,7 @@ BuildRequires: %{python_module matplotlib-cairo = %{version}} BuildRequires: %{python_module matplotlib-gtk3 = %{version}} BuildRequires: %{python_module matplotlib-gtk4 = %{version}} %if 0%{?suse_version} > 1500 -BuildRequires: %{python_module matplotlib-nbagg = %{version}} +BuildRequires: %{python_module matplotlib-nbagg = %{version} if %python-base >= 3.10} %endif BuildRequires: %{python_module matplotlib-qt5 = %{version}} BuildRequires: %{python_module matplotlib-testdata = %{version}} @@ -115,8 +115,8 @@ BuildRequires: %{python_module cairocffi >= 0.8} # /SECTION cairo # SECTION nbagg backend tests %if !%{with ringdisabled} && 0%{?suse_version} > 1500 -BuildRequires: %{python_module nbconvert} -BuildRequires: %{python_module nbformat} +BuildRequires: %{python_module nbconvert if %python-base >= 3.10} +BuildRequires: %{python_module nbformat if %python-base >= 3.10} %endif # /SECTION nbagg # SECTION qt backends: Only test PyQt5 in Minimal-X @@ -179,7 +179,7 @@ Requires: python-gobject-cairo This package provides code common for the GTK3 and GTK4 backends for the %{name} plotting package -%if 0%{?suse_version} > 1500 + %package nbagg Summary: Jupyter nbagg backend for %{name} Requires: %{name} = %{version} @@ -188,7 +188,6 @@ Requires: python-ipykernel %description nbagg This package includes the Jupyter notebook backend for the %{name} plotting package -%endif %package latex Summary: Allow rendering latex in %{name} @@ -461,7 +460,7 @@ $python -m pytest --pyargs matplotlib.tests \ %{python_sitearch}/matplotlib/backends/_backend_gtk.py %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/_backend_gtk.*.py* -%if 0%{?suse_version} > 1500 +%if 0%{?suse_version} > 1500 && 0%{?python_version_nodots} >= 310 %files %{python_files nbagg} %license LICENSE/ %license doc/users/project/license.rst