Blame SPECS/python-pytest-mpl.spec

dfc777
%global srcname pytest-mpl
dfc777
dfc777
Name:           python-%{srcname}
dfc777
Version:        0.12
dfc777
Release:        2%{?dist}
dfc777
Summary:        Pytest plugin for testing figure output from Matplotlib
dfc777
dfc777
License:        BSD
dfc777
URL:            https://github.com/matplotlib/pytest-mpl
dfc777
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
dfc777
# Missing file: https://github.com/matplotlib/pytest-mpl/pull/109
dfc777
Source1:        https://github.com/matplotlib/pytest-mpl/raw/01c5ec39caa5001d700c7819628b57c798f1e2bb/tests/baseline/test_hash_lib.json
dfc777
# Probably not going upstream.
dfc777
Patch0001:      0001-Increase-tolerance-for-new-FreeType.patch
dfc777
dfc777
BuildArch:      noarch
dfc777
dfc777
%global _description \
dfc777
This is a plugin to facilitate image comparison for Matplotlib figures in \
dfc777
pytest. Matplotlib includes a number of test utilities and decorators, but \
dfc777
these are geared towards the nose testing framework. Pytest-mpl makes it easy \
dfc777
to compare figures produced by tests to reference images when using pytest.
dfc777
dfc777
%description %{_description}
dfc777
dfc777
dfc777
%package -n     python3-%{srcname}
dfc777
Summary:        %{summary}
dfc777
%{?python_provide:%python_provide python3-%{srcname}}
dfc777
dfc777
BuildRequires:  python3-devel
dfc777
BuildRequires:  python3dist(matplotlib)
dfc777
BuildRequires:  python3dist(nose)
dfc777
BuildRequires:  python3dist(pillow)
dfc777
BuildRequires:  python3dist(pytest)
dfc777
BuildRequires:  python3dist(setuptools)
dfc777
dfc777
%description -n python3-%{srcname} %{_description}
dfc777
dfc777
dfc777
%prep
dfc777
%autosetup -n %{srcname}-%{version} -p1
dfc777
cp %SOURCE1 tests/baseline/
dfc777
dfc777
# Remove bundled egg-info
dfc777
rm -rf %{srcname}.egg-info
dfc777
dfc777
dfc777
%build
dfc777
%py3_build
dfc777
dfc777
dfc777
%install
dfc777
%py3_install
dfc777
dfc777
dfc777
%check
dfc777
# Skip networked tests.
dfc777
MPLBACKEND=Agg %{pytest} --mpl tests -k 'not test_succeeds_remote and not test_succeeds_faulty_mirror'
dfc777
MPLBACKEND=Agg %{pytest} tests -k 'not test_succeeds_remote and not test_succeeds_faulty_mirror'
dfc777
dfc777
dfc777
%files -n python3-%{srcname}
dfc777
%license LICENSE
dfc777
%doc README.rst
dfc777
%{python3_sitelib}/pytest_mpl
dfc777
%{python3_sitelib}/pytest_mpl-%{version}-py%{python3_version}.egg-info
dfc777
dfc777
dfc777
%changelog
dfc777
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
dfc777
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dfc777
dfc777
* Sun Dec 13 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.12-1
dfc777
- Update to latest version (#1894886)
dfc777
dfc777
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
dfc777
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dfc777
dfc777
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11-3
dfc777
- Rebuilt for Python 3.9
dfc777
dfc777
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
dfc777
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
dfc777
dfc777
* Fri Nov 15 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.11-1
dfc777
- Update to latest version
dfc777
dfc777
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10-5
dfc777
- Rebuilt for Python 3.8.0rc1 (#1748018)
dfc777
dfc777
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10-4
dfc777
- Rebuilt for Python 3.8
dfc777
dfc777
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
dfc777
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dfc777
dfc777
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-2
dfc777
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dfc777
dfc777
* Fri Oct 19 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.10-1
dfc777
- Update to latest version
dfc777
dfc777
* Wed Jul 18 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.9-2
dfc777
- Remove unnecessary cache files
dfc777
dfc777
* Mon Jul 16 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.9-1
dfc777
- Initial package.