diff --git a/%{pypi_name}-6.1.1.tar.gz b/%{pypi_name}-6.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..449ab5cf2d0f3f1323838c84c4113f852cb64b2f Binary files /dev/null and b/%{pypi_name}-6.1.1.tar.gz differ 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/python-pytest-cov.spec b/python-pytest-cov.spec index 9d71f6955fce72692feb4e9c315d13b889390aa2..f5f50e8017949af64ada347c171e3ea1c96eb06d 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,15 +1,12 @@ %bcond_with test Name: python-pytest-cov -Version: 5.0.0 +Version: 6.1.1 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 - -# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#643 -Patch0: support-coverage-75.patch +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch @@ -67,6 +64,17 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} %{python3_sitelib}/* %changelog +* Sun Apr 20 2025 Dongxing Wang - 6.1.1-1 +- Update package with version 6.1.1 + Add note on security and add link to subprocess docs + Reword --cov-config caveat section and hopefully clear confusions + Support Coverage 7.5's HTML report changes + Looks like the template was left with the old versions + Add reproducer for weird xdist dynamic_context interaction + Implement error/warning for the bad dynamic_context being set in config + Move the warnings/errors in a place that doesn't import anything + Configure Sphinx to ignore GitHub comment anchors + * 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 -