diff --git a/devel/py-coverage/Makefile b/devel/py-coverage/Makefile index 0acdcd4a3a49..b430e52a598d 100644 --- a/devel/py-coverage/Makefile +++ b/devel/py-coverage/Makefile @@ -1,30 +1,29 @@ PORTNAME= coverage -PORTVERSION= 7.9.2 -PORTREVISION= 1 +PORTVERSION= 7.15.4 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= lwhsu@FreeBSD.org COMMENT= Code coverage measurement for Python WWW= https://coverage.readthedocs.io/ LICENSE= BSD2CLAUSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} -USES= python +USES= python:3.10+ USE_PYTHON= autoplist concurrent pep517 OPTIONS_DEFINE= TOML OPTIONS_DEFAULT=TOML TOML_DESC= Enable pyproject.toml support TOML_RUN_DEPENDS= ${PY_TOMLI} post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/coverage/tracer*.so .include diff --git a/devel/py-coverage/distinfo b/devel/py-coverage/distinfo index 5ff668b9c1c3..d9172b911d13 100644 --- a/devel/py-coverage/distinfo +++ b/devel/py-coverage/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1751629257 -SHA256 (coverage-7.9.2.tar.gz) = 997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b -SIZE (coverage-7.9.2.tar.gz) = 813556 +TIMESTAMP = 1787342044 +SHA256 (coverage-7.15.4.tar.gz) = 0548198fff07ccf4faf469520bce1c2eceb1ce3e62891921138dec10907f9d00 +SIZE (coverage-7.15.4.tar.gz) = 936952 diff --git a/devel/py-coverage/files/patch-setup.py b/devel/py-coverage/files/patch-setup.py index a370f3c0140d..b9496f874ec1 100644 --- a/devel/py-coverage/files/patch-setup.py +++ b/devel/py-coverage/files/patch-setup.py @@ -1,16 +1,34 @@ ---- setup.py.orig 2024-07-31 02:05:53 UTC +--- setup.py.orig 2026-08-21 20:04:07 UTC +++ setup.py -@@ -89,12 +89,9 @@ setup_args = dict( - ], - }, - entry_points={ -- # Install a script as "coverage", and as "coverage3", and as -- # "coverage-3.7" (or whatever). -+ # Install a script as "coverage". +@@ -19,7 +19,12 @@ from setuptools.command.build_ext import build_ext + + from setuptools import Extension, errors, setup + from setuptools.command.build_ext import build_ext +-from setuptools.command.editable_wheel import editable_wheel ++try: ++ from setuptools.command.editable_wheel import editable_wheel ++except ImportError: ++ # setuptools < 64 has no editable_wheel command; editable installs are ++ # unsupported in that case, but regular wheel builds still work. ++ editable_wheel = object + + + def get_version_data() -> dict[str, Any]: +@@ -187,9 +192,6 @@ setup_args = dict( "console_scripts": [ + # Install a script as "coverage". "coverage = coverage.cmdline:main", -- "coverage%d = coverage.cmdline:main" % sys.version_info[:1], -- "coverage-%d.%d = coverage.cmdline:main" % sys.version_info[:2], +- # And as "coverage3", and as "coverage-3.7" (or whatever), but deprecated. +- "coverage%d = coverage.cmdline:main_deprecated" % sys.version_info[:1], +- "coverage-%d.%d = coverage.cmdline:main_deprecated" % sys.version_info[:2], ], }, extras_require={ +@@ -198,7 +200,6 @@ setup_args = dict( + }, + cmdclass={ + "build_ext": ve_build_ext, +- "editable_wheel": EditableWheelWithPth, + }, + # We need to get HTML assets from our htmlfiles directory. + zip_safe=False,