17
0

13 Commits

Author SHA256 Message Date
3a246ea738 Accepting request 1312403 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1312403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=72
2025-10-21 09:15:02 +00:00
87555074e4 - ignore testresults from test_numbits, fails sometimes because of slow
hypothesis performance on i586 (bsc#1251955)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=152
2025-10-20 12:34:41 +00:00
d3a921d1b4 Accepting request 1311041 from devel:languages:python
- update to 7.10.7:
  * Performance: with branch coverage in large files, generating
    HTML, JSON, or LCOV reports could take far too long due to
    some quadratic behavior when creating the function and class
    index pages.  This is now fixed, closing issue 2048.  Thanks
    to Daniel Diniz for help diagnosing the problem.
  * Most warnings and a few errors now have links to a page in
    the docs explaining the specific message.  Closes issue 1921.

OBS-URL: https://build.opensuse.org/request/show/1311041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=71
2025-10-18 12:34:53 +00:00
cde544897a - update to 7.10.7:
* Performance: with branch coverage in large files, generating
    HTML, JSON, or LCOV reports could take far too long due to
    some quadratic behavior when creating the function and class
    index pages.  This is now fixed, closing issue 2048.  Thanks
    to Daniel Diniz for help diagnosing the problem.
  * Most warnings and a few errors now have links to a page in
    the docs explaining the specific message.  Closes issue 1921.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=150
2025-10-13 09:16:33 +00:00
0bc8cfbc37 Accepting request 1303296 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=70
2025-09-17 14:37:01 +00:00
660fa2b719 - Update to 7.10.6
* A new configuration option: ":ref:`config_run_patch`" specifies
    named patches to work around some limitations in coverage
    measurement. Please see docs for more info.
  * The HTML report now dimly colors subsequent lines in multi-line
    statements.
  * Two new exclusion patterns are part of the defaults: ... is
    automatically excluded as a line and if TYPE_CHECKING: is
    excluded as a branch.
  * A new command-line option: --save-signal=USR1 specifies a signal
    that coverage.py will listen for. When the signal is sent, the
    coverage data will be saved.
  * Big speed improvements for coverage combine: it's now about twice
    as fast!
  * fix: source directories were not properly communicated to
    subprocesses that ran in different directories.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=148
2025-09-09 07:18:26 +00:00
a73f2b4748 Accepting request 1300270 from devel:languages:python
- Add _multibuild for running tests, it's required to call "coverage"
  command when using libalternatives.
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1300270
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=69
2025-08-20 11:24:43 +00:00
2ad5ca4ab2 - Add _multibuild for running tests, it's required to call "coverage"
command when using libalternatives.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=146
2025-08-19 10:46:51 +00:00
9bb487b215 - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=145
2025-08-14 12:34:34 +00:00
b1804bf702 Accepting request 1294221 from devel:languages:python
- update to 7.9.2:
  * Fix: complex conditionals within a line might cause a
    KeyError when using sys.monitoring, as reported in issue
    1991.  This is now fixed.
  * Fix: we can now measure coverage for code in Python archive
    (.par) files. Thanks, Itamer Oren.
  * The "no-ctracer" warning is not issued for Python pre-release
    versions. Coverage doesn't ship compiled wheels for those
    versions, so this was far too noisy.
  * On Python 3.14+, the "sysmon" core is now the default if it's
    supported for your configuration.  Plugins and dynamic
    contexts are still not supported with it.
  * Added a [run] core configuration setting to specify the
    measurement core, which was previously only available through
    the COVERAGE_CORE environment variable. Finishes issue 1746.
  * Fixed incorrect rendering of f-strings with doubled braces,
    closing issue 1980.
  * If the C tracer core can't be imported, a warning ("no-
    ctracer") is issued with the reason.
  * The C tracer core extension module now conforms to PEP 489,
    closing issue 1977.  Thanks, Adam Turner.
  * Fixed a "ValueError: min() arg is an empty sequence" error
    caused by strange empty modules, found by oss-fuzz.
  * Wheels are provided for Windows ARM64 on Python 3.11, 3.12,
    and 3.13. Thanks, Finn Womack.
  * A number of EncodingWarnings were fixed that could appear if
    you've enabled PYTHONWARNDEFAULTENCODING, fixing issue 1966.
    Thanks, Henry Schreiner.
  * Fixed a race condition when using sys.monitoring with free-
    threading Python, closing issue 1970.

OBS-URL: https://build.opensuse.org/request/show/1294221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=68
2025-07-18 13:57:48 +00:00
d2d2356f41 - update to 7.9.2:
* Fix: complex conditionals within a line might cause a
    KeyError when using sys.monitoring, as reported in issue
    1991.  This is now fixed.
  * Fix: we can now measure coverage for code in Python archive
    (.par) files. Thanks, Itamer Oren.
  * The "no-ctracer" warning is not issued for Python pre-release
    versions. Coverage doesn't ship compiled wheels for those
    versions, so this was far too noisy.
  * On Python 3.14+, the "sysmon" core is now the default if it's
    supported for your configuration.  Plugins and dynamic
    contexts are still not supported with it.
  * Added a [run] core configuration setting to specify the
    measurement core, which was previously only available through
    the COVERAGE_CORE environment variable. Finishes issue 1746.
  * Fixed incorrect rendering of f-strings with doubled braces,
    closing issue 1980.
  * If the C tracer core can't be imported, a warning ("no-
    ctracer") is issued with the reason.
  * The C tracer core extension module now conforms to PEP 489,
    closing issue 1977.  Thanks, Adam Turner.
  * Fixed a "ValueError: min() arg is an empty sequence" error
    caused by strange empty modules, found by oss-fuzz.
  * Wheels are provided for Windows ARM64 on Python 3.11, 3.12,
    and 3.13. Thanks, Finn Womack.
  * A number of EncodingWarnings were fixed that could appear if
    you've enabled PYTHONWARNDEFAULTENCODING, fixing issue 1966.
    Thanks, Henry Schreiner.
  * Fixed a race condition when using sys.monitoring with free-
    threading Python, closing issue 1970.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=143
2025-07-17 19:36:20 +00:00
36e943bb1c Accepting request 1291005 from devel:languages:python
revert libalternatives conversion, did not work

OBS-URL: https://build.opensuse.org/request/show/1291005
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=142
2025-07-07 09:39:16 +00:00
048020afca OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=141 2025-07-07 09:26:57 +00:00
6 changed files with 144 additions and 31 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

3
coverage-7.10.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4ab143ab113be368a3e9b795f9cd7906c5ef407d6173fe9675a902e1fffc239
size 827704

Binary file not shown.

View File

@@ -1,3 +1,97 @@
-------------------------------------------------------------------
Mon Oct 20 08:45:59 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- ignore testresults from test_numbits, fails sometimes because of slow
hypothesis performance on i586 (bsc#1251955)
-------------------------------------------------------------------
Mon Oct 13 09:16:29 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 7.10.7:
* Performance: with branch coverage in large files, generating
HTML, JSON, or LCOV reports could take far too long due to
some quadratic behavior when creating the function and class
index pages. This is now fixed, closing issue 2048. Thanks
to Daniel Diniz for help diagnosing the problem.
* Most warnings and a few errors now have links to a page in
the docs explaining the specific message. Closes issue 1921.
-------------------------------------------------------------------
Tue Sep 9 05:58:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 7.10.6
* A new configuration option: ":ref:`config_run_patch`" specifies
named patches to work around some limitations in coverage
measurement. Please see docs for more info.
* The HTML report now dimly colors subsequent lines in multi-line
statements.
* Two new exclusion patterns are part of the defaults: ... is
automatically excluded as a line and if TYPE_CHECKING: is
excluded as a branch.
* A new command-line option: --save-signal=USR1 specifies a signal
that coverage.py will listen for. When the signal is sent, the
coverage data will be saved.
* Big speed improvements for coverage combine: it's now about twice
as fast!
* fix: source directories were not properly communicated to
subprocesses that ran in different directories.
-------------------------------------------------------------------
Tue Aug 19 10:42:47 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Add _multibuild for running tests, it's required to call "coverage"
command when using libalternatives.
-------------------------------------------------------------------
Thu Aug 14 12:33:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Thu Jul 17 19:35:48 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 7.9.2:
* Fix: complex conditionals within a line might cause a
KeyError when using sys.monitoring, as reported in issue
1991. This is now fixed.
* Fix: we can now measure coverage for code in Python archive
(.par) files. Thanks, Itamer Oren.
* The "no-ctracer" warning is not issued for Python pre-release
versions. Coverage doesn't ship compiled wheels for those
versions, so this was far too noisy.
* On Python 3.14+, the "sysmon" core is now the default if it's
supported for your configuration. Plugins and dynamic
contexts are still not supported with it.
* Added a [run] core configuration setting to specify the
measurement core, which was previously only available through
the COVERAGE_CORE environment variable. Finishes issue 1746.
* Fixed incorrect rendering of f-strings with doubled braces,
closing issue 1980.
* If the C tracer core can't be imported, a warning ("no-
ctracer") is issued with the reason.
* The C tracer core extension module now conforms to PEP 489,
closing issue 1977. Thanks, Adam Turner.
* Fixed a "ValueError: min() arg is an empty sequence" error
caused by strange empty modules, found by oss-fuzz.
* Wheels are provided for Windows ARM64 on Python 3.11, 3.12,
and 3.13. Thanks, Finn Womack.
* A number of EncodingWarnings were fixed that could appear if
you've enabled PYTHONWARNDEFAULTENCODING, fixing issue 1966.
Thanks, Henry Schreiner.
* Fixed a race condition when using sys.monitoring with free-
threading Python, closing issue 1970.
* Added a new source_dirs setting for symmetry with the
existing source_pkgs setting. It's preferable to the existing
source setting, because you'll get a clear error when
directories don't exist. Fixes issue 1942. Thanks, Jeremy
Fleischman.
* Fix: the PYTHONSAFEPATH environment variable new in Python
3.11 is properly supported, closing issue 1696. Thanks,
Philipp A.. This works properly except for a detail when
using the coverage command on Windows. There you can use
python -m coverage instead if you need exact emulation.
- drop setuptools77.patch (upstream)
-------------------------------------------------------------------
Thu Mar 27 09:44:38 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-coverage
#
# Copyright (c) 2025 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
@@ -16,16 +16,29 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-coverage
Version: 7.7.1
Name: python-coverage%{psuffix}
Version: 7.10.7
Release: 0
Summary: Code coverage measurement for Python
License: Apache-2.0
URL: https://github.com/nedbat/coveragepy
Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/nedbat/coveragepy/commit/ba685fb8d06a2052c4916749539ef501b8080804 build: setuptools 77 doesn't like license classifiers.
Patch: setuptools77.patch
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@@ -33,11 +46,19 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python
Requires(post): update-alternatives
Requires(postun): update-alternatives
# coverage[toml]
Recommends: python-tomli
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module coverage = %{version}}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module hypothesis >= 6}
BuildRequires: %{python_module pytest-xdist}
@@ -46,6 +67,7 @@ BuildRequires: %{python_module tomli}
# for database (sqlite3) support
BuildRequires: %{pythons}
# /SECTION
%endif
%python_subpackages
%description
@@ -60,15 +82,20 @@ library to determine which lines are executable, and which have been executed.
sed -i -e '/addopts/d' setup.cfg
%build
%if %{without test}
%pyproject_wheel
%endif
%install
%if %{without test}
%pyproject_install
rm -vf %{buildroot}%{_bindir}/coverage{2,3}
%python_clone -a %{buildroot}%{_bindir}/coverage
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%endif
%check
%if %{with test}
export LANG=en_US.UTF8
%python_flavored_alternatives
%{python_expand # indicate a writeable .pth directory for tests
@@ -103,9 +130,17 @@ donttest+=" or test_process"
donttest+=" or test_plugins"
# asserts PYTHONPATH is empty, which it can't be
donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit"
%ifarch i586
# flaky due to bad hypothesis performance
donttest+=" or test_numbits.py"
%endif
%pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||:
%pytest_arch -n auto --no-flaky-report -k "not ($donttest)"
%endif
%pre
%python_libalternatives_reset_alternative coverage
%post
%python_install_alternative coverage
@@ -113,11 +148,13 @@ donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit"
%postun
%python_uninstall_alternative coverage
%if %{without test}
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTORS.txt README.rst howto.txt
%python_alternative %{_bindir}/coverage
%{python_sitearch}/coverage/
%{python_sitearch}/coverage-%{version}.dist-info
%endif
%changelog

View File

@@ -1,21 +0,0 @@
From ba685fb8d06a2052c4916749539ef501b8080804 Mon Sep 17 00:00:00 2001
From: Ned Batchelder <ned@nedbatchelder.com>
Date: Sat, 22 Mar 2025 08:59:45 -0400
Subject: [PATCH] build: setuptools 77 doesn't like license classifiers. #1939
---
setup.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/setup.py b/setup.py
index 9aa82bf91..8fcec5e2d 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,6 @@
classifiers = """\
Environment :: Console
Intended Audience :: Developers
-License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3