diff --git a/coverage-7.2.5.tar.gz b/coverage-7.2.5.tar.gz deleted file mode 100644 index 3614d78..0000000 --- a/coverage-7.2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f99ef080288f09ffc687423b8d60978cf3a465d3f404a18d1a05474bd8575a47 -size 759465 diff --git a/coverage-7.2.7.tar.gz b/coverage-7.2.7.tar.gz new file mode 100644 index 0000000..b54ac75 --- /dev/null +++ b/coverage-7.2.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59 +size 762575 diff --git a/fix-tests.patch b/fix-tests.patch deleted file mode 100644 index c85b5c0..0000000 --- a/fix-tests.patch +++ /dev/null @@ -1,20 +0,0 @@ -Index: coverage-7.2.5/tests/test_concurrency.py -=================================================================== ---- coverage-7.2.5.orig/tests/test_concurrency.py -+++ coverage-7.2.5/tests/test_concurrency.py -@@ -768,10 +768,11 @@ class SigtermTest(CoverageTest): - sigterm = true - """) - out = self.run_command("coverage run handler.py") -- if env.LINUX: -- assert out == "START\nSIGTERM\nTerminated\n" -- else: -- assert out == "START\nSIGTERM\n" -+ out_lines = out.splitlines() -+ assert len(out_lines) in [2, 3] -+ assert out_lines[:2] == ["START", "SIGTERM"] -+ if len(out_lines) == 3: -+ assert out_lines[2] == "Terminated" - out = self.run_command("coverage report -m") - expected = "handler.py 5 1 80% 6" - assert self.squeezed_lines(out)[2] == expected diff --git a/python-coverage.changes b/python-coverage.changes index d694a79..b818cfc 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Thu Aug 10 22:00:16 UTC 2023 - Arun Persaud + +- specfile: + * removed fix-tests.patch, included upstream + +- update to version 7.2.7: + * Fix: reverted a change from 6.4.3 that helped Cython, but also + increased the size of data files when using dynamic contexts, as + described in the now-fixed issue 1586. The problem is now avoided + due to a recent change (issue 1538). Thanks to Anders Kaseorg and + David Szotten for persisting with problem reports and detailed + diagnoses. + * Wheels are now provided for CPython 3.12. + +- changes from version 7.2.6: + * Fix: the lcov command could raise an IndexError exception if a + file is translated to Python but then executed under its own + name. Jinja2 does this when rendering templates. Fixes issue 1553. + * Python 3.12 beta 1 now inlines comprehensions. Previously they + were compiled as invisible functions and coverage.py would warn + you if they weren’t completely executed. This no longer happens + under Python 3.12. + * Fix: the coverage debug sys command includes some environment + variables in its output. This could have included sensitive + data. Those values are now hidden with asterisks, closing issue + 1628. + ------------------------------------------------------------------- Wed May 10 08:06:33 UTC 2023 - Daniel Garcia diff --git a/python-coverage.spec b/python-coverage.spec index 1ff8c85..fc9bb4a 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -16,16 +16,13 @@ # -%{?sle15_python_module_pythons} Name: python-coverage -Version: 7.2.5 +Version: 7.2.7 Release: 0 Summary: Code coverage measurement for Python License: Apache-2.0 URL: https://github.com/nedbat/coveragepy Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-tests.patch -- gh#nedbat/coveragepy@3fdda7d017ff -Patch0: fix-tests.patch BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} @@ -37,6 +34,7 @@ Requires(post): update-alternatives Requires(postun):update-alternatives # coverage[toml] Recommends: python-tomli +%{?sle15_python_module_pythons} # SECTION test requirements BuildRequires: %{python_module flaky} BuildRequires: %{python_module hypothesis >= 6}