pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-gcovr



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Feb 12 13:08:06 UTC 2025

Modified Files:
        pkgsrc/devel/py-gcovr: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/py-gcovr: ALTERNATIVES

Log Message:
py-gcovr: updated to 8.3

8.3

Known bugs:

Breaking changes:

Replace setup.py with hatchling. To install from source at least version 21.3 of pip is needed.
Drop support for Python 3.8.

New features and notable changes:

Add condition coverage to text summary report.
Add --include to search files in search paths which should be added to report.
Add option to generate LCOV format produced by version 1.x of LCOV tool.
Extend logging for data merge errors with info about the data sources.
Add condition coverage merge mode option --merge-mode-conditions
Add --gcov-suspicious-hits-threshold to configure the value for detecting suspicious hits in GCOV files.
Renamed JSON element destination_blockno to destination_block_id.
Add --html-block-ids to show the block ids of the lines and branches in HTML report.

Bug fixes and small improvements:

Fixed an error handling bug throwing a TypeError exception on a gcov merge assertion failure
instead of reporting the error and (if requested by the user) continuing execution.
Check format version of external generated gcov JSON files.
Fix crash on Windows when trying to fix the case of the files.
Fix LCOV report. Excluded lines where added with a count of 0.
Fix line exclusion not clearing all child coverage data.
Fix summary stats in JaCoCo report.
Fix path issue when reading/writing Coveralls report.
Fix issue with negative counters in GCOV JSON export.

Documentation:

Update documentation for developing with Docker.

Internal changes:

Add MacOs 15 and clang-16 to the GitHub test workflow.
Fix sporadic timestamp mismatch in development build package.
Replace black and flake8 with ruff and move configuration of pytest to pyproject.toml.
Add pylint for testing code.
Align variable names across the files.
Rework exclusion handling to keep information about excluded coverage.
Add mypy (using strict configuration) for testing code.
Add a container class for the coverage data.
Replace setup.py with hatchling.
Move gcovr to src directory.
The main routine doesn't call sys.exit on it's own, we always return the exit code.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-gcovr/ALTERNATIVES
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-gcovr/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-gcovr/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-gcovr/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-gcovr/Makefile
diff -u pkgsrc/devel/py-gcovr/Makefile:1.5 pkgsrc/devel/py-gcovr/Makefile:1.6
--- pkgsrc/devel/py-gcovr/Makefile:1.5  Tue May  2 17:16:26 2023
+++ pkgsrc/devel/py-gcovr/Makefile      Wed Feb 12 13:08:06 2025
@@ -1,21 +1,34 @@
-# $NetBSD: Makefile,v 1.5 2023/05/02 17:16:26 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2025/02/12 13:08:06 adam Exp $
 
-DISTNAME=      gcovr-4.1
+DISTNAME=      gcovr-8.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   4
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=g/gcovr/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://pypi.org/project/gcovr/
+HOMEPAGE=      https://github.com/gcovr/gcovr
 COMMENT=       Generate GCC code coverage reports
 LICENSE=       modified-bsd
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=24.1.0:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>=0.4.0:../../devel/py-hatch-vcs
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.26.1:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-colorlog-[0-9]*:../../devel/py-colorlog
 DEPENDS+=      ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
+DEPENDS+=      ${PYPKGPREFIX}-pygments>=2.13.0:../../textproc/py-pygments
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout>0:../../devel/py-test-timeout
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/pyversion.mk"
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+.endif
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} gcovr gcovr-${PYVERSSUFFIX} || ${TRUE}
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
-USE_PKG_RESOURCES=     yes
-
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-gcovr/PLIST
diff -u pkgsrc/devel/py-gcovr/PLIST:1.1 pkgsrc/devel/py-gcovr/PLIST:1.2
--- pkgsrc/devel/py-gcovr/PLIST:1.1     Tue Jun 11 11:34:39 2019
+++ pkgsrc/devel/py-gcovr/PLIST Wed Feb 12 13:08:06 2025
@@ -1,44 +1,190 @@
-@comment $NetBSD: PLIST,v 1.1 2019/06/11 11:34:39 markd Exp $
-bin/gcovr
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2025/02/12 13:08:06 adam Exp $
+bin/gcovr-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.txt
 ${PYSITELIB}/gcovr/__init__.py
-${PYSITELIB}/gcovr/__main__.py
-${PYSITELIB}/gcovr/__init__.pyo
 ${PYSITELIB}/gcovr/__init__.pyc
-${PYSITELIB}/gcovr/__main__.pyo
+${PYSITELIB}/gcovr/__init__.pyo
+${PYSITELIB}/gcovr/__main__.py
 ${PYSITELIB}/gcovr/__main__.pyc
-${PYSITELIB}/gcovr/cobertura_xml_generator.pyo
-${PYSITELIB}/gcovr/cobertura_xml_generator.pyc
-${PYSITELIB}/gcovr/coverage.pyo
-${PYSITELIB}/gcovr/coverage.pyc
-${PYSITELIB}/gcovr/gcov.pyo
-${PYSITELIB}/gcovr/gcov.pyc
-${PYSITELIB}/gcovr/html_generator.pyo
-${PYSITELIB}/gcovr/html_generator.pyc
-${PYSITELIB}/gcovr/summary_generator.pyo
-${PYSITELIB}/gcovr/summary_generator.pyc
-${PYSITELIB}/gcovr/txt_generator.pyo
-${PYSITELIB}/gcovr/txt_generator.pyc
-${PYSITELIB}/gcovr/utils.pyo
-${PYSITELIB}/gcovr/utils.pyc
-${PYSITELIB}/gcovr/version.pyo
-${PYSITELIB}/gcovr/version.pyc
-${PYSITELIB}/gcovr/workers.pyo
-${PYSITELIB}/gcovr/workers.pyc
-${PYSITELIB}/gcovr/cobertura_xml_generator.py
+${PYSITELIB}/gcovr/__main__.pyo
+${PYSITELIB}/gcovr/configuration.py
+${PYSITELIB}/gcovr/configuration.pyc
+${PYSITELIB}/gcovr/configuration.pyo
 ${PYSITELIB}/gcovr/coverage.py
-${PYSITELIB}/gcovr/gcov.py
-${PYSITELIB}/gcovr/html_generator.py
-${PYSITELIB}/gcovr/summary_generator.py
-${PYSITELIB}/gcovr/templates/root_page.html
-${PYSITELIB}/gcovr/templates/source_page.html
-${PYSITELIB}/gcovr/templates/style.css
-${PYSITELIB}/gcovr/txt_generator.py
+${PYSITELIB}/gcovr/coverage.pyc
+${PYSITELIB}/gcovr/coverage.pyo
+${PYSITELIB}/gcovr/decision_analysis.py
+${PYSITELIB}/gcovr/decision_analysis.pyc
+${PYSITELIB}/gcovr/decision_analysis.pyo
+${PYSITELIB}/gcovr/exclusions/__init__.py
+${PYSITELIB}/gcovr/exclusions/__init__.pyc
+${PYSITELIB}/gcovr/exclusions/__init__.pyo
+${PYSITELIB}/gcovr/exclusions/markers.py
+${PYSITELIB}/gcovr/exclusions/markers.pyc
+${PYSITELIB}/gcovr/exclusions/markers.pyo
+${PYSITELIB}/gcovr/exclusions/noncode.py
+${PYSITELIB}/gcovr/exclusions/noncode.pyc
+${PYSITELIB}/gcovr/exclusions/noncode.pyo
+${PYSITELIB}/gcovr/exclusions/utils.py
+${PYSITELIB}/gcovr/exclusions/utils.pyc
+${PYSITELIB}/gcovr/exclusions/utils.pyo
+${PYSITELIB}/gcovr/filter.py
+${PYSITELIB}/gcovr/filter.pyc
+${PYSITELIB}/gcovr/filter.pyo
+${PYSITELIB}/gcovr/formats/__init__.py
+${PYSITELIB}/gcovr/formats/__init__.pyc
+${PYSITELIB}/gcovr/formats/__init__.pyo
+${PYSITELIB}/gcovr/formats/base.py
+${PYSITELIB}/gcovr/formats/base.pyc
+${PYSITELIB}/gcovr/formats/base.pyo
+${PYSITELIB}/gcovr/formats/clover/__init__.py
+${PYSITELIB}/gcovr/formats/clover/__init__.pyc
+${PYSITELIB}/gcovr/formats/clover/__init__.pyo
+${PYSITELIB}/gcovr/formats/clover/write.py
+${PYSITELIB}/gcovr/formats/clover/write.pyc
+${PYSITELIB}/gcovr/formats/clover/write.pyo
+${PYSITELIB}/gcovr/formats/cobertura/__init__.py
+${PYSITELIB}/gcovr/formats/cobertura/__init__.pyc
+${PYSITELIB}/gcovr/formats/cobertura/__init__.pyo
+${PYSITELIB}/gcovr/formats/cobertura/read.py
+${PYSITELIB}/gcovr/formats/cobertura/read.pyc
+${PYSITELIB}/gcovr/formats/cobertura/read.pyo
+${PYSITELIB}/gcovr/formats/cobertura/write.py
+${PYSITELIB}/gcovr/formats/cobertura/write.pyc
+${PYSITELIB}/gcovr/formats/cobertura/write.pyo
+${PYSITELIB}/gcovr/formats/coveralls/__init__.py
+${PYSITELIB}/gcovr/formats/coveralls/__init__.pyc
+${PYSITELIB}/gcovr/formats/coveralls/__init__.pyo
+${PYSITELIB}/gcovr/formats/coveralls/write.py
+${PYSITELIB}/gcovr/formats/coveralls/write.pyc
+${PYSITELIB}/gcovr/formats/coveralls/write.pyo
+${PYSITELIB}/gcovr/formats/csv/__init__.py
+${PYSITELIB}/gcovr/formats/csv/__init__.pyc
+${PYSITELIB}/gcovr/formats/csv/__init__.pyo
+${PYSITELIB}/gcovr/formats/csv/write.py
+${PYSITELIB}/gcovr/formats/csv/write.pyc
+${PYSITELIB}/gcovr/formats/csv/write.pyo
+${PYSITELIB}/gcovr/formats/gcov/__init__.py
+${PYSITELIB}/gcovr/formats/gcov/__init__.pyc
+${PYSITELIB}/gcovr/formats/gcov/__init__.pyo
+${PYSITELIB}/gcovr/formats/gcov/parser/__init__.py
+${PYSITELIB}/gcovr/formats/gcov/parser/__init__.pyc
+${PYSITELIB}/gcovr/formats/gcov/parser/__init__.pyo
+${PYSITELIB}/gcovr/formats/gcov/parser/common.py
+${PYSITELIB}/gcovr/formats/gcov/parser/common.pyc
+${PYSITELIB}/gcovr/formats/gcov/parser/common.pyo
+${PYSITELIB}/gcovr/formats/gcov/parser/json.py
+${PYSITELIB}/gcovr/formats/gcov/parser/json.pyc
+${PYSITELIB}/gcovr/formats/gcov/parser/json.pyo
+${PYSITELIB}/gcovr/formats/gcov/parser/text.py
+${PYSITELIB}/gcovr/formats/gcov/parser/text.pyc
+${PYSITELIB}/gcovr/formats/gcov/parser/text.pyo
+${PYSITELIB}/gcovr/formats/gcov/read.py
+${PYSITELIB}/gcovr/formats/gcov/read.pyc
+${PYSITELIB}/gcovr/formats/gcov/read.pyo
+${PYSITELIB}/gcovr/formats/gcov/workers.py
+${PYSITELIB}/gcovr/formats/gcov/workers.pyc
+${PYSITELIB}/gcovr/formats/gcov/workers.pyo
+${PYSITELIB}/gcovr/formats/html/__init__.py
+${PYSITELIB}/gcovr/formats/html/__init__.pyc
+${PYSITELIB}/gcovr/formats/html/__init__.pyo
+${PYSITELIB}/gcovr/formats/html/default/base.html
+${PYSITELIB}/gcovr/formats/html/default/directory_page.content.html
+${PYSITELIB}/gcovr/formats/html/default/directory_page.html
+${PYSITELIB}/gcovr/formats/html/default/directory_page.navigation.html
+${PYSITELIB}/gcovr/formats/html/default/directory_page.summary.html
+${PYSITELIB}/gcovr/formats/html/default/functions_page.content.html
+${PYSITELIB}/gcovr/formats/html/default/functions_page.html
+${PYSITELIB}/gcovr/formats/html/default/functions_page.summary.html
+${PYSITELIB}/gcovr/formats/html/default/pygments.blue
+${PYSITELIB}/gcovr/formats/html/default/pygments.green
+${PYSITELIB}/gcovr/formats/html/default/single_page.html
+${PYSITELIB}/gcovr/formats/html/default/source_page.content.html
+${PYSITELIB}/gcovr/formats/html/default/source_page.html
+${PYSITELIB}/gcovr/formats/html/default/source_page.navigation.html
+${PYSITELIB}/gcovr/formats/html/default/source_page.summary.html
+${PYSITELIB}/gcovr/formats/html/default/style.css
+${PYSITELIB}/gcovr/formats/html/default/style.details.css
+${PYSITELIB}/gcovr/formats/html/default/style.filelist.css
+${PYSITELIB}/gcovr/formats/html/default/style.meter.css
+${PYSITELIB}/gcovr/formats/html/default/style.summary.css
+${PYSITELIB}/gcovr/formats/html/github/base.html
+${PYSITELIB}/gcovr/formats/html/github/directory_page.content.html
+${PYSITELIB}/gcovr/formats/html/github/directory_page.html
+${PYSITELIB}/gcovr/formats/html/github/directory_page.navigation.html
+${PYSITELIB}/gcovr/formats/html/github/directory_page.summary.html
+${PYSITELIB}/gcovr/formats/html/github/functions_page.content.html
+${PYSITELIB}/gcovr/formats/html/github/functions_page.html
+${PYSITELIB}/gcovr/formats/html/github/functions_page.summary.html
+${PYSITELIB}/gcovr/formats/html/github/primer.css
+${PYSITELIB}/gcovr/formats/html/github/pygments.blue
+${PYSITELIB}/gcovr/formats/html/github/pygments.dark-blue
+${PYSITELIB}/gcovr/formats/html/github/pygments.dark-green
+${PYSITELIB}/gcovr/formats/html/github/pygments.green
+${PYSITELIB}/gcovr/formats/html/github/single_page.html
+${PYSITELIB}/gcovr/formats/html/github/source_page.content.html
+${PYSITELIB}/gcovr/formats/html/github/source_page.html
+${PYSITELIB}/gcovr/formats/html/github/source_page.navigation.html
+${PYSITELIB}/gcovr/formats/html/github/source_page.summary.html
+${PYSITELIB}/gcovr/formats/html/github/style.css
+${PYSITELIB}/gcovr/formats/html/write.py
+${PYSITELIB}/gcovr/formats/html/write.pyc
+${PYSITELIB}/gcovr/formats/html/write.pyo
+${PYSITELIB}/gcovr/formats/jacoco/__init__.py
+${PYSITELIB}/gcovr/formats/jacoco/__init__.pyc
+${PYSITELIB}/gcovr/formats/jacoco/__init__.pyo
+${PYSITELIB}/gcovr/formats/jacoco/write.py
+${PYSITELIB}/gcovr/formats/jacoco/write.pyc
+${PYSITELIB}/gcovr/formats/jacoco/write.pyo
+${PYSITELIB}/gcovr/formats/json/__init__.py
+${PYSITELIB}/gcovr/formats/json/__init__.pyc
+${PYSITELIB}/gcovr/formats/json/__init__.pyo
+${PYSITELIB}/gcovr/formats/json/read.py
+${PYSITELIB}/gcovr/formats/json/read.pyc
+${PYSITELIB}/gcovr/formats/json/read.pyo
+${PYSITELIB}/gcovr/formats/json/versions.py
+${PYSITELIB}/gcovr/formats/json/versions.pyc
+${PYSITELIB}/gcovr/formats/json/versions.pyo
+${PYSITELIB}/gcovr/formats/json/write.py
+${PYSITELIB}/gcovr/formats/json/write.pyc
+${PYSITELIB}/gcovr/formats/json/write.pyo
+${PYSITELIB}/gcovr/formats/lcov/__init__.py
+${PYSITELIB}/gcovr/formats/lcov/__init__.pyc
+${PYSITELIB}/gcovr/formats/lcov/__init__.pyo
+${PYSITELIB}/gcovr/formats/lcov/write.py
+${PYSITELIB}/gcovr/formats/lcov/write.pyc
+${PYSITELIB}/gcovr/formats/lcov/write.pyo
+${PYSITELIB}/gcovr/formats/sonarqube/__init__.py
+${PYSITELIB}/gcovr/formats/sonarqube/__init__.pyc
+${PYSITELIB}/gcovr/formats/sonarqube/__init__.pyo
+${PYSITELIB}/gcovr/formats/sonarqube/write.py
+${PYSITELIB}/gcovr/formats/sonarqube/write.pyc
+${PYSITELIB}/gcovr/formats/sonarqube/write.pyo
+${PYSITELIB}/gcovr/formats/txt/__init__.py
+${PYSITELIB}/gcovr/formats/txt/__init__.pyc
+${PYSITELIB}/gcovr/formats/txt/__init__.pyo
+${PYSITELIB}/gcovr/formats/txt/write.py
+${PYSITELIB}/gcovr/formats/txt/write.pyc
+${PYSITELIB}/gcovr/formats/txt/write.pyo
+${PYSITELIB}/gcovr/logging.py
+${PYSITELIB}/gcovr/logging.pyc
+${PYSITELIB}/gcovr/logging.pyo
+${PYSITELIB}/gcovr/merging.py
+${PYSITELIB}/gcovr/merging.pyc
+${PYSITELIB}/gcovr/merging.pyo
+${PYSITELIB}/gcovr/options.py
+${PYSITELIB}/gcovr/options.pyc
+${PYSITELIB}/gcovr/options.pyo
+${PYSITELIB}/gcovr/timestamps.py
+${PYSITELIB}/gcovr/timestamps.pyc
+${PYSITELIB}/gcovr/timestamps.pyo
 ${PYSITELIB}/gcovr/utils.py
+${PYSITELIB}/gcovr/utils.pyc
+${PYSITELIB}/gcovr/utils.pyo
 ${PYSITELIB}/gcovr/version.py
-${PYSITELIB}/gcovr/workers.py
+${PYSITELIB}/gcovr/version.pyc
+${PYSITELIB}/gcovr/version.pyo

Index: pkgsrc/devel/py-gcovr/distinfo
diff -u pkgsrc/devel/py-gcovr/distinfo:1.3 pkgsrc/devel/py-gcovr/distinfo:1.4
--- pkgsrc/devel/py-gcovr/distinfo:1.3  Tue Oct 26 10:18:30 2021
+++ pkgsrc/devel/py-gcovr/distinfo      Wed Feb 12 13:08:06 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:18:30 nia Exp $
+$NetBSD: distinfo,v 1.4 2025/02/12 13:08:06 adam Exp $
 
-BLAKE2s (gcovr-4.1.tar.gz) = fc9ac0b5c02d4f7d71f9cf5f9d55d6701b45db4c05b806734000d8ef12bc87da
-SHA512 (gcovr-4.1.tar.gz) = 0d8b6a72e2f92d6bde233d7f445cfffe35cb9e175cc117aff87fcf681df992c417d092ce35d336d8544cd2e5d93317bdf6aa2390ce8202d752eaaf706faced54
-Size (gcovr-4.1.tar.gz) = 30020 bytes
+BLAKE2s (gcovr-8.3.tar.gz) = e61cb1971dc1599f141e205301035172a98ecf472bc0e73625132f65d7aab9bc
+SHA512 (gcovr-8.3.tar.gz) = 5e161acf297d977d0e3ba92d37dfb395b39651be968dc7374989935b8dc14a17ba70d001d533dab4a8a2f861e7ee63761cb4378644de33649fb050f7cf291fcb
+Size (gcovr-8.3.tar.gz) = 175323 bytes

Added files:

Index: pkgsrc/devel/py-gcovr/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-gcovr/ALTERNATIVES:1.1
--- /dev/null   Wed Feb 12 13:08:06 2025
+++ pkgsrc/devel/py-gcovr/ALTERNATIVES  Wed Feb 12 13:08:06 2025
@@ -0,0 +1 @@
+bin/gcovr @PREFIX@/bin/gcovr-@PYVERSSUFFIX@



Home | Main Index | Thread Index | Old Index