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:           Sat Aug  9 05:57:36 UTC 2025

Modified Files:
        pkgsrc/devel/py-coverage: Makefile PLIST distinfo

Log Message:
py-coverage: updated to 7.10.2

Version 7.10.2 — 2025-08-03

- Fix: some code with NOP bytecodes could report missing branches that are
  actually executed. This is now fixed, closing `issue 1999`_. Python 3.9
  still shows the problem.

Version 7.10.1 — 2025-07-27

- Fix: the exclusion for ``if TYPE_CHECKING:`` was wrong: it marked the branch
  as partial, but it should have been a line exclusion so the entire clause
  would be excluded. Improves `issue 831`_.

- Fix: changed where .pth files are written for ``patch = subprocess``, closing
  `issue 2006`_.

Version 7.10.0 — 2025-07-24

- A new configuration option: ":ref:`config_run_patch`" specifies named patches
  to work around some limitations in coverage measurement.  These patches are
  available:

  - ``patch = _exit`` lets coverage save its data even when :func:`os._exit()
    <python:os._exit>` is used to abruptly end the process.  This closes
    long-standing `issue 310`_ as well as its duplicates: `issue 312`_, `issue
    1673`_, `issue 1845`_, and `issue 1941`_.

  - ``patch = subprocess`` measures coverage in Python subprocesses created
    with :mod:`subprocess`, :func:`os.system`, or one of the :func:`execv
    <python:os.execl>` or :func:`spawnv <python:os.spawnl>` family of
    functions. Closes old `issue 367`_ and duplicate `issue 378`_.

  - ``patch = execv`` adjusts the :func:`execv <python:os.execl>` family of
    functions to save coverage data before ending the current program and
    starting the next. Not available on Windows. Closes `issue 43`_ after 15
    years!

- The HTML report now dimly colors subsequent lines in multi-line statements.
  They used to have no color.  This gives a better indication of the amount of
  code missing in the report.  Closes `issue 1308`_.

- Two new exclusion patterns are part of the defaults: ``...`` is automatically
  excluded as a line and ``if TYPE_CHECKING:`` is excluded as a branch.  Closes
  `issue 831`_.

- 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.  This makes it possible to save data from within long-running
  processes.  Thanks, `Arkady Gilinsky <pull 1998_>`_.

- A new configuration option: ":ref:`config_report_partial_also`" is a list of
  regexes to add as pragmas for partial branches.  This parallels the
  ":ref:`config_report_exclude_also`" setting for adding line exclusion
  patterns.

- A few file path configuration settings didn't allow for tilde expansion:
  :ref:`config_json_output`, :ref:`config_lcov_output` and
  :ref:`config_run_debug_file`.  This is now fixed.

- Wheels are included for 3.14 now that 3.14 rc1 is available.

- We no longer ship a PyPy-specific wheel. PyPy will install the pure-Python
  wheel.  Closes `issue 2001`_.

- In the very unusual situation of not having a current frame, coverage no
  longer crashes when using the sysmon core, fixing `issue 2005`_.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 pkgsrc/devel/py-coverage/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/py-coverage/PLIST
cvs rdiff -u -r1.59 -r1.60 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.73 pkgsrc/devel/py-coverage/Makefile:1.74
--- pkgsrc/devel/py-coverage/Makefile:1.73      Wed Jul  2 12:48:21 2025
+++ pkgsrc/devel/py-coverage/Makefile   Sat Aug  9 05:57:36 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.73 2025/07/02 12:48:21 adam Exp $
+# $NetBSD: Makefile,v 1.74 2025/08/09 05:57:36 adam Exp $
 
-DISTNAME=      coverage-7.9.1
+DISTNAME=      coverage-7.10.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/coverage/}

Index: pkgsrc/devel/py-coverage/PLIST
diff -u pkgsrc/devel/py-coverage/PLIST:1.22 pkgsrc/devel/py-coverage/PLIST:1.23
--- pkgsrc/devel/py-coverage/PLIST:1.22 Sat Apr 12 09:56:23 2025
+++ pkgsrc/devel/py-coverage/PLIST      Sat Aug  9 05:57:36 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.22 2025/04/12 09:56:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.23 2025/08/09 05:57:36 adam Exp $
 bin/coverage-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -88,6 +88,9 @@ ${PYSITELIB}/coverage/numbits.pyo
 ${PYSITELIB}/coverage/parser.py
 ${PYSITELIB}/coverage/parser.pyc
 ${PYSITELIB}/coverage/parser.pyo
+${PYSITELIB}/coverage/patch.py
+${PYSITELIB}/coverage/patch.pyc
+${PYSITELIB}/coverage/patch.pyo
 ${PYSITELIB}/coverage/phystokens.py
 ${PYSITELIB}/coverage/phystokens.pyc
 ${PYSITELIB}/coverage/phystokens.pyo

Index: pkgsrc/devel/py-coverage/distinfo
diff -u pkgsrc/devel/py-coverage/distinfo:1.59 pkgsrc/devel/py-coverage/distinfo:1.60
--- pkgsrc/devel/py-coverage/distinfo:1.59      Wed Jul  2 12:48:21 2025
+++ pkgsrc/devel/py-coverage/distinfo   Sat Aug  9 05:57:36 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.59 2025/07/02 12:48:21 adam Exp $
+$NetBSD: distinfo,v 1.60 2025/08/09 05:57:36 adam Exp $
 
-BLAKE2s (coverage-7.9.1.tar.gz) = 3b7e3ad048b4d237ed17fc38e59ac1e759229c6175a188641ed1e7e1203eda4d
-SHA512 (coverage-7.9.1.tar.gz) = 0bccbf802cdbd7d4df7c88cd7573466b024f7fb4cbf41fc5166a3e2dd70cd107caad01529971eb061cd571faadb342de057d0929f02b3b3e513666c052ecf591
-Size (coverage-7.9.1.tar.gz) = 813650 bytes
+BLAKE2s (coverage-7.10.2.tar.gz) = e89ebd138398f26999def6a1c2821908b4d743c64cc454982611982ba941631d
+SHA512 (coverage-7.10.2.tar.gz) = 5faafc9fbcbd539741f4d3e68a3a033ee3109aa42958f12f5e33cc2f2c0eadfe4c729f23225804d38a1dfadde5d84a9b5c76970a35d3dbe852a94c74d618f388
+Size (coverage-7.10.2.tar.gz) = 820754 bytes



Home | Main Index | Thread Index | Old Index