2010-11-23 13:45:57 +00:00
#
2024-03-23 12:10:50 +00:00
# spec file for package python-matplotlib
2010-11-23 13:45:57 +00:00
#
2025-02-05 15:58:28 +00:00
# Copyright (c) 2025 SUSE LLC
2010-11-23 13:45:57 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2018-11-23 08:27:47 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2010-11-23 13:45:57 +00:00
#
2012-08-26 09:33:52 +00:00
2024-10-03 08:56:48 +00:00
%define SLE_VERSION 1600
2020-05-18 09:10:22 +00:00
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
2020-07-21 07:09:12 +00:00
# Run on 64bit intel and arm only, on others there are >100 test failures
ExclusiveArch : x86_64 aarch64
2020-05-18 09:10:22 +00:00
%else
%define psuffix %{nil}
%bcond_with test
%endif
2023-12-21 14:18:15 +00:00
%bcond_with ringdisabled
2025-03-24 18:52:05 +00:00
2025-06-09 17:21:57 +00:00
# Qt support through PyQt6 is in Leap16 but not SLFO
2025-03-24 18:52:05 +00:00
%if 0%{?suse_version} == 1600 && !0%{?is_opensuse}
%bcond_with qt
%else
%bcond_without qt
%endif
2025-06-09 17:21:57 +00:00
# Disable wxWidgets backend in Factory Ring 1 (Minimal-X) and SLE <= 16
%if %{with ringdisabled} || 0%{?suse_version} <= %SLE_VERSION
%bcond_with wx
%else
%bcond_without wx
%endif
2023-05-08 08:17:51 +00:00
%{?sle15_python_module_pythons}
2020-05-18 09:10:22 +00:00
Name : python-matplotlib%{psuffix}
2025-06-09 17:21:57 +00:00
Version : 3.10.3
2011-12-12 15:58:51 +00:00
Release : 0
2010-11-23 13:45:57 +00:00
Summary : Plotting Library for Python
2014-07-23 20:07:19 +00:00
License : SUSE-Matplotlib
2020-03-28 18:05:40 +00:00
URL : https://matplotlib.org
2024-06-05 23:18:42 +00:00
# SourceRepository: https://github.com/matplotlib/matplotlib
2017-01-10 09:45:39 +00:00
Source : https://files.pythonhosted.org/packages/source/m/matplotlib/matplotlib-%{version} .tar.gz
2024-06-05 23:18:42 +00:00
# Use fixed versions of freetype and qhull for imagecomparison tests to succeed. See lib/matplotlib/__init__.py:_init_tests() and the meson .wrap files in subprojects/
Source98 : https://github.com/qhull/qhull/archive/v8.0.2/qhull-8.0.2.tar.gz#/qhull-8.0.2.tgz
2020-05-18 09:10:22 +00:00
Source99 : https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz
2023-12-21 14:18:15 +00:00
Source100 : python-matplotlib.rpmlintrc
2024-06-05 23:18:42 +00:00
# PATCH-FEATURE-OPENSUSE matplotlib-meson-options-opensuse.patch code@bnavigator.de -- Custom build options for meson-python
2025-02-16 20:33:52 +00:00
Patch1 : matplotlib-meson-options-opensuse.patch
2025-07-03 08:42:30 +00:00
# PATCH-FIX-UPSTREAM Pillow-13-compat.patch https://github.com/matplotlib/matplotlib/pull/30221
Patch2 : Pillow-13-compat.patch
2023-02-10 22:03:18 +00:00
Recommends: ghostscript
Recommends: libxml2-tools
Recommends: poppler-tools
Recommends: python-certifi
Recommends: (%{python_flavor} -matplotlib-tk if tk)
Provides : python-matplotlib-gtk = %{version}
Obsoletes : python-matplotlib-gtk < %{version}
2022-12-23 16:13:55 +00:00
# SECTION build
2023-12-21 14:18:15 +00:00
BuildRequires : %{python_module devel >= 3.9}
2024-06-05 23:18:42 +00:00
BuildRequires : %{python_module meson-python >= 0.13.1}
2024-04-19 22:20:46 +00:00
BuildRequires : %{python_module numpy-devel >= 1.25 with %python-numpy-devel < 2.3}
2021-01-15 06:06:52 +00:00
BuildRequires : %{python_module pip}
2023-12-21 14:18:15 +00:00
BuildRequires : %{python_module pybind11-devel >= 2.6}
2023-02-10 22:03:18 +00:00
BuildRequires : %{python_module setuptools_scm >= 7}
2019-03-01 18:47:47 +00:00
BuildRequires : c++_compiler
BuildRequires : fdupes
BuildRequires : pkgconfig
BuildRequires : python-rpm-macros
2020-05-18 07:00:21 +00:00
BuildRequires : qhull-devel >= 2003.1
2022-12-23 16:13:55 +00:00
# /SECTION
# SECTION tk dependencies via tcl
BuildRequires : tcl
BuildRequires : pkgconfig(freetype2) >= 2.3
BuildRequires : pkgconfig(libpng) >= 1.2
BuildRequires : pkgconfig(tcl)
# /SECTION
# SECTION runtime
2019-03-01 18:47:47 +00:00
Requires : python-Cycler >= 0.10
2021-12-16 11:34:18 +00:00
Requires : python-FontTools >= 4.22.0
2023-12-21 14:18:15 +00:00
Requires : python-Pillow >= 8
2023-02-10 22:03:18 +00:00
Requires : python-contourpy >= 1.0.1
2023-12-21 14:18:15 +00:00
Requires : python-kiwisolver >= 1.3.1
2024-06-05 23:18:42 +00:00
Requires : python-numpy >= 1.23
2021-12-16 11:34:18 +00:00
Requires : python-packaging >= 20.0
2023-12-21 14:18:15 +00:00
Requires : python-pyparsing > 2.3.1
2020-07-23 10:45:25 +00:00
Requires : python-python-dateutil >= 2.7
2022-12-23 16:13:55 +00:00
# /SECTION
# SECTION test
2020-05-18 09:10:22 +00:00
%if %{with test}
2021-12-16 11:34:18 +00:00
BuildRequires : %{python_module matplotlib = %{version} }
2020-07-21 07:09:12 +00:00
BuildRequires : %{python_module matplotlib-gtk3 = %{version} }
2021-12-16 11:34:18 +00:00
BuildRequires : %{python_module matplotlib-gtk4 = %{version} }
2020-07-21 07:09:12 +00:00
BuildRequires : %{python_module matplotlib-testdata = %{version} }
BuildRequires : %{python_module matplotlib-tk = %{version} }
BuildRequires : %{python_module matplotlib-web = %{version} }
2022-05-27 07:09:07 +00:00
BuildRequires : %{python_module psutil}
2020-05-18 09:10:22 +00:00
BuildRequires : %{python_module pytest-xdist}
2020-07-21 07:09:12 +00:00
BuildRequires : %{python_module pytest-xvfb}
2020-05-18 09:10:22 +00:00
BuildRequires : %{python_module pytest}
2023-12-21 14:18:15 +00:00
BuildRequires : %{python_module pytz}
2021-12-16 11:34:18 +00:00
# SECTION latex test dependencies
BuildRequires : %{python_module matplotlib-latex = %{version} }
2024-03-22 10:03:16 +00:00
BuildRequires : Mesa-dri
2017-10-16 23:52:04 +00:00
BuildRequires : ghostscript
2019-03-01 18:47:47 +00:00
BuildRequires : inkscape
2017-10-16 23:52:04 +00:00
BuildRequires : poppler-tools
2023-12-21 14:18:15 +00:00
# /SECTION latex
# SECTION cairo backend options
2025-06-09 17:21:57 +00:00
BuildRequires : %{python_module matplotlib-cairo = %{version} }
2023-12-21 14:18:15 +00:00
BuildRequires : %{python_module cairo >= 1.14.0}
BuildRequires : %{python_module cairocffi >= 0.8}
# /SECTION cairo
2025-06-09 17:21:57 +00:00
# SECTION nbagg backend tests: not in Minimal-X or SLE <= 16
2024-10-03 08:56:48 +00:00
%if %{without ringdisabled} && 0%{?suse_version} > %SLE_VERSION
2025-06-09 17:21:57 +00:00
BuildRequires : %{python_module matplotlib-nbagg = %{version} }
2024-03-05 21:06:23 +00:00
BuildRequires : %{python_module nbconvert if %python-base >= 3.10}
BuildRequires : %{python_module nbformat if %python-base >= 3.10}
2023-12-21 14:18:15 +00:00
%endif
# /SECTION nbagg
2025-06-09 17:21:57 +00:00
# SECTION qt backend tests
2025-03-24 18:52:05 +00:00
%if %{with qt}
2025-06-02 07:48:25 +00:00
BuildRequires : %{python_module PyQt6}
2025-06-09 17:21:57 +00:00
BuildRequires : %{python_module matplotlib-qt = %{version} }
%if %{without ringdisabled} && 0%{?suse_version} > %SLE_VERSION
# Don'test Pyside6 in Minimal-X or Leap <=16
2023-12-21 14:18:15 +00:00
BuildRequires : python3-pyside6
%endif
%endif
# /SECTION qt
2025-06-09 17:21:57 +00:00
%if %{with wx}
BuildRequires : %{python_module matplotlib-wx = %{version} }
%endif
2022-12-23 16:13:55 +00:00
# /SECTION test
2017-10-16 23:52:04 +00:00
%endif
2017-05-06 16:29:48 +00:00
%python_subpackages
2011-02-07 22:51:18 +00:00
%description
2010-11-23 13:45:51 +00:00
matplotlib is a python 2D plotting library which produces publication
quality figures in a variety of hardcopy formats and interactive
environments across platforms. matplotlib can be used in python
scripts, the python and ipython shell (ala matlab or mathematica), web
application servers, and six graphical user interface toolkits.
2018-09-19 01:59:45 +00:00
%package cairo
2014-09-03 16:22:57 +00:00
Summary : Cairo backend for %{name}
Requires : %{name} = %{version}
2023-12-21 14:18:15 +00:00
Requires : (python-cairo or python-cairocffi)
2014-09-03 16:22:57 +00:00
2018-09-19 01:59:45 +00:00
%description cairo
2018-11-23 08:27:47 +00:00
This package includes the non-interactive Cairo-based backend
2014-09-03 16:22:57 +00:00
for the %{name} plotting package
2018-09-19 01:59:45 +00:00
%package gtk3
2014-03-09 19:14:38 +00:00
Summary : GTK3 backends for %{name}
2011-02-07 22:51:18 +00:00
Requires : %{name} = %{version}
2021-12-16 11:34:18 +00:00
Requires : %{name} -gtk-common = %{version}
2010-11-23 13:45:51 +00:00
2018-09-19 01:59:45 +00:00
%description gtk3
2014-03-09 19:14:38 +00:00
This package includes the GTK3-based gtk3, gtk3agg, and
gtk3cairo backends for the %{name} plotting package
2012-03-20 10:33:39 +00:00
2021-12-16 11:34:18 +00:00
%package gtk4
Summary : GTK4 backends for %{name}
Requires : %{name} = %{version}
Requires : %{name} -gtk-common = %{version}
%description gtk4
This package includes the GTK4-based gtk4, gtk4agg, and
gtk4cairo backends for the %{name} plotting package
%package gtk-common
2022-12-23 16:13:55 +00:00
Summary : Code common for GTK3 and GTK4 backends for %{name}
2021-12-16 11:34:18 +00:00
Requires : %{name} = %{version}
Requires : %{name} -cairo = %{version}
Requires : gdk-pixbuf-loader-rsvg
Requires : python-gobject-Gdk
Requires : python-gobject-cairo
%description gtk-common
This package provides code common for the GTK3 and GTK4 backends
for the %{name} plotting package
2023-12-21 14:18:15 +00:00
%package nbagg
Summary : Jupyter nbagg backend for %{name}
Requires : %{name} = %{version}
Requires : python-ipykernel
%description nbagg
This package includes the Jupyter notebook backend
for the %{name} plotting package
2018-09-19 01:59:45 +00:00
%package latex
2014-09-19 11:56:26 +00:00
Summary : Allow rendering latex in %{name}
Requires : %{name} = %{version}
2021-05-07 12:32:22 +00:00
# grep usepackage lib/matplotlib/texmanager.py lib/matplotlib/backends/backend_pgf.py
2021-12-16 11:34:18 +00:00
# https://github.com/search?q=usepackage+repo%3Amatplotlib%2Fmatplotlib+path%3Alib&type=Code
2014-09-19 11:56:26 +00:00
Requires : texlive-dvipng
2021-05-07 12:32:22 +00:00
Requires : texlive-dvips
Requires : texlive-geometry
Requires : texlive-graphics
Requires : texlive-helvetic
2014-09-19 11:56:26 +00:00
Requires : texlive-latex
2021-05-07 12:32:22 +00:00
Requires : texlive-pgf
2017-08-13 12:58:58 +00:00
Requires : texlive-sfmath
2020-05-18 07:00:21 +00:00
Requires : texlive-tex
2021-05-07 12:32:22 +00:00
Requires : texlive-txfonts
Requires : texlive-xcolor
2023-12-21 14:18:15 +00:00
Requires : texlive-xetex
2021-05-07 12:32:22 +00:00
Requires : tex(avant.sty)
Requires : tex(chancery.sty)
Requires : tex(charter.sty)
Requires : tex(courier.sty)
Requires : tex(geometry.sty)
Requires : tex(helvet.sty)
Requires : tex(mathpazo.sty)
Requires : tex(mathptmx.sty)
Requires : tex(pncr.tfm)
Requires : tex(psfrag.sty)
Requires : tex(type1cm.sty)
Requires : tex(type1ec.sty)
Requires : tex(ucs.sty)
2021-12-16 11:34:18 +00:00
Requires : tex(underscore.sty)
2022-12-23 16:13:55 +00:00
BuildArch : noarch
2014-09-19 11:56:26 +00:00
2018-09-19 01:59:45 +00:00
%description latex
2014-09-19 11:56:26 +00:00
This package allows %{name} to display latex in plots
and figures.
2025-03-24 18:52:05 +00:00
%if %{with qt}
2023-12-21 14:18:15 +00:00
%package qt
Summary : Qt backend for %{name}
2014-09-03 16:22:57 +00:00
Requires : %{name} = %{version}
2025-06-03 06:59:36 +00:00
Requires : (python-PyQt6 >= 6.1 or python-pyside6)
2020-05-18 07:00:21 +00:00
Provides : %{name} -qt-shared = %{version}
2025-06-09 17:21:57 +00:00
Provides : %{name} -qt5 = %{version}
2025-06-02 07:48:25 +00:00
Provides : %{name} -qt6 = %{version}
2020-07-21 07:09:12 +00:00
Obsoletes : %{name} -qt-shared < %{version}
2023-12-21 14:18:15 +00:00
# Renamed at upgrade from MPL 3.6.3 to 3.8.2
Obsoletes : %{name} -qt5 < 3.8.2
2014-09-03 16:22:57 +00:00
2023-12-21 14:18:15 +00:00
%description qt
This package includes the Qt-based backend
2014-09-03 16:22:57 +00:00
for the %{name} plotting package
2025-06-09 17:21:57 +00:00
PyQt6 or Pyside 6 may be used.
PyQt5 and Pyside2 still work, but are not supported by openSUSE anymore.
2025-03-24 18:52:05 +00:00
%endif
2014-09-03 16:22:57 +00:00
2020-07-21 07:09:12 +00:00
%package testdata
Summary : Test data for %{name}
Requires : %{name} = %{version}
%description testdata
This package includes the test baseline data
for the %{name} plotting package
2018-09-19 01:59:45 +00:00
%package tk
2014-03-09 19:14:38 +00:00
Summary : Tk backend for %{name}
Requires : %{name} = %{version}
2021-12-16 11:34:18 +00:00
Requires : python-Pillow-tk
2014-03-09 19:14:38 +00:00
Requires : python-tk
2023-12-21 14:18:15 +00:00
Requires : tcl >= 8.5
2014-03-09 19:14:38 +00:00
2018-09-19 01:59:45 +00:00
%description tk
2014-03-09 19:14:38 +00:00
This package includes the Tk-based tkagg backend
for the %{name} plotting package
2018-09-19 01:59:45 +00:00
%package web
2014-03-09 19:14:38 +00:00
Summary : Web backend for %{name}
Requires : %{name} = %{version}
Requires : python-tornado
2018-09-19 01:59:45 +00:00
%description web
2014-03-09 19:14:38 +00:00
This package includes the browser-based webagg backend
for the %{name} plotting package
2025-06-09 17:21:57 +00:00
%if %{with wx}
2018-09-19 01:59:45 +00:00
%package wx
2014-03-09 19:14:38 +00:00
Summary : WxWidgets backend for %{name}
Requires : %{name} = %{version}
2018-09-19 01:59:45 +00:00
Requires : python-wxPython >= 4
2014-03-09 19:14:38 +00:00
2018-09-19 01:59:45 +00:00
%description wx
2014-03-09 19:14:38 +00:00
This package includes the wxWidgets-based wxagg backend
for %{name} plotting package
2024-02-23 12:14:08 +00:00
%endif
2010-11-23 13:45:51 +00:00
%prep
2022-12-07 11:31:15 +00:00
%autosetup -p1 -n matplotlib-%{version}
2024-06-05 23:18:42 +00:00
# Copy freetype and qhull to the right location, so that matplotlib will not try to download it
mkdir subprojects/packagecache
cp %{SOURCE98} %{SOURCE99} subprojects/packagecache/
2013-10-25 09:21:32 +00:00
chmod -x lib/matplotlib/mpl-data/images/*.svg
2023-12-21 14:18:15 +00:00
find lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name " * . p y " -exec sed -i " 1 { / # ! . * p y t h o n / d } " {} \;
2024-06-05 23:18:42 +00:00
%{python_expand # use the last python in the buildset as generator (only the pythons in the buildset have setuptools_scm installed)
myprimarypython=%{__$python}
}
sed -i " s | f i n d _ p r o g r a m ( ' p y t h o n 3 ' ) | ' $ m y p r i m a r y p y t h o n ' | " meson.build
find tools -type f -name " * . p y " -exec sed -i " 1 { s | ^ # ! . * p y t h o n \ S * | # ! $ m y p r i m a r y p y t h o n | } " {} \;
2017-10-16 23:52:04 +00:00
2010-11-23 13:45:51 +00:00
%build
2024-03-22 09:10:55 +00:00
%if %{without test}
2022-12-23 16:13:55 +00:00
%pyproject_wheel
2020-05-18 09:10:22 +00:00
%endif
2010-11-23 13:45:51 +00:00
%install
2024-03-22 09:10:55 +00:00
%if %{without test}
2022-12-23 16:13:55 +00:00
%pyproject_install
2021-01-15 06:06:52 +00:00
%{python_expand sed -i -e " s / i n s t a l l m a t p l o t l i b f r o m s o u r c e / i n s t a l l t h e $ p y t h o n - m a t p l o t l i b - t e s t d a t a p a c k a g e / " \
%{buildroot} %{$python_sitearch}/matplotlib/tests/__init__.py
2017-08-13 12:58:58 +00:00
}
2021-01-15 06:06:52 +00:00
%{?python_compileall}
%python_expand %fdupes %{buildroot} %{$python_sitearch}
2020-05-18 09:10:22 +00:00
%endif
2014-03-09 19:14:38 +00:00
2020-05-18 09:10:22 +00:00
%if %{with test}
2017-05-06 16:29:48 +00:00
%check
2024-01-24 00:04:02 +00:00
# force 'swrast' ("llvmpipe") Mesa/OpenGL driver to be used by
# setting and exporting LIBGL_ALWAYS_SOFTWARE=1 to get rid of
# issues when Mesa is trying to load 'zink' driver (messages are
# just warnings, but seem to be fatal for the tests here) (boo#1219095)
export LIBGL_ALWAYS_SOFTWARE=1
2020-07-21 07:09:12 +00:00
# fails to detect alternative backend within xvfb
skip_tests+=" o r t e s t _ b a c k e n d _ f a l l b a c k _ h e a d f u l "
# test_usetex.py::test_usetex[png] - no tex text -- do not skip test_empty[png] and test_unicode_minus[png]
skip_tests+=" o r ( t e s t _ u s e t e x a n d p n g a n d n o t e m p t y a n d n o t u n i c o d e ) "
# output slightly differs: text moves a bit
skip_tests+=" o r t e s t _ p d f l a t e x "
# timing tests on obs can fail unpredictably
skip_tests+=" o r t e s t _ i n v i s i b l e _ L i n e _ r e n d e r i n g "
2021-12-16 11:34:18 +00:00
# too much memory consumption on obs parallel workers
skip_tests+=" o r ( t e s t _ a g g a n d c h u n k s i z e ) o r t e s t _ t h r o w _ r e n d e r i n g _ c o m p l e x i t y _ e x c e e d e d "
2022-05-27 07:09:07 +00:00
# testing interactive backend leaks inside obs is flaky
skip_tests+=" o r ( t e s t _ b a c k e n d s _ i n t e r a c t i v e a n d t e s t _ f i g u r e _ l e a k _ 2 0 4 9 0 ) "
# flaky signal termination tests inside obs
skip_tests+=" o r _ s i g i n t "
2022-12-23 16:13:55 +00:00
# test finds extra system fonts not found by the mpl fontmanager
skip_tests+=" o r t e s t _ g e t _ f o n t _ n a m e s "
# different default font
skip_tests+=" o r t e s t _ b o l d _ f o n t _ o u t p u t _ w i t h _ n o n e _ f o n t t y p e "
2023-12-21 14:18:15 +00:00
# different position values on python311 (different version in a dependency or different font?)
skip_tests+=" o r t e s t _ c o m p r e s s e d 1 "
2022-04-13 15:57:42 +00:00
%ifnarch x86_64
# image comparison failures due to precisions dicrepancies to the x86 produced references
skip_tests+=" o r p n g o r s v g o r p d f "
%endif
2025-03-21 17:19:01 +00:00
# test failure with texlive 2025 https://github.com/matplotlib/matplotlib/issues/29790
skip_tests+=" o r ( t e s t _ b a c k e n d _ p g f a n d t e s t _ r c u p d a t e ) "
2024-10-23 09:42:06 +00:00
# Fails in SLFO:Main
%if 0%{?suse_version} <= %SLE_VERSION
# Timeout, this test freeze forever
skip_tests+=" o r t e s t _ d e t e r m i n i s m "
skip_tests+=" o r t e s t _ p c o l o r m e s h [ p n g ] o r t e s t _ p c o l o r m e s h _ a l p h a [ p n g ] "
2025-06-09 17:21:57 +00:00
%endif
%if %{without qt}
2025-04-03 16:34:26 +00:00
# The next two tests fail when there's no python qt5 bindings, as in SLFO:Main
skip_tests+=" o r t e s t _ s p a n _ s e l e c t o r _ a n i m a t e d _ a r t i s t s _ c a l l b a c k "
skip_tests+=" o r t e s t _ q t _ m i s s i n g "
2024-10-23 09:42:06 +00:00
%endif
2022-12-23 16:13:55 +00:00
# backend tests landing in the wrong xdist process may fail with an error. Test them without xdist.
no_xdist=" t e s t _ b a c k e n d o r t e s t _ s p a n _ s e l e c t o r _ a n i m a t e d _ a r t i s t s _ c a l l b a c k "
2023-12-21 14:18:15 +00:00
%{python_expand # see https://matplotlib.org/devdocs/devel/testing.html#testing
# if one of the pyargs modules is not present, the xargs collection looks empty
2024-10-23 09:42:06 +00:00
# Ignore ImportWarning that happens with gtk3
2023-12-21 14:18:15 +00:00
$python -m pytest --pyargs matplotlib.tests \
mpl_toolkits.axes_grid1.tests \
mpl_toolkits.axisartist.tests \
mpl_toolkits.mplot3d.tests \
-n auto \
2024-10-23 09:42:06 +00:00
-W " i g n o r e : : I m p o r t W a r n i n g " \
2023-12-21 14:18:15 +00:00
-m " n o t n e t w o r k " \
-vv -rsfE \
-k " n o t ( $ { n o _ x d i s t } $ { s k i p _ t e s t s } ) "
$python -m pytest --pyargs matplotlib.tests \
-vv -rsfE \
2024-10-23 09:42:06 +00:00
-W " i g n o r e : : I m p o r t W a r n i n g " \
2023-12-21 14:18:15 +00:00
-k " ( $ { n o _ x d i s t } ) a n d n o t ( $ { s k i p _ t e s t s : 4 } ) "
2021-01-15 06:06:52 +00:00
}
2017-05-06 16:29:48 +00:00
%endif
2010-11-23 13:45:51 +00:00
2024-03-22 09:10:55 +00:00
%if %{without test}
2017-05-06 16:29:48 +00:00
%files %{python_files}
2023-12-21 14:18:15 +00:00
%doc README.md
2018-08-17 22:03:18 +00:00
%license LICENSE/
2023-12-21 14:18:15 +00:00
%{python_sitearch} /matplotlib
2022-12-23 16:13:55 +00:00
%{python_sitearch} /matplotlib-%{version} .dist-info
2023-12-21 14:18:15 +00:00
%dir %{python_sitearch} /mpl_toolkits
%{python_sitearch} /mpl_toolkits/axes_grid1
%{python_sitearch} /mpl_toolkits/axisartist
%{python_sitearch} /mpl_toolkits/mplot3d
2014-09-03 16:22:57 +00:00
%{python_sitearch} /pylab.py*
2017-05-06 16:29:48 +00:00
%pycache_only %{python_sitearch} /__pycache__/pylab.*
2021-12-16 11:34:18 +00:00
%exclude %{python_sitearch} /matplotlib/backends/_backend_tk.py
%exclude %{python_sitearch} /matplotlib/backends/_backend_gtk.py
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_cairo.*
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk3.*
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk3agg.*
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk3cairo.*
2021-12-16 11:34:18 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk4.*
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk4agg.*
%exclude %{python_sitearch} /matplotlib/backends/backend_gtk4cairo.*
2023-12-21 14:18:15 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_nbagg.*
2025-06-09 17:21:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_qt.*
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_qt5.*
2025-06-09 17:21:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_qtagg.*
%exclude %{python_sitearch} /matplotlib/backends/backend_qtcairo.py*
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_qt5agg.*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_qt5cairo.py*
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_tkagg.*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_tkcairo.*
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_webagg.*
%exclude %{python_sitearch} /matplotlib/backends/backend_webagg_core.*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_wx.*
%exclude %{python_sitearch} /matplotlib/backends/backend_wxagg.*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/backend_wxcairo.*
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/qt_compat.*
2017-05-06 16:29:48 +00:00
%exclude %{python_sitearch} /matplotlib/backends/qt_editor/
2014-09-03 16:22:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/web_backend/
2021-12-16 11:34:18 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/_backend_tk.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/_backend_gtk.*.py*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_cairo.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3agg.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3cairo.*.py*
2021-12-16 11:34:18 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4agg.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4cairo.*.py*
2023-12-21 14:18:15 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_nbagg.*.py*
2025-06-09 17:21:57 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qtagg.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qtcairo.*.py*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5agg.*.py*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5cairo.*.py*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_tkagg.*.py*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_tkcairo.*.py*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_webagg.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_webagg_core.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_wx.*.py*
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_wxagg.*.py*
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/backend_wxcairo.*.py*
2018-09-19 01:59:45 +00:00
%exclude %{python_sitearch} /matplotlib/backends/__pycache__/qt_compat.*.py*
2025-02-16 20:33:52 +00:00
%exclude %{python_sitearch} /matplotlib/tests/*.pfb
%exclude %{python_sitearch} /matplotlib/tests/*.ttf
%exclude %{python_sitearch} /matplotlib/tests/*.ipynb
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/tests/baseline_images
2025-02-16 20:33:52 +00:00
%exclude %{python_sitearch} /matplotlib/tests/tinypages
2023-12-21 14:18:15 +00:00
%exclude %{python_sitearch} /mpl_toolkits/axes_grid1/tests/baseline_images
%exclude %{python_sitearch} /mpl_toolkits/axisartist/tests/baseline_images
%exclude %{python_sitearch} /mpl_toolkits/mplot3d/tests/baseline_images
2017-08-13 12:58:58 +00:00
# Dummy package to pull in latex dependencies.
%files %{python_files latex}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2014-09-03 16:22:57 +00:00
2017-05-06 16:29:48 +00:00
%files %{python_files cairo}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/backend_cairo.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_cairo.*.py*
%files %{python_files gtk3}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/backend_gtk3.py*
%{python_sitearch} /matplotlib/backends/backend_gtk3agg.py*
%{python_sitearch} /matplotlib/backends/backend_gtk3cairo.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3agg.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk3cairo.*.py*
2014-03-09 19:14:38 +00:00
2021-12-16 11:34:18 +00:00
%files %{python_files gtk4}
%license LICENSE/
%{python_sitearch} /matplotlib/backends/backend_gtk4.py*
%{python_sitearch} /matplotlib/backends/backend_gtk4agg.py*
%{python_sitearch} /matplotlib/backends/backend_gtk4cairo.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4agg.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_gtk4cairo.*.py*
%files %{python_files gtk-common}
%license LICENSE/
%{python_sitearch} /matplotlib/backends/_backend_gtk.py
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/_backend_gtk.*.py*
2025-03-21 13:10:14 +00:00
%if 0%{?suse_version} > %SLE_VERSION
2023-12-21 14:18:15 +00:00
%files %{python_files nbagg}
%license LICENSE/
%{python_sitearch} /matplotlib/backends/backend_nbagg.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_nbagg.*.py*
2024-02-23 12:14:08 +00:00
%endif
2023-12-21 14:18:15 +00:00
2025-03-24 18:52:05 +00:00
%if %{with qt}
2023-12-21 14:18:15 +00:00
%files %{python_files qt}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2025-06-09 17:21:57 +00:00
%{python_sitearch} /matplotlib/backends/backend_qt.py*
%{python_sitearch} /matplotlib/backends/backend_qtagg.py*
%{python_sitearch} /matplotlib/backends/backend_qtcairo.py*
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/backend_qt5.py*
%{python_sitearch} /matplotlib/backends/backend_qt5agg.py*
2020-07-21 07:09:12 +00:00
%{python_sitearch} /matplotlib/backends/backend_qt5cairo.py*
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/qt_compat.py*
2014-09-03 16:22:57 +00:00
%{python_sitearch} /matplotlib/backends/qt_editor/
2025-06-09 17:21:57 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qtagg.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qtcairo.*.py*
2017-05-06 16:29:48 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5agg.*.py*
2020-07-21 07:09:12 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_qt5cairo.*.py*
2017-05-06 16:29:48 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/qt_compat.*.py*
2025-03-24 18:52:05 +00:00
%endif
2017-05-06 16:29:48 +00:00
2020-07-21 07:09:12 +00:00
%files %{python_files testdata}
%license LICENSE/
2025-02-16 20:33:52 +00:00
%doc lib/matplotlib/tests/README
%{python_sitearch} /matplotlib/tests/*.pfb
%{python_sitearch} /matplotlib/tests/*.ttf
%{python_sitearch} /matplotlib/tests/*.ipynb
2020-07-21 07:09:12 +00:00
%{python_sitearch} /matplotlib/tests/baseline_images
2025-02-16 20:33:52 +00:00
%{python_sitearch} /matplotlib/tests/tinypages
2023-12-21 14:18:15 +00:00
%{python_sitearch} /mpl_toolkits/axes_grid1/tests/baseline_images
%{python_sitearch} /mpl_toolkits/axisartist/tests/baseline_images
%{python_sitearch} /mpl_toolkits/mplot3d/tests/baseline_images
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/tests/tinypages/.gitignore
%exclude %{python_sitearch} /matplotlib/tests/tinypages/_static/.gitignore
2017-05-06 16:29:48 +00:00
%files %{python_files tk}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2021-12-16 11:34:18 +00:00
%{python_sitearch} /matplotlib/backends/_backend_tk.py*
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/backend_tkagg.py*
2020-07-21 07:09:12 +00:00
%{python_sitearch} /matplotlib/backends/backend_tkcairo.py*
2021-12-16 11:34:18 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/_backend_tk.*.py*
2017-05-06 16:29:48 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_tkagg.*.py*
2020-07-21 07:09:12 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_tkcairo.*.py*
2014-03-09 19:14:38 +00:00
2017-05-06 16:29:48 +00:00
%files %{python_files web}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2017-05-06 16:29:48 +00:00
%{python_sitearch} /matplotlib/backends/backend_webagg.py*
%{python_sitearch} /matplotlib/backends/backend_webagg_core.py*
2014-09-03 16:22:57 +00:00
%{python_sitearch} /matplotlib/backends/web_backend/
2020-07-21 07:09:12 +00:00
%exclude %{python_sitearch} /matplotlib/backends/web_backend/.*
2017-05-06 16:29:48 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_webagg.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_webagg_core.*.py*
2014-03-09 19:14:38 +00:00
2025-06-09 17:21:57 +00:00
%if %{with wx}
2018-09-19 01:59:45 +00:00
%files %{python_files wx}
2018-08-17 22:03:18 +00:00
%license LICENSE/
2018-09-19 01:59:45 +00:00
%{python_sitearch} /matplotlib/backends/backend_wx.py*
%{python_sitearch} /matplotlib/backends/backend_wxagg.py*
2020-07-21 07:09:12 +00:00
%{python_sitearch} /matplotlib/backends/backend_wxcairo.py*
2018-09-19 01:59:45 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_wx.*.py*
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_wxagg.*.py*
2020-07-21 07:09:12 +00:00
%pycache_only %{python_sitearch} /matplotlib/backends/__pycache__/backend_wxcairo.*.py*
2020-05-18 09:10:22 +00:00
%endif
2024-02-23 12:14:08 +00:00
%endif
2010-11-23 13:45:51 +00:00
%changelog