diff --git a/pytest-cov-5.0.0.tar.gz b/pytest-cov-5.0.0.tar.gz deleted file mode 100644 index f329bc8..0000000 --- a/pytest-cov-5.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857 -size 63042 diff --git a/pytest_cov-6.2.1.tar.gz b/pytest_cov-6.2.1.tar.gz new file mode 100644 index 0000000..cbfe13d --- /dev/null +++ b/pytest_cov-6.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2 +size 69432 diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 1d5dfc3..03847f0 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed Jul 2 02:18:36 UTC 2025 - Steve Kowalik + +- Update to 6.2.1: + * Added a version requirement for pytest's pluggy dependency. + * Removed deprecated license classifier (packaging). + * The plugin now adds 3 rules in the filter warnings configuration to + prevent common coverage warnings being raised as obscure errors. + * Fixed breakage that occurs when ``--cov-context`` and the ``no_cover`` + marker are used together. + * Change terminal output to use full width lines for the coverage header. + * Removed unnecessary CovFailUnderWarning. + * Fixed the term report not using the precision specified via + ``--cov-precision``. + * Changed fail under checks to use the precision set in the coverage + configuration. + * Added a ``--cov-precision`` cli option that can override the value set + in your coverage configuration. + * Dropped support for now EOL Python 3.8. +- Drop patch support-coverage-75.patch, included upstream. + ------------------------------------------------------------------- Wed May 15 04:22:31 UTC 2024 - Steve Kowalik diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 2968f88..2851bf1 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-cov # -# Copyright (c) 2024 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 @@ -26,29 +26,29 @@ %endif %{?sle15_python_module_pythons} Name: python-pytest-cov%{psuffix} -Version: 5.0.0 +Version: 6.2.1 Release: 0 Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/pytest-dev/pytest-cov -Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#643 -Patch0: support-coverage-75.patch +Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest_cov-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} %if %{with test} -BuildRequires: %{python_module coverage >= 5.2.1} +BuildRequires: %{python_module coverage >= 7.5} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} -BuildRequires: %{python_module pytest >= 4.6.0} +BuildRequires: %{python_module pytest >= 6.2.5} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module virtualenv} %endif BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-coverage >= 5.2.1 -Requires: python-pytest >= 4.6.0 +Requires: python-coverage >= 7.5 +Requires: python-pluggy >= 1.2 +Requires: python-pytest >= 6.2.5 BuildArch: noarch %python_subpackages @@ -61,7 +61,7 @@ All features offered by the coverage package should be available, either through pytest-cov or through coverage's config file. %prep -%autosetup -p1 -n pytest-cov-%{version} +%autosetup -p1 -n pytest_cov-%{version} %build %pyproject_wheel diff --git a/support-coverage-75.patch b/support-coverage-75.patch deleted file mode 100644 index adb98c1..0000000 --- a/support-coverage-75.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 89bd477d5d176666e2d4f3e38983bb69a055a457 Mon Sep 17 00:00:00 2001 -From: Steve Kowalik -Date: Wed, 15 May 2024 14:08:51 +1000 -Subject: [PATCH] Support Coverage 7.5's HTML report changes - -Coverage 7.5 now writes out two other files when generating a HTML -report -- class_index and function_index. We check explicitly for which -files have been written, so add those two in if coverage is >= 7.5. ---- - tests/test_pytest_cov.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py -index bd9df38..114d34b 100644 ---- a/tests/test_pytest_cov.py -+++ b/tests/test_pytest_cov.py -@@ -292,7 +292,11 @@ def test_term_report_does_not_interact_with_html_output(testdir): - ) - dest_dir = testdir.tmpdir.join(DEST_DIR) - assert dest_dir.check(dir=True) -- assert sorted(dest_dir.visit('**/*.html')) == [dest_dir.join('index.html'), dest_dir.join('test_funcarg_py.html')] -+ expected = [dest_dir.join('index.html'), dest_dir.join('test_funcarg_py.html')] -+ if coverage.version_info >= (7, 5): -+ expected.insert(0, dest_dir.join('function_index.html')) -+ expected.insert(0, dest_dir.join('class_index.html')) -+ assert sorted(dest_dir.visit('**/*.html')) == expected - assert dest_dir.join('index.html').check() - assert result.ret == 0 -