Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
bf3d03a647 |
BIN
pytest-cov-4.1.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
pytest-cov-4.1.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
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.
@@ -1,24 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed May 15 04:22:31 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Switch to pytest macro.
|
|
||||||
- Add patch support-coverage-75.patch:
|
|
||||||
* Support changes in coverage 7.5.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Mar 25 15:17:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
||||||
|
|
||||||
- update to 5.0.0:
|
|
||||||
* Removed support for xdist rsync (now deprecated).
|
|
||||||
* Switched docs theme to Furo.
|
|
||||||
* Various legacy Python cleanup and CI improvements.
|
|
||||||
Contributed by Christian Clauss and Hugo van Kemenade in
|
|
||||||
#630, #631, #632 and #633.
|
|
||||||
* Added a pyproject.toml example in the docs. Contributed by
|
|
||||||
Dawn James in #626.
|
|
||||||
* Modernized project's pre-commit hooks to use ruff. Initial
|
|
||||||
POC contributed by Christian Clauss in #584.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 1 08:51:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Jun 1 08:51:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
@@ -96,7 +75,7 @@ Sun Jul 17 20:14:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
Mon Dec 20 01:21:53 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Dec 20 01:21:53 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Add support-coverage-62.patch:
|
- Add support-coverage-62.patch:
|
||||||
* Support coverage >= 6.2
|
* Support coverage >= 6.2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
@@ -108,7 +87,7 @@ Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 14 08:45:47 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Sep 14 08:45:47 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Inject multibuild to avoid build cycles.
|
- Inject multibuild to avoid build cycles.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 4 09:58:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Thu Feb 4 09:58:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
@@ -166,7 +145,7 @@ Wed Jan 15 12:50:24 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 5 04:06:23 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>
|
Thu Dec 5 04:06:23 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Skip 6 test cases that are causing problems with Python 3.8
|
- Skip 6 test cases that are causing problems with Python 3.8
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 13:25:11 CET 2019 - Matej Cepl <mcepl@suse.com>
|
Wed Nov 6 13:25:11 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
@@ -215,7 +194,7 @@ Fri Oct 26 13:25:08 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
|
|||||||
* Added a no_cover marker and fixture.
|
* Added a no_cover marker and fixture.
|
||||||
* Fixed broken no_cover check when running doctests.
|
* Fixed broken no_cover check when running doctests.
|
||||||
* Fixed various issues with path normalization in reports
|
* Fixed various issues with path normalization in reports
|
||||||
(when combining coverage data from parallel mode).
|
(when combining coverage data from parallel mode).
|
||||||
* Report generation failures don't raise exceptions anymore.
|
* Report generation failures don't raise exceptions anymore.
|
||||||
A warning will be logged instead.
|
A warning will be logged instead.
|
||||||
|
|
||||||
@@ -258,29 +237,29 @@ Thu Oct 22 13:53:36 UTC 2015 - toddrme2178@gmail.com
|
|||||||
* Fixed broken handling for --cov-report=annotate.
|
* Fixed broken handling for --cov-report=annotate.
|
||||||
- Update to version 2.1.0
|
- Update to version 2.1.0
|
||||||
* Added support for coverage 4.0b2.
|
* Added support for coverage 4.0b2.
|
||||||
* Added the --cov-append command line options.
|
* Added the --cov-append command line options.
|
||||||
Contributed by Christian Ledermann in PR#80.
|
Contributed by Christian Ledermann in PR#80.
|
||||||
- Update to version 2.0.0
|
- Update to version 2.0.0
|
||||||
* Added --cov-fail-under, akin to the new fail_under option in
|
* Added --cov-fail-under, akin to the new fail_under option in
|
||||||
coverage-4.0 (automatically activated if there’s a
|
coverage-4.0 (automatically activated if there’s a
|
||||||
[report] fail_under = ... in .coveragerc).
|
[report] fail_under = ... in .coveragerc).
|
||||||
* Changed --cov-report=term to automatically upgrade to
|
* Changed --cov-report=term to automatically upgrade to
|
||||||
--cov-report=term-missing if there’s
|
--cov-report=term-missing if there’s
|
||||||
[run] show_missing = True in .coveragerc.
|
[run] show_missing = True in .coveragerc.
|
||||||
* Changed --cov so it can be used with no path argument
|
* Changed --cov so it can be used with no path argument
|
||||||
(in wich case the source settings from .coveragerc will
|
(in wich case the source settings from .coveragerc will
|
||||||
be used instead).
|
be used instead).
|
||||||
* Fixed .pth installation to work in all cases
|
* Fixed .pth installation to work in all cases
|
||||||
(install, easy_install, wheels, develop etc).
|
(install, easy_install, wheels, develop etc).
|
||||||
* Fixed .pth uninstallation to work for wheel installs.
|
* Fixed .pth uninstallation to work for wheel installs.
|
||||||
* Support for coverage 4.0.
|
* Support for coverage 4.0.
|
||||||
* Data file suffixing changed to use coverage’s
|
* Data file suffixing changed to use coverage’s
|
||||||
data_suffix=True option (instead of the custom suffixing).
|
data_suffix=True option (instead of the custom suffixing).
|
||||||
* Avoid warning about missing coverage data
|
* Avoid warning about missing coverage data
|
||||||
(just like coverage.control.process_startup).
|
(just like coverage.control.process_startup).
|
||||||
* Fixed a race condition when running with xdist
|
* Fixed a race condition when running with xdist
|
||||||
(all the workers tried to combine the files).
|
(all the workers tried to combine the files).
|
||||||
It’s possible that this issue is not present in
|
It’s possible that this issue is not present in
|
||||||
pytest-cov 1.8.X.
|
pytest-cov 1.8.X.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-cov
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,19 +24,16 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
%define skip_python2 1
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pytest-cov%{psuffix}
|
Name: python-pytest-cov%{psuffix}
|
||||||
Version: 5.0.0
|
Version: 4.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest plugin for coverage reporting
|
Summary: Pytest plugin for coverage reporting
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pytest-dev/pytest-cov
|
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/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#643
|
|
||||||
Patch0: support-coverage-75.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module coverage >= 5.2.1}
|
BuildRequires: %{python_module coverage >= 5.2.1}
|
||||||
BuildRequires: %{python_module fields}
|
BuildRequires: %{python_module fields}
|
||||||
@@ -64,16 +61,17 @@ through pytest-cov or through coverage's config file.
|
|||||||
%autosetup -p1 -n pytest-cov-%{version}
|
%autosetup -p1 -n pytest-cov-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
%pyproject_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
|
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
|
||||||
# test_dist_missing_data - needs internet access
|
# 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
|
# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build
|
||||||
@@ -83,7 +81,7 @@ donttest="test_dist_missing_data or test_central_subprocess_change_cwd_with_pyth
|
|||||||
donttest+=" or test_contexts"
|
donttest+=" or test_contexts"
|
||||||
# gh#pytest-dev/pytest-cov#565
|
# gh#pytest-dev/pytest-cov#565
|
||||||
donttest+=" or test_dist_boxed"
|
donttest+=" or test_dist_boxed"
|
||||||
%pytest -v -k "not (${donttest})"
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k "not (${donttest})"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
@@ -92,7 +90,7 @@ donttest+=" or test_dist_boxed"
|
|||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%{python_sitelib}/pytest-cov.pth
|
%{python_sitelib}/pytest-cov.pth
|
||||||
%{python_sitelib}/pytest_cov
|
%{python_sitelib}/pytest_cov
|
||||||
%{python_sitelib}/pytest_cov-%{version}.dist-info
|
%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -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