From fbcf24787ab0e268f41e6be9716acb158c1ff344cdaca8a24dc8b33ded5a90ff Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 17 Jul 2025 19:36:20 +0000 Subject: [PATCH] - 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 --- coverage-7.7.1.tar.gz | 3 --- coverage-7.9.2.tar.gz | 3 +++ python-coverage.changes | 45 +++++++++++++++++++++++++++++++++++++++++ python-coverage.spec | 4 +--- setuptools77.patch | 21 ------------------- 5 files changed, 49 insertions(+), 27 deletions(-) delete mode 100644 coverage-7.7.1.tar.gz create mode 100644 coverage-7.9.2.tar.gz delete mode 100644 setuptools77.patch diff --git a/coverage-7.7.1.tar.gz b/coverage-7.7.1.tar.gz deleted file mode 100644 index 054d2c2..0000000 --- a/coverage-7.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:199a1272e642266b90c9f40dec7fd3d307b51bf639fa0d15980dc0b3246c1393 -size 810332 diff --git a/coverage-7.9.2.tar.gz b/coverage-7.9.2.tar.gz new file mode 100644 index 0000000..67c6583 --- /dev/null +++ b/coverage-7.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b +size 813556 diff --git a/python-coverage.changes b/python-coverage.changes index f5c78da..4ea946c 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Thu Jul 17 19:35:48 UTC 2025 - Dirk Müller + +- 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á diff --git a/python-coverage.spec b/python-coverage.spec index 1adc00c..a25357f 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-coverage -Version: 7.7.1 +Version: 7.9.2 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} diff --git a/setuptools77.patch b/setuptools77.patch deleted file mode 100644 index 2bcbb05..0000000 --- a/setuptools77.patch +++ /dev/null @@ -1,21 +0,0 @@ -From ba685fb8d06a2052c4916749539ef501b8080804 Mon Sep 17 00:00:00 2001 -From: Ned Batchelder -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