17
0

Compare commits

4 Commits

3 changed files with 33 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Jul 4 05:41:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-pytest-cov-6.patch:
* Support pytest output change.
-------------------------------------------------------------------
Wed May 7 06:59:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Wed Nov 30 11:56:24 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-tldr
#
# Copyright (c) 2022 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
@@ -21,12 +21,14 @@ Version: 0.2.5
Release: 0
Summary: A pytest plugin that limits the output to just the things you need
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/freakboy3742/pytest-tldr
Source: https://files.pythonhosted.org/packages/source/p/pytest-tldr/pytest-tldr-%{version}.tar.gz
Patch0: support-pytest-cov-6.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.5.0}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.5.0
@@ -37,13 +39,13 @@ BuildArch: noarch
A pytest plugin that limits the output to just the things you need.
%prep
%setup -q -n pytest-tldr-%{version}
%autosetup -p1 -n pytest-tldr-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -52,8 +54,8 @@ A pytest plugin that limits the output to just the things you need.
%files %{python_files}
%doc README.rst
%license LICENSE
%pycache_only %{python_sitelib}/__pycache__/*.pyc
%pycache_only %{python_sitelib}/__pycache__/pytest_tldr.*.pyc
%{python_sitelib}/pytest_tldr.py
%{python_sitelib}/pytest_tldr-%{version}*-info
%{python_sitelib}/pytest_tldr-%{version}.dist-info
%changelog

View File

@@ -0,0 +1,13 @@
Index: pytest-tldr-0.2.5/tests/test_plugins.py
===================================================================
--- pytest-tldr-0.2.5.orig/tests/test_plugins.py
+++ pytest-tldr-0.2.5/tests/test_plugins.py
@@ -10,7 +10,7 @@ def test_coverage(testdir):
result.stdout.fnmatch_lines(
[
"test_coverage.py::test_coverage ... ok",
- "*----- coverage: platform *-----",
+ "*_____ coverage: platform *_____",
"Name Stmts Miss Cover",
"--------------------------------------",
"test_coverage.py 2 0 100%",