- update to 2.4.2:

* Properly handle missing index ``0``.
  * Compatibility fix for pytest 6.2.
  * New ``--regen-all`` flag, which regenerates all files without
    failing the tests. Useful to regenerate all files in
    the test suite with a single run.
  * The public API is now fully type annotated.
  * ``pytest>=6.2`` is now required.
  * Properly handle empty and NaN values on
    num_regression and dataframe_regression.
  * New ``--with-test-class-names`` command-line flag to consider
    test class names when composing the expected and obtained
    data filenames. Needed when the same module contains
    different classes with the same method names.
  * New ``ndarrays_regression``, for comparing NumPy arrays with
    arbitrary shape.
  * Fix ``empty string bug`` on dataframe regression.
- drop np_num-deprecated.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-regressions?expand=0&rev=5
This commit is contained in:
2023-05-09 21:09:54 +00:00
committed by Git OBS Bridge
parent cdfea6a8b5
commit 82cb7c0158
5 changed files with 28 additions and 106 deletions

View File

@@ -18,21 +18,18 @@
%{?sle15_python_module_pythons}
Name: python-pytest-regressions
Version: 2.2.0
Version: 2.4.2
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
# PATCH-FIX-UPSTREAM np_num-deprecated.patch gh#ESSS/pytest-regressions#63 mcepl@suse.com
# don't use deprecated np.* types
Patch0: np_num-deprecated.patch
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.5.0}
BuildRequires: %{python_module pytest >= 6.2.0}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module matplotlib}
@@ -42,7 +39,7 @@ BuildRequires: %{python_module pytest-datadir >= 1.2.0}
# /SECTION
BuildRequires: fdupes
Requires: python-PyYAML
Requires: python-pytest >= 3.5.0
Requires: python-pytest >= 6.2.0
Requires: python-pytest-datadir >= 1.2.0
Suggests: python-matplotlib
Suggests: python-numpy