From bbb07140d5024ef15103e67807d03b47bcbd9bc9 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 4 Jan 2023 12:00:14 +0200 Subject: python3-coverage: Upgrade 7.0.1 -> 7.0.3 Upgrade to release 7.0.3: - Fix: when using the [run] relative_files = True setting, a relative [paths] pattern was still being made absolute. This is now fixed. - Fix: if Python doesn't provide tomllib, then TOML configuration files can only be read if coverage.py is installed with the [toml] extra. Coverage.py will raise an error if TOML support is not installed when it sees your settings are in a .toml file. But it didn't understand that [tools.coverage] was a valid section header, so the error wasn't reported if you used that header, and settings were silently ignored. This is now fixed. - Fix: adjusted how decorators are traced on PyPy 7.3.10. - Fix: the coverage lcov report did not properly implement the --fail-under=MIN option. This has been fixed. - Refactor: added many type annotations, including a number of refactorings. This should not affect outward behavior, but they were a bit invasive in some places, so keep your eyes peeled for oddities. - Refactor: removed the vestigial and long untested support for Jython and IronPython. - Fix: when using pytest-cov or pytest-xdist, or perhaps both, the combining step could fail with assert row is not None using 7.0.2. This was due to a race condition that has always been possible and is still possible. In 7.0.1 and before, the error was silently swallowed by the combining code. Now it will produce a message "Couldn't combine data file" and ignore the data file as it used to do before 7.0.2 Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-coverage_7.0.1.bb | 19 ------------------- .../python/python3-coverage_7.0.3.bb | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 19 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-coverage_7.0.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-coverage_7.0.3.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-coverage_7.0.1.bb b/meta-python/recipes-devtools/python/python3-coverage_7.0.1.bb deleted file mode 100644 index caf6ba14f7..0000000000 --- a/meta-python/recipes-devtools/python/python3-coverage_7.0.1.bb +++ /dev/null @@ -1,19 +0,0 @@ -SUMMARY = "Code coverage measurement for Python" -HOMEPAGE = "https://coverage.readthedocs.io" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93" - -SRC_URI[sha256sum] = "a4a574a19eeb67575a5328a5760bbbb737faa685616586a9f9da4281f940109c" - -inherit pypi setuptools3 - -RDEPENDS:${PN} += " \ - ${PYTHON_PN}-sqlite3 \ - ${PYTHON_PN}-core \ - ${PYTHON_PN}-pprint \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-xml \ - ${PYTHON_PN}-crypt \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-io \ -" diff --git a/meta-python/recipes-devtools/python/python3-coverage_7.0.3.bb b/meta-python/recipes-devtools/python/python3-coverage_7.0.3.bb new file mode 100644 index 0000000000..7e9b262d11 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-coverage_7.0.3.bb @@ -0,0 +1,21 @@ +SUMMARY = "Code coverage measurement for Python" +HOMEPAGE = "https://coverage.readthedocs.io" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93" + +SRC_URI[sha256sum] = "d5be4e93acce64f516bf4fd239c0e6118fc913c93fa1a3f52d15bdcc60d97b2d" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-sqlite3 \ + ${PYTHON_PN}-core \ + ${PYTHON_PN}-pprint \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-xml \ + ${PYTHON_PN}-crypt \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-io \ + ${PYTHON_PN}-toml \ + ${PYTHON_PN}-multiprocessing \ +" -- cgit v1.2.3-54-g00ecf