commit 556072dbef14571906e927a29ed241603844d2594a468e65a31dec10eefe6da1 Author: Steve Kowalik Date: Wed May 7 07:05:53 2025 +0000 - 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-regressions-2.5.0.tar.gz b/pytest-regressions-2.5.0.tar.gz new file mode 100644 index 0000000..0dc3a9a --- /dev/null +++ b/pytest-regressions-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:818c7884c1cff3babf89eebb02cbc27b307856b1985427c24d52cb812a106fd9 +size 113615 diff --git a/python-pytest-regressions.changes b/python-pytest-regressions.changes new file mode 100644 index 0000000..2a3f0f6 --- /dev/null +++ b/python-pytest-regressions.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Wed May 7 06:58:19 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Be more explicit about directories in %files. + +------------------------------------------------------------------- +Thu Sep 7 09:51:38 UTC 2023 - Dirk Müller + +- update to 2.5.0: + * Dropped support for EOL Python 3.6 and Python 3.7. + * Added support for Python 3.11. + * Make ``dataframe_regression`` compatible with classes inheriting + from ``pandas.DataFrame``. + +------------------------------------------------------------------- +Tue May 30 12:07:58 UTC 2023 - Daniel Garcia + +- Skip test_different_data_types because of s390x architecture issue. + +------------------------------------------------------------------- +Mon May 29 09:10:25 UTC 2023 - Markéta Machová + +- Skip test_common_case because of SLE15 i586 precision issue + +------------------------------------------------------------------- +Thu May 25 09:34:08 UTC 2023 - Daniel Garcia + +- Remove python-pandas and python-matplotlib from BuildRequires + +------------------------------------------------------------------- +Tue May 9 21:07:08 UTC 2023 - Dirk Müller + +- 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) + +------------------------------------------------------------------- +Fri May 5 19:54:00 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Wed Jul 28 19:42:17 UTC 2021 - Matej Cepl + +- Update to 2.2.0: + - #45: num_regression.check now accepts any object that can be coerced + to a 1d numpy array with numeric dtype (e.g. list, tuple, etc). + - #35: New dataframe_regression fixture to check pandas DataFrames + directly. + - #34: Fix data_regression bug that creates empty file on serializing + error. +- Add np_num-deprecated.patch to avoid tests failing on using deprecated + data types (gh#ESSS/pytest-regressions#63). + +------------------------------------------------------------------- +Thu Aug 20 06:26:22 AM UTC 2020 - John Vandenberg + +- Initial spec for v2.0.1 diff --git a/python-pytest-regressions.spec b/python-pytest-regressions.spec new file mode 100644 index 0000000..bff533f --- /dev/null +++ b/python-pytest-regressions.spec @@ -0,0 +1,87 @@ +# +# 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.5.0 +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 +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