From 94b44822d50274859c05f4cfb15480c7d262e308 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 4 Mar 2025 15:54:16 +0200 Subject: python3-gcovr: Upgrade 8.2 -> 8.3 Upgrade to release 8.3: - Replace setup.py with hatchling. To install from source at least version 21.3 of pip is needed. - Drop support for Python 3.8. - 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. - 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. License-Update: Update year Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- ...001-pyproject.toml-Support-newer-versions.patch | 30 ++++++++++++++++++++ .../recipes-devtools/python/python3-gcovr_8.2.bb | 23 ---------------- .../recipes-devtools/python/python3-gcovr_8.3.bb | 32 ++++++++++++++++++++++ 3 files changed, 62 insertions(+), 23 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-gcovr/0001-pyproject.toml-Support-newer-versions.patch delete mode 100644 meta-python/recipes-devtools/python/python3-gcovr_8.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-gcovr_8.3.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-gcovr/0001-pyproject.toml-Support-newer-versions.patch b/meta-python/recipes-devtools/python/python3-gcovr/0001-pyproject.toml-Support-newer-versions.patch new file mode 100644 index 0000000000..cf5ddf31cc --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gcovr/0001-pyproject.toml-Support-newer-versions.patch @@ -0,0 +1,30 @@ +From 7963caede294c7615ab0a60900e37790731279cc Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Tue, 4 Mar 2025 13:30:48 +0000 +Subject: [PATCH] pyproject.toml: Support newer versions + +Support newer versions when building through bitbake. + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Leon Anavi +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index e162ba062..89798fa23 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,7 +1,7 @@ + + [build-system] + requires = [ +- "hatchling==1.26.1", ++ "hatchling>=1.26.1", + "hatch-vcs==0.4.0", + "hatch-fancy-pypi-readme==24.1.0" + ] +-- +2.39.5 + diff --git a/meta-python/recipes-devtools/python/python3-gcovr_8.2.bb b/meta-python/recipes-devtools/python/python3-gcovr_8.2.bb deleted file mode 100644 index bbafa36acf..0000000000 --- a/meta-python/recipes-devtools/python/python3-gcovr_8.2.bb +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION = "generate GCC code coverage reports" -HOMEPAGE = "https://gcovr.com" -SECTION = "devel/python" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b307623752f2e1189349885b95b326e5" - -SRC_URI = "git://github.com/gcovr/gcovr.git;branch=main;protocol=https" -SRCREV = "045fb8d51806bd7f9e3df4e4edffa3bb816cf77f" - -S = "${WORKDIR}/git" - -inherit setuptools3 - -RDEPENDS:${PN} += " \ - python3-colorlog \ - python3-jinja2 \ - python3-lxml \ - python3-multiprocessing \ - python3-pygments \ - python3-setuptools \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-gcovr_8.3.bb b/meta-python/recipes-devtools/python/python3-gcovr_8.3.bb new file mode 100644 index 0000000000..a9b29a4458 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gcovr_8.3.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "generate GCC code coverage reports" +HOMEPAGE = "https://gcovr.com" +SECTION = "devel/python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ae27363fce24765bc79a095313a3b002" + +SRC_URI = " \ + git://github.com/gcovr/gcovr.git;branch=main;protocol=https \ + file://0001-pyproject.toml-Support-newer-versions.patch \ +" +SRCREV = "fe536afac4da31e86909191ef31708755ab8cf83" + +S = "${WORKDIR}/git" + +inherit python_hatchling + +DEPENDS += " \ + python3-hatchling-native \ + python3-hatch-vcs-native \ + python3-hatch-fancy-pypi-readme-native \ +" + +RDEPENDS:${PN} += " \ + python3-colorlog \ + python3-jinja2 \ + python3-lxml \ + python3-multiprocessing \ + python3-pygments \ + python3-setuptools \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf