forked from pool/python-pytest-mpl
Accepting request 1194469 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.17.0
## Fixes
* Improve Logging Configuration: don't modify root logger by
@theOehrly in #182
* Improve error reporting when test raises an exception by
@ConorMacBride in #193
* MNT: Compat with pytest 8.1 by @pllim in #219
## Exciting New Features
* Added support for EPS, PDF, and SVG image comparison by
@astrofrog in #194
* Started implementing support for deterministic figure output by
@astrofrog in #196
* Add missing CLI and INI options for a consistent API by
@astrofrog in #181
* Avoid using py.path by @eerovaher in #207
* Allow using -p no:legacypath with pytest >= 7 by @eerovaher in
#213
## Other Changes
* Add initial Sphinx docs by @ConorMacBride in #174
* Add documentation on avoiding PytestReturnNotNoneWarning by
@ConorMacBride in #185
* Add RTD config by @ConorMacBride in #195
* Migrate docs from README.rst to website by @ConorMacBride in
#199
* Set deterministic to True for vector graphics and warn about
change to True in future for PNG by @astrofrog in #197
## Infrastructure Changes
* Verify class-based testing configurations produce the expected
results by @ConorMacBride in #175
* Update testing and CI for Matplotlib v3.6 by @ConorMacBride in
OBS-URL: https://build.opensuse.org/request/show/1194469
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mpl?expand=0&rev=10
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-mpl
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,12 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
%define eggver 0.12
|
||||
Name: python-pytest-mpl
|
||||
Version: 0.12.0
|
||||
Version: 0.17.0
|
||||
Release: 0
|
||||
Summary: Pytest plugin for testing Matplotlib figures
|
||||
License: BSD-2-Clause
|
||||
@@ -29,17 +25,27 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/matplotlib/pytest-mpl
|
||||
# get the test reference data from the GitHub archive
|
||||
Source: https://github.com/matplotlib/pytest-mpl/archive/v%{version}.tar.gz#/pytest-mpl-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Jinja2
|
||||
Requires: python-Pillow
|
||||
Requires: python-matplotlib
|
||||
Requires: python-packaging
|
||||
Requires: python-pytest
|
||||
%if %python_version_nodots < 39
|
||||
Requires: python-importlib-resources
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module Jinja2}
|
||||
BuildRequires: %{python_module importlib-resources if %python-base < 3.9}
|
||||
BuildRequires: %{python_module matplotlib}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -51,19 +57,22 @@ This is a pytest plugin to help with testing figures output from Matplotlib.
|
||||
%setup -q -n pytest-mpl-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
# not the right path setup in obs build environment
|
||||
donttest="(test_generate_summary and test_config)"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.md README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/pytest_mpl
|
||||
%{python_sitelib}/pytest_mpl-%{eggver}*-info
|
||||
%{python_sitelib}/pytest_mpl-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user