Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 407389cd3c | |||
| b997e2db2a | |||
| 120172a658 | |||
| 9f46a87049 |
@@ -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>
|
Wed Nov 30 11:56:24 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-tldr
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -21,12 +21,14 @@ Version: 0.2.5
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: A pytest plugin that limits the output to just the things you need
|
Summary: A pytest plugin that limits the output to just the things you need
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/freakboy3742/pytest-tldr
|
URL: https://github.com/freakboy3742/pytest-tldr
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-tldr/pytest-tldr-%{version}.tar.gz
|
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 >= 3.5.0}
|
||||||
BuildRequires: %{python_module pytest-cov}
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pytest >= 3.5.0
|
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.
|
A pytest plugin that limits the output to just the things you need.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-tldr-%{version}
|
%autosetup -p1 -n pytest-tldr-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -52,8 +54,8 @@ A pytest plugin that limits the output to just the things you need.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%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.py
|
||||||
%{python_sitelib}/pytest_tldr-%{version}*-info
|
%{python_sitelib}/pytest_tldr-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
13
support-pytest-cov-6.patch
Normal file
13
support-pytest-cov-6.patch
Normal 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%",
|
||||||
Reference in New Issue
Block a user