%global srcname pytest-mpl Name: python-%{srcname} Version: 0.13 Release: 14%{?dist} Summary: Pytest plugin for testing figure output from Matplotlib # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://github.com/matplotlib/pytest-mpl Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz # Probably not going upstream. Patch0001: 0001-Increase-tolerance-for-new-FreeType.patch BuildArch: noarch %global _description \ This is a plugin to facilitate image comparison for Matplotlib figures. \ For each figure to test, an image is generated and then subtracted from an \ existing reference image. If the RMS of the residual is larger than \ a user-specified tolerance, the test will fail. Alternatively, the generated \ image can be hashed and compared to an expected value. %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(matplotlib) BuildRequires: python3dist(pillow) BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} -p1 # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %check # Skip networked tests. MPLBACKEND=Agg %{pytest} --mpl tests -k 'not test_succeeds_remote and not test_succeeds_faulty_mirror' MPLBACKEND=Agg %{pytest} tests -k 'not test_succeeds_remote and not test_succeeds_faulty_mirror' %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/pytest_mpl/ %{python3_sitelib}/pytest_mpl-%{version}-py%{python3_version}.egg-info/ %changelog * Mon Dec 09 2024 Miro Hrončok - 0.13-14 - Remove redundant BuildRequires on python3-nose - Update outdated description not to mention nose * Wed Sep 04 2024 Miroslav Suchý - 0.13-13 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.13-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.13-11 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.13-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.13-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 27 2023 Python Maint - 0.13-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 0.13-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 04 2021 Elliott Sales de Andrade - 0.13-1 - Update to latest version (#1978741) * Fri Jun 04 2021 Python Maint - 0.12-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 13 2020 Elliott Sales de Andrade - 0.12-1 - Update to latest version (#1894886) * Wed Jul 29 2020 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.11-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 15 2019 Elliott Sales de Andrade - 0.11-1 - Update to latest version * Thu Oct 03 2019 Miro Hrončok - 0.10-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.10-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 19 2018 Elliott Sales de Andrade - 0.10-1 - Update to latest version * Wed Jul 18 2018 Elliott Sales de Andrade - 0.9-2 - Remove unnecessary cache files * Mon Jul 16 2018 Elliott Sales de Andrade - 0.9-1 - Initial package.