- Add patch support-pytest-cov-6.patch:

* Support pytest output change.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-tldr?expand=0&rev=16
This commit is contained in:
2025-07-04 05:43:54 +00:00
committed by Git OBS Bridge
commit e4eca1408b
6 changed files with 156 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pytest-tldr-0.2.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:43f43fe758569df620c433a79d3cbee698e77268efebbc6e22ce1e66095a0881
size 11134

View File

@@ -0,0 +1,55 @@
-------------------------------------------------------------------
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>
- Remove python_module macro definition
- More specific python_sitelib in %files
- Update to 0.2.5:
* An incompatibility with Pytest 7.2 was corrected. (#36)
-------------------------------------------------------------------
Wed Dec 8 09:32:17 UTC 2021 - pgajdos@suse.com
- version update to 0.2.4
* Restored compatibility with pytest < 6. (`#32 <https://github.com/freakboy3742/pytest-tldr/issues/32>`_)
* Corrected output stream flush handling. This prevented long-running test results
from being displayed until the end of the test suite. (`#28 <https://github.com/freakboy3742/pytest-tldr/issues/28>`_)
-------------------------------------------------------------------
Tue Aug 25 07:50:24 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 0.2.2
* Added Pytest 6 support. (#26)
-------------------------------------------------------------------
Mon Sep 9 09:18:55 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.2.1:
* no upstream changelog
-------------------------------------------------------------------
Thu Jul 18 16:52:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.2.0:
* no upstream changelog provided
-------------------------------------------------------------------
Mon Jun 10 08:16:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.1.6:
* No upstream changelog provided
-------------------------------------------------------------------
Thu Mar 21 01:52:14 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.1.5

61
python-pytest-tldr.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-pytest-tldr
#
# 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/
#
Name: python-pytest-tldr
Version: 0.2.5
Release: 0
Summary: A pytest plugin that limits the output to just the things you need
License: BSD-3-Clause
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
BuildArch: noarch
%python_subpackages
%description
A pytest plugin that limits the output to just the things you need.
%prep
%autosetup -p1 -n pytest-tldr-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%pycache_only %{python_sitelib}/__pycache__/pytest_tldr.*.pyc
%{python_sitelib}/pytest_tldr.py
%{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%",