4 Commits

Author SHA256 Message Date
755a45b82e Update to 2.9.1
* Fix type annotation for data_regression.check.
  * ImageRegression.check now supports receiving an PIL.Image object
    directly.
  * Support for Python 3.14 has been added, while Python 3.9 (EOL) has been
    dropped.
2026-01-19 11:33:13 +11:00
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
22de683723 Accepting request 1275110 from devel:languages:python:pytest
- Switch to pyproject macros.
- Be more explicit about directories in %files.

OBS-URL: https://build.opensuse.org/request/show/1275110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-regressions?expand=0&rev=7
2025-05-07 17:15:53 +00:00
a6d45ba394 - Switch to pyproject macros.
- Be more explicit about directories in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-regressions?expand=0&rev=14
2025-05-07 07:05:53 +00:00
4 changed files with 49 additions and 13 deletions

Binary file not shown.

BIN
pytest_regressions-2.9.1.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,36 @@
-------------------------------------------------------------------
Mon Jan 19 00:33:00 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.9.1:
* Fix type annotation for data_regression.check.
* ImageRegression.check now supports receiving an PIL.Image object
directly.
* Support for Python 3.14 has been added, while Python 3.9 (EOL) has been
dropped.
-------------------------------------------------------------------
Mon Nov 24 03:50:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Wed May 7 06:58:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Be more explicit about directories in %files.
-------------------------------------------------------------------
Thu Sep 7 09:51:38 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-regressions
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -18,22 +18,24 @@
%{?sle15_python_module_pythons}
Name: python-pytest-regressions
Version: 2.5.0
Version: 2.9.1
Release: 0
License: MIT
Summary: Python fixtures to write regression tests
URL: https://github.com/ESSS/pytest-regressions
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/p/pytest-regressions/pytest-regressions-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/pytest-regressions/pytest_regressions-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.10}
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}
BuildRequires: %{python_module pytest-datadir >= 1.7.0}
# These could be added as build dep for testing but are commented to
# reduce the number of requirements.
# BuildRequires: %%{python_module pandas}
@@ -42,7 +44,7 @@ BuildRequires: %{python_module pytest-datadir >= 1.2.0}
BuildRequires: fdupes
Requires: python-PyYAML
Requires: python-pytest >= 6.2.0
Requires: python-pytest-datadir >= 1.2.0
Requires: python-pytest-datadir >= 1.7.0
Suggests: python-matplotlib
Suggests: python-numpy
Suggests: python-pandas
@@ -55,13 +57,13 @@ BuildArch: noarch
Python fixtures to write regression tests.
%prep
%autosetup -p1 -n pytest-regressions-%{version}
%autosetup -p1 -n pytest_regressions-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -79,6 +81,7 @@ donttest+=" or test_different_data_types"
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/pytest_regressions*
%{python_sitelib}/pytest_regressions
%{python_sitelib}/pytest_regressions-%{version}.dist-info
%changelog