pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-coverage
Module Name: pkgsrc
Committed By: adam
Date: Thu Oct 22 16:33:20 UTC 2026
Modified Files:
pkgsrc/devel/py-coverage: Makefile distinfo
Log Message:
py-coverage: updated to 7.17.0
7.17.0 — 2026-10-22
- Dropped support for Python 3.10.
- Binary wheels are now provided for iOS and Android. This allows the use of
the optimized C tracer on mobile platforms.
- Fix: three or more levels of nested ``with`` statements could make a ``with``
line look like a branch with an exit that can never happen. Using the
sys.monitoring core, these phantom branches were reported as partial. Other
cores hid the problem but still counted the phantom branches in the total.
Closes `issue 1987`_.
- Fix: a comment or string that merely mentioned ``if True:`` or
``while True:`` could mark its line as a branch that is known to be partial,
so a branch that never ran was reported as taken. These built-in patterns
now only match at the start of the statement. Closes `issue 2314`_.
- Fix: region detection missed functions defined in unusual places, such as
``else`` and ``except`` clauses. This is now fixed.
- Fix: recent versions of the lcov tool complain if the same function name
appears more than once in a report. Python can have multiple same-named
functions in a few ways, for example, getters/setters or conditionally
defined functions. These are now disambiguated by adding a ``@<line number>``
suffix to the function name. Fixes `issue 2335`.
- Fix: The "Can't combine statement coverage data with branch data" error now
names the two data files it couldn't combine. The :ref:`error description
<error_cant_combine>` in the docs now lists common causes and how to find the
process that wrote the file.
- Fix: at coverage totals close to 0 or 100, the XML report could get incorrect
``line-rate`` values like ``8.333e-05`` or ``1``. This is now fixed, closing
`issue 2293`_ and `issue 2294`_.
- Fix: a parallel data file saved more than once kept the hash of its first
save in its file name. Combining could then skip it as a duplicate of another
file that had the same data at that point, and delete it, losing the data
recorded after the first save. Each save now updates the hash. This had been
a problem since 7.13.1. Fixes `issue 2338`_.
- Fixes for obscure but legal file names:
- File names (and plugin names) can contain control characters, which are
legal in POSIX paths but unsafe in reports: in XML 1.0 they make the
document non-well-formed, and in a terminal they act as escape sequences
(colors, title/clipboard sequences, cursor moves that forge output). Now
the XML report, the text and Markdown summary reports, and ``coverage debug
data`` replace non-printable characters in names. Printable names are
unchanged.
- A file pattern (from ``include``, ``omit``, or a ``[paths]`` alias)
containing a newline sent the glob-to-regex translation into an infinite
loop, hanging the process. Newlines in patterns are now handled like any
other character.
- Fixes in the implementation of the C tracer:
- If a plugin's ``dynamic_source_filename`` method raised an exception, lines
in that function could be recorded as belonging to a different file. Also
fixed some minor memory leaks in the C tracer.
- The refcount of ``None`` was mismanaged during function calls, including
comprehensions. This was unlikely to cause an actual problem, but is now
fixed. Thanks, Andrew Dalke.
- The C tracer held borrowed references to dictionary values, which was
unsafe on free-threaded Python. Now it takes its own references.
- An internal error while recording a new file could be reported as a
confusing ``SystemError`` instead of the actual exception.
- Performance: the text summary report (``coverage report``) held on to every
file's parsed source until it finished, so its memory use grew with the size
of the project: ten times or more what 7.14 used on large projects. Now it
keeps only what it needs to print. Fixes `issue 2277`_.
- Performance: HTML reports should be about 5% faster to produce.
- Kept the political banner in the README. Closes `issue 2344`_.
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 pkgsrc/devel/py-coverage/Makefile
cvs rdiff -u -r1.83 -r1.84 pkgsrc/devel/py-coverage/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-coverage/Makefile
diff -u pkgsrc/devel/py-coverage/Makefile:1.98 pkgsrc/devel/py-coverage/Makefile:1.99
--- pkgsrc/devel/py-coverage/Makefile:1.98 Fri Oct 16 17:41:23 2026
+++ pkgsrc/devel/py-coverage/Makefile Thu Oct 22 16:33:20 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.98 2026/10/16 17:41:23 adam Exp $
+# $NetBSD: Makefile,v 1.99 2026/10/22 16:33:20 adam Exp $
-DISTNAME= coverage-7.16.2
+DISTNAME= coverage-7.17.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/coverage/}
Index: pkgsrc/devel/py-coverage/distinfo
diff -u pkgsrc/devel/py-coverage/distinfo:1.83 pkgsrc/devel/py-coverage/distinfo:1.84
--- pkgsrc/devel/py-coverage/distinfo:1.83 Sat Oct 3 09:12:43 2026
+++ pkgsrc/devel/py-coverage/distinfo Thu Oct 22 16:33:20 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.83 2026/10/03 09:12:43 adam Exp $
+$NetBSD: distinfo,v 1.84 2026/10/22 16:33:20 adam Exp $
-BLAKE2s (coverage-7.16.2.tar.gz) = 905e38c5e01c4c1df5dcb7934ae1d017a9a7775abb2571805b4a2dfd051e8b36
-SHA512 (coverage-7.16.2.tar.gz) = 0800342b41ca17b3fb681d9181235790be18cf011158c4f67a89effdbd927fbe0c29dc79569aa2d668a8ad39141f33d380cd79bf02e393853089df2eccf6e7d5
-Size (coverage-7.16.2.tar.gz) = 971999 bytes
+BLAKE2s (coverage-7.17.0.tar.gz) = 0a0870422f773ab742db3f57ca967dbd3c2fd885e65ac65d1441e714aef02b2b
+SHA512 (coverage-7.17.0.tar.gz) = 4afd80d4a368c9800fb2f83a530d4a08f87c72053030a793e6c003689f6c19b1d44ed949995dd6a92ad9fae985c37e74e4e64a324dd4f5f62ba0fc15a88b6991
+Size (coverage-7.17.0.tar.gz) = 991021 bytes
Home |
Main Index |
Thread Index |
Old Index