diff --git a/.gitignore b/.gitignore index 0d746c4..9d907cd 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /pytest-cov-2.10.0.tar.gz /pytest-cov-2.10.1.tar.gz /pytest-cov-2.11.1.tar.gz +/pytest-cov-2.12.1.tar.gz diff --git a/0001-fix-for-failing-tests-with-coverage-5.4.patch b/0001-fix-for-failing-tests-with-coverage-5.4.patch deleted file mode 100644 index 239ba15..0000000 --- a/0001-fix-for-failing-tests-with-coverage-5.4.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 92ad6f411167dc05bf54beeb5d9ebc916cc0f6f3 Mon Sep 17 00:00:00 2001 -From: chedi -Date: Fri, 29 Jan 2021 18:48:58 +0100 -Subject: [PATCH] fix for failing tests with coverage 5.4 - ---- - tests/test_pytest_cov.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py -index 3c73050..ff22fef 100644 ---- a/tests/test_pytest_cov.py -+++ b/tests/test_pytest_cov.py -@@ -500,7 +500,7 @@ def test_central_coveragerc(testdir, prop): - ]) - - # single-module coverage report -- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) -+ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) - - assert result.ret == 0 - -@@ -538,7 +538,7 @@ parallel = true - ]) - - # single-module coverage report -- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) -+ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) - - assert result.ret == 0 - -@@ -643,7 +643,7 @@ show_missing = true - ]) - - # single-module coverage report -- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) -+ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) - - assert result.ret == 0 - --- -2.29.2 - diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 3de24a3..0881aa5 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -2,7 +2,7 @@ %global forgeurl https://github.com/pytest-dev/%{srcname} Name: python-%{srcname} -Version: 2.11.1 +Version: 2.12.1 %forgemeta Release: %autorelease Summary: Coverage plugin for pytest @@ -11,8 +11,6 @@ License: MIT URL: %{forgeurl} Source0: %{forgesource} -Patch0: 0001-fix-for-failing-tests-with-coverage-5.4.patch - BuildArch: noarch BuildRequires: python3-devel @@ -43,9 +41,7 @@ Summary: %{summary} %prep -%forgeautosetup -p1 -# We cannot satisfy exact-version pins; loosen them up and work with what we have. -sed -r -i 's/==/>=/g' setup.py +%forgeautosetup # The “hunter” testing dependency (https://github.com/ionelmc/python-hunter) is # not packaged, but it also does not seem to be used. sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py diff --git a/sources b/sources index 46ee2f2..44d96fd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-cov-2.11.1.tar.gz) = 513e89c061e926cfab718adb1a52f573abec6d67635df4ef791dc9a0e6338369c3a0771c9f2a44c5c2a17ab5a5ebc21398b4e3c525dba50724f70eea22a1c9ce +SHA512 (pytest-cov-2.12.1.tar.gz) = a9893c81b7c5829c68b71e086719939c82622788fa471e2ab61f27cfb0efcc2008f09ec586ea06dba99ec1a6bf8789b8e3531c2ea8fa6435d7e45712b5cb9ea4