Files
python-pytest-regressions/python-pytest-regressions.spec
Steve Kowalik 1ad4edf6fe Update to 2.8.3
* Fixed support for pandas.CategoricalDtype, regressed in 2.8.1.
  * Reintroduced support for datetime columns in dataframe_regression.
  * Removed check against numpy-2.0-deprecated a dtype alias.
  * Replaced datadir with the lazy_datadir fixture for improved performance
    in test suites with large data directories.
  * Python 3.12 and 3.13 are now officially supported.
  * Python 3.8 (EOL) is no longer supported.
  * Added fullpath parameter to image_regression.check.
  * Added documentation for specifying custom data directories.
  * Added new round_digits to data_regression.check, which when given will
    round all float values to the given number of dicts (recursively) before
    saving the data to disk.
2025-11-24 14:52:04 +11:00

88 lines
2.9 KiB
RPMSpec

#
# spec file for package python-pytest-regressions
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pytest-regressions
Version: 2.8.3
Release: 0
License: MIT
Summary: Python fixtures to write regression tests
URL: https://github.com/ESSS/pytest-regressions
Source: https://files.pythonhosted.org/packages/source/p/pytest-regressions/pytest_regressions-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 6.2.0}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest-datadir >= 1.2.0}
# These could be added as build dep for testing but are commented to
# reduce the number of requirements.
# BuildRequires: %%{python_module pandas}
# BuildRequires: %%{python_module matplotlib}
# /SECTION
BuildRequires: fdupes
Requires: python-PyYAML
Requires: python-pytest >= 6.2.0
Requires: python-pytest-datadir >= 1.2.0
Suggests: python-matplotlib
Suggests: python-numpy
Suggests: python-pandas
Suggests: python-Pillow
BuildArch: noarch
%python_subpackages
%description
Python fixtures to write regression tests.
%prep
%autosetup -p1 -n pytest_regressions-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# ignore tests that depends on matplotlib
donttest="test_image_regression"
# Requires python-pandas
donttest+=" or test_foo"
# Precision issues on i586 on SLE15
donttest+=" or (test_common_case and not test_common_case_)"
# Failing test on s390x
donttest+=" or test_different_data_types"
# Ignore tests that depends on python-pandas
%pytest --ignore tests/test_num_regression.py --ignore tests/test_dataframe_regression.py -k "not ($donttest)"
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/pytest_regressions
%{python_sitelib}/pytest_regressions-%{version}.dist-info
%changelog