From bb42fc3613fa92b0296ca43f29b2a9ebedbe5cbf5808961febd43cc019b2cd45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 10 Nov 2021 13:07:53 +0000 Subject: [PATCH] - drop pytest-cov-pr453-coverage54.patch - update to 3.0.0 * drop support for py2 and python-3.5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=29 --- pytest-cov-2.11.1.tar.gz | 3 --- pytest-cov-3.0.0.tar.gz | 3 +++ pytest-cov-pr453-coverage54.patch | 40 ------------------------------- python-pytest-cov.changes | 7 ++++++ python-pytest-cov.spec | 11 +++++---- 5 files changed, 17 insertions(+), 47 deletions(-) delete mode 100644 pytest-cov-2.11.1.tar.gz create mode 100644 pytest-cov-3.0.0.tar.gz delete mode 100644 pytest-cov-pr453-coverage54.patch diff --git a/pytest-cov-2.11.1.tar.gz b/pytest-cov-2.11.1.tar.gz deleted file mode 100644 index b3375ba..0000000 --- a/pytest-cov-2.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:359952d9d39b9f822d9d29324483e7ba04a3a17dd7d05aa6beb7ea01e359e5f7 -size 59143 diff --git a/pytest-cov-3.0.0.tar.gz b/pytest-cov-3.0.0.tar.gz new file mode 100644 index 0000000..9d3f7eb --- /dev/null +++ b/pytest-cov-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470 +size 61440 diff --git a/pytest-cov-pr453-coverage54.patch b/pytest-cov-pr453-coverage54.patch deleted file mode 100644 index b874290..0000000 --- a/pytest-cov-pr453-coverage54.patch +++ /dev/null @@ -1,40 +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 @@ def test_central_with_path_aliasing(testdir, monkeypatch, opts, 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 - -@@ -643,7 +643,7 @@ def test_show_missing_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 - diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 8720315..a12b6b9 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup + +- drop pytest-cov-pr453-coverage54.patch +- update to 3.0.0 + * drop support for py2 and python-3.5 + ------------------------------------------------------------------- Tue Sep 14 08:45:47 UTC 2021 - Steve Kowalik diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 72947e6..c74addc 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-pytest # # Copyright (c) 2021 SUSE LLC # @@ -25,21 +25,24 @@ %bcond_with test %define psuffix %{nil} %endif +%define skip_python2 1 Name: python-pytest-cov%{psuffix} -Version: 2.11.1 +Version: 3.0.0 Release: 0 Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/schlamar/pytest-cov Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#453 work with coverage 5.4 -Patch0: https://github.com/pytest-dev/pytest-cov/pull/453.patch#/pytest-cov-pr453-coverage54.patch BuildRequires: %{python_module coverage >= 5.2.1} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} %if %{with test} +BuildRequires: %{python_module fields} +BuildRequires: %{python_module hunter} +BuildRequires: %{python_module process-tets} BuildRequires: %{python_module pytest >= 4.6.0} BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module six} BuildRequires: %{python_module virtualenv} %endif BuildRequires: %{python_module setuptools}