diff --git a/coverage-7.3.2.tar.gz b/coverage-7.3.2.tar.gz deleted file mode 100644 index 97ad680..0000000 --- a/coverage-7.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be32ad29341b0170e795ca590e1c07e81fc061cb5b10c74ce7203491484404ef -size 764541 diff --git a/coverage-7.5.1.tar.gz b/coverage-7.5.1.tar.gz new file mode 100644 index 0000000..f565f0d --- /dev/null +++ b/coverage-7.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c +size 784825 diff --git a/python-coverage.changes b/python-coverage.changes index 2040c18..20ef43e 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,64 @@ +------------------------------------------------------------------- +Fri May 10 03:05:12 UTC 2024 - Steve Kowalik + +- Update to 7.5.1: + * Fix: a pragma comment on the continuation lines of a multi-line statement + now excludes the statement and its body, the same as if the pragma is + on the first line. + * Fix: very complex source files could cause a maximum recursion error when + creating an HTML report. + * HTML report improvements: + + Support files (JavaScript and CSS) referenced by the HTML report now have + hashes added to their names to ensure updated files are used instead of + stale cached copies. + + Missing branch coverage explanations that said "the condition was never + false" now read "the condition was always true" because it's easier to + understand. + + Column sort order is remembered better as you move between the index + pages. + * Added initial support for function and class reporting in the HTML report. + * Other HTML report improvements: + + There is now a "hide covered" checkbox to filter out 100% files. + + The index page is always sorted by one of its columns, with clearer + indications of the sorting. + + The "previous file" shortcut key didn't work on the index page, but now + it does. + * The debug output showing which configuration files were tried now shows + absolute paths to help diagnose problems where settings aren't taking + effect, and is renamed from "attempted_config_files" to the more logical + "config_files_attempted." + * Fix: in some cases, even with [run] relative_files=True, a data file + could be created with absolute path names. When combined with other + relative data files, it was random whether the absolute file names would + be made relative or not. If they weren't, then a file would be listed + twice in reports. + * Fix: the last case of a match/case statement had an incorrect message if + the branch was missed. It said the pattern never matched, when actually + the branch is missed if the last case always matched. + * Fix: clicking a line number in the HTML report now positions more + accurately. + * Fix: the report:format setting was defined as a boolean, but should be a + string. + * Fix: in some cases, coverage could fail with a RuntimeError: "Set changed + size during iteration." + * Fix: setting COVERAGE_CORE=sysmon no longer errors on 3.11 and lower. + * Fix: the JSON report now includes an explicit format version number. + * Fix: the change for multi-line signature exclusions in 7.3.3 broke other + forms of nested clauses being excluded properly. + * Fix: in the HTML report, selecting code for copying won't select the line + numbers also. Thanks, `Robert Harris `_. + * Fix: function definitions with multi-line signatures can now be excluded + by matching any of the lines. + * Fix: XML reports could fail with a TypeError if files had numeric + components that were duplicates except for leading zeroes, like file1.py + and file001.py. + * The coverage annotate command used to announce that it would be removed + in a future version. Enough people got in touch to say that they use it, + so it will stay. Don't expect it to keep up with other new features though. +- Set COVERAGE_CORE, so we no longer need to skip the ctrace tests, it will be + handled for us. +- Skip two tests that assert PYTHONPATH is empty, which it can't be. + ------------------------------------------------------------------- Tue Nov 28 08:53:23 UTC 2023 - Dirk Müller diff --git a/python-coverage.spec b/python-coverage.spec index 02d5c50..b13d33a 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -1,7 +1,7 @@ # # spec file for package python-coverage # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-coverage -Version: 7.3.2 +Version: 7.5.1 Release: 0 Summary: Code coverage measurement for Python License: Apache-2.0 @@ -32,7 +32,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives # coverage[toml] Recommends: python-tomli # SECTION test requirements @@ -76,6 +76,8 @@ cp %{python_sitearch}/zzzz-import-failed-hooks.pth build/mysite/ # the tests need the empty leading part for importing local test projects" export PYTHONPATH=":$PWD/build/mysite" +export COVERAGE_CORE="pytrace" + %python_exec -mcoverage debug sys # d:l:p:backports 15.4_py39 does not have python3 @@ -91,14 +93,14 @@ $mypython igor.py zip_mods donttest="test_version" # test_xdist_sys_path_nuttiness_is_fixed - xdist check that we actually fail on purpose donttest+=" or test_xdist_sys_path_nuttiness_is_fixed" -# test_debug_sys_ctracer - requires dep on ctracer -donttest+=" or test_debug_sys_ctracer" # does not find a usable venv donttest+=" or test_venv" # writes in /usr/ donttest+=" or test_process" # requires additional plugins donttest+=" or test_plugins" +# asserts PYTHONPATH is empty, which it can't be +donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit" %pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||: %pytest_arch -n auto --no-flaky-report -k "not ($donttest)"