From e4eca1408b7293abde3f6d635e5e69fee05a08b1fa8166442d970ce8743c2809 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 4 Jul 2025 05:43:54 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + pytest-tldr-0.2.5.tar.gz | 3 ++ python-pytest-tldr.changes | 55 ++++++++++++++++++++++++++++++++++ python-pytest-tldr.spec | 61 ++++++++++++++++++++++++++++++++++++++ support-pytest-cov-6.patch | 13 ++++++++ 6 files changed, 156 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-tldr-0.2.5.tar.gz create mode 100644 python-pytest-tldr.changes create mode 100644 python-pytest-tldr.spec create mode 100644 support-pytest-cov-6.patch 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-tldr-0.2.5.tar.gz b/pytest-tldr-0.2.5.tar.gz new file mode 100644 index 0000000..4b2df78 --- /dev/null +++ b/pytest-tldr-0.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43f43fe758569df620c433a79d3cbee698e77268efebbc6e22ce1e66095a0881 +size 11134 diff --git a/python-pytest-tldr.changes b/python-pytest-tldr.changes new file mode 100644 index 0000000..ddcea14 --- /dev/null +++ b/python-pytest-tldr.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Fri Jul 4 05:41:05 UTC 2025 - Steve Kowalik + +- Add patch support-pytest-cov-6.patch: + * Support pytest output change. + +------------------------------------------------------------------- +Wed May 7 06:59:51 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Wed Nov 30 11:56:24 UTC 2022 - Daniel Garcia + +- 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 `_) + * Corrected output stream flush handling. This prevented long-running test results + from being displayed until the end of the test suite. (`#28 `_) + +------------------------------------------------------------------- +Tue Aug 25 07:50:24 UTC 2020 - Marketa Calabkova + +- Update to 0.2.2 + * Added Pytest 6 support. (#26) + +------------------------------------------------------------------- +Mon Sep 9 09:18:55 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.1: + * no upstream changelog + +------------------------------------------------------------------- +Thu Jul 18 16:52:52 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.0: + * no upstream changelog provided + +------------------------------------------------------------------- +Mon Jun 10 08:16:20 UTC 2019 - Tomáš Chvátal + +- Update to 0.1.6: + * No upstream changelog provided + +------------------------------------------------------------------- +Thu Mar 21 01:52:14 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.1.5 diff --git a/python-pytest-tldr.spec b/python-pytest-tldr.spec new file mode 100644 index 0000000..0f51e4a --- /dev/null +++ b/python-pytest-tldr.spec @@ -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 diff --git a/support-pytest-cov-6.patch b/support-pytest-cov-6.patch new file mode 100644 index 0000000..9d3bc87 --- /dev/null +++ b/support-pytest-cov-6.patch @@ -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%",