diff --git a/matplotlib-pr29631-install-test-ipynb.patch b/matplotlib-pr29631-install-test-ipynb.patch new file mode 100644 index 0000000..9ae18e6 --- /dev/null +++ b/matplotlib-pr29631-install-test-ipynb.patch @@ -0,0 +1,12 @@ +Index: matplotlib-3.10.0/lib/matplotlib/tests/meson.build +=================================================================== +--- matplotlib-3.10.0.orig/lib/matplotlib/tests/meson.build ++++ matplotlib-3.10.0/lib/matplotlib/tests/meson.build +@@ -103,6 +103,7 @@ install_data( + 'cmr10.pfb', + 'mpltest.ttf', + 'test_nbagg_01.ipynb', ++ 'test_inline_01.ipynb', + install_tag: 'tests', + install_dir: py3.get_install_dir(subdir: 'matplotlib/tests/')) + diff --git a/python-matplotlib.changes b/python-matplotlib.changes index 7a5b316..b9778c3 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Feb 16 20:07:11 UTC 2025 - Ben Greiner + +- Fix testfiles + * Move extra files tagged for tests to testdata package + * Add matplotlib-pr29631-install-test-ipynb.patch + gh#matplotlib/matplotlib#29631 + ------------------------------------------------------------------- Mon Feb 3 11:21:46 UTC 2025 - Markéta Machová diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 4ac190b..2a2a773 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -42,8 +42,10 @@ Source: https://files.pythonhosted.org/packages/source/m/matplotlib/matp Source98: https://github.com/qhull/qhull/archive/v8.0.2/qhull-8.0.2.tar.gz#/qhull-8.0.2.tgz Source99: https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz Source100: python-matplotlib.rpmlintrc +# PATCH-FIX-UPSTREAM matplotlib-pr29631-install-test-ipynb.patch gh#matplotlib/matplotlib#29631 +Patch0: matplotlib-pr29631-install-test-ipynb.patch # PATCH-FEATURE-OPENSUSE matplotlib-meson-options-opensuse.patch code@bnavigator.de -- Custom build options for meson-python -Patch0: matplotlib-meson-options-opensuse.patch +Patch1: matplotlib-meson-options-opensuse.patch Recommends: ghostscript Recommends: libxml2-tools Recommends: poppler-tools @@ -426,11 +428,14 @@ $python -m pytest --pyargs matplotlib.tests \ %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxagg.*.py* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxcairo.*.py* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.*.py* +%exclude %{python_sitearch}/matplotlib/tests/*.pfb +%exclude %{python_sitearch}/matplotlib/tests/*.ttf +%exclude %{python_sitearch}/matplotlib/tests/*.ipynb %exclude %{python_sitearch}/matplotlib/tests/baseline_images +%exclude %{python_sitearch}/matplotlib/tests/tinypages %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 -%exclude %{python_sitearch}/matplotlib/tests/tinypages # Dummy package to pull in latex dependencies. %files %{python_files latex} @@ -485,11 +490,15 @@ $python -m pytest --pyargs matplotlib.tests \ %files %{python_files testdata} %license LICENSE/ +%doc lib/matplotlib/tests/README +%{python_sitearch}/matplotlib/tests/*.pfb +%{python_sitearch}/matplotlib/tests/*.ttf +%{python_sitearch}/matplotlib/tests/*.ipynb %{python_sitearch}/matplotlib/tests/baseline_images +%{python_sitearch}/matplotlib/tests/tinypages %{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 -%{python_sitearch}/matplotlib/tests/tinypages %exclude %{python_sitearch}/matplotlib/tests/tinypages/.gitignore %exclude %{python_sitearch}/matplotlib/tests/tinypages/_static/.gitignore