Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a524969b01 | |||
| 6e423207b3 | |||
| edd6b8bfa4 | |||
| b66658215c | |||
| 1ff4e60c91 | |||
| e6c58a08e6 | |||
| eaa5662587 | |||
| fd43bdfeef |
27
0001-match-coverage-7.10.7-warnings.patch
Normal file
27
0001-match-coverage-7.10.7-warnings.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
From b4fb003e3b6634cfc0db07aaf1e29cf6a94f037a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= <meggy.calabkova@gmail.com>
|
||||
Date: Mon, 13 Oct 2025 16:12:57 +0200
|
||||
Subject: [PATCH] match coverage 7.10.7 warnings
|
||||
|
||||
---
|
||||
tests/test_pytest_cov.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
|
||||
index 6ca09fe..c71d776 100644
|
||||
--- a/tests/test_pytest_cov.py
|
||||
+++ b/tests/test_pytest_cov.py
|
||||
@@ -1435,8 +1435,8 @@ def test_filterwarnings_error(testdir):
|
||||
result.stdout.fnmatch_lines(['* 1 passed *'])
|
||||
result.stderr.fnmatch_lines(
|
||||
[
|
||||
- '* (module-not-measured)',
|
||||
- '* (no-data-collected)',
|
||||
+ '* (module-not-measured)*',
|
||||
+ '* (no-data-collected)*',
|
||||
'* CovReportWarning: Failed to generate report: No data to report.',
|
||||
]
|
||||
)
|
||||
--
|
||||
2.51.0
|
||||
|
||||
BIN
pytest-cov-5.0.0.tar.gz
(Stored with Git LFS)
BIN
pytest-cov-5.0.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
pytest_cov-7.0.0.tar.gz
Normal file
3
pytest_cov-7.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:33c97eda2e049a0c5298e91f519302a1334c26ac65c1a483d6206fd458361af1
|
||||
size 54328
|
||||
@@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 13 14:15:34 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add 0001-match-coverage-7.10.7-warnings.patch to fix tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 19 08:43:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Skip tests failing with Python 3.14
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 16 02:43:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 7.0.0:
|
||||
* Dropped support for subprocesses measurement.
|
||||
* Switched packaging to have metadata completely in pyproject.toml and use
|
||||
hatchling for building.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 2 02:18:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-cov
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,29 +26,31 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-cov%{psuffix}
|
||||
Version: 5.0.0
|
||||
Version: 7.0.0
|
||||
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
|
||||
# PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-cov/pull/722 match coverage 7.10.7 warnings
|
||||
Patch0: 0001-match-coverage-7.10.7-warnings.patch
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
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.10.6}
|
||||
BuildRequires: %{python_module fields}
|
||||
BuildRequires: %{python_module process-tests}
|
||||
BuildRequires: %{python_module pytest >= 4.6.0}
|
||||
BuildRequires: %{python_module pytest-cov = %{version}}
|
||||
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.10.6
|
||||
Requires: python-pluggy >= 1.2
|
||||
Requires: python-pytest >= 6.2.5
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -61,7 +63,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
|
||||
@@ -78,11 +80,14 @@ echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
|
||||
# test_dist_missing_data - needs internet access
|
||||
# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build
|
||||
donttest="test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath"
|
||||
# Tests broken with the latest version of python-coverage (6.5.0)
|
||||
# gh#pytest-dev/pytest-cov#570
|
||||
# test_celery - requires testcontainers, not packaged
|
||||
donttest+=" or test_celery"
|
||||
# Broken with new version of coverage
|
||||
donttest+=" or test_subprocess_with_path_aliasing or test_central_subprocess"
|
||||
donttest+=" or test_dist_subprocess_not_collocated or test_cleanup_on_sigterm"
|
||||
donttest+=" or test_append_coverage_subprocess or test_dist_subprocess_collocated"
|
||||
# Broken with Python 3.14 https://github.com/pytest-dev/pytest-cov/issues/719
|
||||
donttest+=" or test_contexts"
|
||||
# gh#pytest-dev/pytest-cov#565
|
||||
donttest+=" or test_dist_boxed"
|
||||
%pytest -v -k "not (${donttest})"
|
||||
%endif
|
||||
|
||||
@@ -90,7 +95,6 @@ donttest+=" or test_dist_boxed"
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||
%{python_sitelib}/pytest-cov.pth
|
||||
%{python_sitelib}/pytest_cov
|
||||
%{python_sitelib}/pytest_cov-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
From 89bd477d5d176666e2d4f3e38983bb69a055a457 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Kowalik <steven@wedontsleep.org>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user