diff --git a/pytest-cov-5.0.0.tar.gz b/pytest-cov-5.0.0.tar.gz deleted file mode 100644 index 45b10aad592d6b6fd4e82bee77fa68c8005715c3..0000000000000000000000000000000000000000 Binary files a/pytest-cov-5.0.0.tar.gz and /dev/null differ diff --git a/pytest-cov-6.0.0.tar.gz b/pytest-cov-6.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b4186fcddd08388321336521a50d2397270897c2 Binary files /dev/null and b/pytest-cov-6.0.0.tar.gz differ diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 9d71f6955fce72692feb4e9c315d13b889390aa2..e1cb9ba143b240c6b384a761a308fd06d6b4cc96 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,15 +1,13 @@ %bcond_with test Name: python-pytest-cov -Version: 5.0.0 +Version: 6.0.0 Release: 1 Summary: Pytest plugin for measuring coverage 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 +Source: https://files.pythonhosted.org/packages/be/45/9b538de8cef30e17c7b45ef42f538a94889ed6a16f2387a6c89e73220651/pytest-cov-6.0.0.tar.gz -# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#643 -Patch0: support-coverage-75.patch BuildArch: noarch @@ -67,6 +65,15 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} %{python3_sitelib}/* %changelog +* Mon Nov 04 2024 xiaozai - 6.0.0-1 +- Update to 6.0.0 + - Updated various documentation inaccuracies, especially on subprocess handling. + - Changed fail under checks to use the precision set in the coverage configuration. + - Now it will perform the check just like ``coverage report`` would. + - Added a ``--cov-precision`` cli option that can override the value set in your coverage configuration. + - Dropped support for now EOL Python 3.8. + + * Mon Aug 26 2024 dillon chen - 5.0.0-1 - update to 5.0.0 diff --git a/support-coverage-75.patch b/support-coverage-75.patch deleted file mode 100644 index 1a11b3e010f90075c2eafb4fd06832f11ae2db9d..0000000000000000000000000000000000000000 --- 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 -