Files
python-pytest-check/python-pytest-check.spec

65 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
- update to 2.2.0: * pseudo traceback additions `-l` or `--showlocals` shows locals `__tracebackhide__ = True` is honored. * Fix 127 IndexError when running a check in a thread * include tests an examples in sdist - pr 121 * README.md - clean up documentation for `--check-max-tb`. * Minor internal cleanup - removed some debug code. * `check.call_on_fail(func)` - ***Experimental*** * Name changed from `check.set_failure_callback(func)`. * This "func" function will be called for each failed check, and needs to accept a string parameter. * With the following change, the default is now pretty darn fast, and most people will not need to modify any settings to get most of the speed improvements. * `--check-max-tb=<int>` - sets the max number of pseudo- traceback reports per test function. * `check.set_no_tb` and `--set-no-tb` will be removed in a future release. (probably soon) * Since `--check-max-tb` is more useful, the default for `--check-max-tb` is 1, which is already pretty fast. * And `--check-max-tb=0` has the same effect as `--check-no- tb`. * Most changes are related to speedup improvements. * use `--check-no-tb --check-max-report=10` to get super zippy. * `check.between()` added just for fun * Rewrote `check.equal()` and other helper functions to not use assert. * `--check-no-tb` - turn off tracebacks * `--check-max-report` - limit reported failures per test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=4
2023-07-24 18:49:04 +00:00
# spec file for package python-pytest-check
#
# 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
# 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/
#
- update to 2.2.0: * pseudo traceback additions `-l` or `--showlocals` shows locals `__tracebackhide__ = True` is honored. * Fix 127 IndexError when running a check in a thread * include tests an examples in sdist - pr 121 * README.md - clean up documentation for `--check-max-tb`. * Minor internal cleanup - removed some debug code. * `check.call_on_fail(func)` - ***Experimental*** * Name changed from `check.set_failure_callback(func)`. * This "func" function will be called for each failed check, and needs to accept a string parameter. * With the following change, the default is now pretty darn fast, and most people will not need to modify any settings to get most of the speed improvements. * `--check-max-tb=<int>` - sets the max number of pseudo- traceback reports per test function. * `check.set_no_tb` and `--set-no-tb` will be removed in a future release. (probably soon) * Since `--check-max-tb` is more useful, the default for `--check-max-tb` is 1, which is already pretty fast. * And `--check-max-tb=0` has the same effect as `--check-no- tb`. * Most changes are related to speedup improvements. * use `--check-no-tb --check-max-report=10` to get super zippy. * `check.between()` added just for fun * Rewrote `check.equal()` and other helper functions to not use assert. * `--check-no-tb` - turn off tracebacks * `--check-max-report` - limit reported failures per test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=4
2023-07-24 18:49:04 +00:00
%{?sle15_python_module_pythons}
Name: python-pytest-check
2025-11-05 17:27:30 +01:00
Version: 2.6.0
Release: 0
Summary: A pytest plugin that allows multiple failures per test
License: MIT
URL: https://github.com/okken/pytest-check
Source: https://files.pythonhosted.org/packages/source/p/pytest-check/pytest_check-%{version}.tar.gz
2025-11-05 17:27:30 +01:00
# Only include this patch for 15.6 and 16.0 builds
%if 0%{?suse_version} =< 1600
Patch0: pytest-check-no-new-classifiers.patch
%endif
BuildRequires: %{python_module base >= 3.6}
2025-11-05 17:27:30 +01:00
BuildRequires: %{python_module hatchling}
- update to 2.2.0: * pseudo traceback additions `-l` or `--showlocals` shows locals `__tracebackhide__ = True` is honored. * Fix 127 IndexError when running a check in a thread * include tests an examples in sdist - pr 121 * README.md - clean up documentation for `--check-max-tb`. * Minor internal cleanup - removed some debug code. * `check.call_on_fail(func)` - ***Experimental*** * Name changed from `check.set_failure_callback(func)`. * This "func" function will be called for each failed check, and needs to accept a string parameter. * With the following change, the default is now pretty darn fast, and most people will not need to modify any settings to get most of the speed improvements. * `--check-max-tb=<int>` - sets the max number of pseudo- traceback reports per test function. * `check.set_no_tb` and `--set-no-tb` will be removed in a future release. (probably soon) * Since `--check-max-tb` is more useful, the default for `--check-max-tb` is 1, which is already pretty fast. * And `--check-max-tb=0` has the same effect as `--check-no- tb`. * Most changes are related to speedup improvements. * use `--check-no-tb --check-max-report=10` to get super zippy. * `check.between()` added just for fun * Rewrote `check.equal()` and other helper functions to not use assert. * `--check-no-tb` - turn off tracebacks * `--check-max-report` - limit reported failures per test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=4
2023-07-24 18:49:04 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6}
BuildRequires: fdupes
- update to 2.2.0: * pseudo traceback additions `-l` or `--showlocals` shows locals `__tracebackhide__ = True` is honored. * Fix 127 IndexError when running a check in a thread * include tests an examples in sdist - pr 121 * README.md - clean up documentation for `--check-max-tb`. * Minor internal cleanup - removed some debug code. * `check.call_on_fail(func)` - ***Experimental*** * Name changed from `check.set_failure_callback(func)`. * This "func" function will be called for each failed check, and needs to accept a string parameter. * With the following change, the default is now pretty darn fast, and most people will not need to modify any settings to get most of the speed improvements. * `--check-max-tb=<int>` - sets the max number of pseudo- traceback reports per test function. * `check.set_no_tb` and `--set-no-tb` will be removed in a future release. (probably soon) * Since `--check-max-tb` is more useful, the default for `--check-max-tb` is 1, which is already pretty fast. * And `--check-max-tb=0` has the same effect as `--check-no- tb`. * Most changes are related to speedup improvements. * use `--check-no-tb --check-max-report=10` to get super zippy. * `check.between()` added just for fun * Rewrote `check.equal()` and other helper functions to not use assert. * `--check-no-tb` - turn off tracebacks * `--check-max-report` - limit reported failures per test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=4
2023-07-24 18:49:04 +00:00
BuildRequires: python-rpm-macros
Requires: python-pytest >= 6
BuildArch: noarch
%python_subpackages
%description
A pytest plugin that allows multiple failures per test. A rewrite of pytest-expect
%prep
%setup -q -n pytest_check-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/pytest_check
%{python_sitelib}/pytest_check-%{version}*-info
%changelog