Accepting request 1246277 from devel:languages:python:numeric

- Fix testfiles
  * Move extra files tagged for tests to testdata package
  * Add matplotlib-pr29631-install-test-ipynb.patch
    gh#matplotlib/matplotlib#29631

OBS-URL: https://build.opensuse.org/request/show/1246277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=114
This commit is contained in:
2025-02-18 18:08:23 +00:00
committed by Git OBS Bridge
3 changed files with 32 additions and 3 deletions

View File

@@ -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/'))

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Feb 16 20:07:11 UTC 2025 - Ben Greiner <code@bnavigator.de>
- 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á <mmachova@suse.com>

View File

@@ -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