From d7bbc2966e93841c71e8d2a04c2b8ea635d8da23 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 21:14:15 +0200 Subject: [PATCH 1/5] Bootstrap for Python 3.11 --- python-pytest-cov.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index dfe22f0..c4dade9 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,3 +1,4 @@ +%global _without_tests 1 %global srcname pytest-cov %global forgeurl https://github.com/pytest-dev/%{srcname} From 183e277753879b85c15fac222903b1a5fbf1b45e Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 14 Jun 2022 12:08:47 +0200 Subject: [PATCH 2/5] Rebuilt for Python 3.11 --- python-pytest-cov.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index c4dade9..dfe22f0 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,4 +1,3 @@ -%global _without_tests 1 %global srcname pytest-cov %global forgeurl https://github.com/pytest-dev/%{srcname} From 7a8b2ea3e36932ca5ebf31d6c3cc4171a716918a Mon Sep 17 00:00:00 2001 From: chedi toueiti Date: Wed, 13 Jul 2022 15:45:08 +0100 Subject: [PATCH 3/5] minor formating update --- python-pytest-cov.spec | 58 ++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index dfe22f0..0275f81 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,26 +1,7 @@ -%global srcname pytest-cov +%global srcname pytest-cov +%global slugname pytest_cov %global forgeurl https://github.com/pytest-dev/%{srcname} -# During python mass rebuild we need to build python-pytest-cov without tests because some dependencies are not yet available -%bcond_without tests - -Name: python-%{srcname} -Version: 3.0.0 -%forgemeta -Release: %autorelease -Summary: Coverage plugin for pytest - -License: MIT -URL: %{forgeurl} -Source0: %{forgesource} -# This fix adjusts the coverage test strings to work with 6.2, but they also work with older coverage versions as well. -Patch0: pytest-cov-3.0.0-coverage-6.2.patch - -BuildArch: noarch - -BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros - %global common_description %{expand: This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: @@ -34,17 +15,37 @@ plugin does some extras: pytest). All features offered by the coverage package should work, either through -pytest-cov’s command line options or through coverage’s config file.} +pytest-cov’s command line options or through coverage’s config file. +} -%description %{common_description} +# During python mass rebuild we need to build python-pytest-cov without +# tests because some dependencies are not yet available +%bcond_without tests + +Name: python-%{srcname} +Version: 3.0.0 +%forgemeta +Release: %autorelease +Summary: Coverage plugin for pytest +License: MIT +URL: %{forgeurl} +Source: %{forgesource} +BuildArch: noarch + +# This fix adjusts the coverage test strings to work with 6.2, +# but they also work with older coverage versions as well. +Patch: pytest-cov-3.0.0-coverage-6.2.patch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +%description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{common_description} - %prep %forgeautosetup -p1 # The “hunter” testing dependency (https://github.com/ionelmc/python-hunter) is @@ -54,15 +55,12 @@ sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x testing} - %build %pyproject_wheel - %install %pyproject_install -%pyproject_save_files pytest_cov - +%pyproject_save_files %{slugname} %if %{with tests} %check @@ -79,12 +77,10 @@ EOF %pytest -k "${k}" %endif - %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE -%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst +%doc *.rst %{python3_sitelib}/%{srcname}.pth - %changelog %autochangelog From e9c83360fbeede41cadfe09a7a5af43feb4ebae7 Mon Sep 17 00:00:00 2001 From: chedi toueiti Date: Thu, 29 Sep 2022 02:34:40 +0100 Subject: [PATCH 5/5] Update to version 4.0.0 (#2130722) --- .gitignore | 1 + python-pytest-cov.spec | 8 +------- sources | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 3884007..b783849 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /pytest-cov-2.11.1.tar.gz /pytest-cov-2.12.1.tar.gz /pytest-cov-3.0.0.tar.gz +/pytest-cov-4.0.0.tar.gz diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 0275f81..003942e 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -23,7 +23,7 @@ pytest-cov’s command line options or through coverage’s config file. %bcond_without tests Name: python-%{srcname} -Version: 3.0.0 +Version: 4.0.0 %forgemeta Release: %autorelease Summary: Coverage plugin for pytest @@ -31,11 +31,6 @@ License: MIT URL: %{forgeurl} Source: %{forgesource} BuildArch: noarch - -# This fix adjusts the coverage test strings to work with 6.2, -# but they also work with older coverage versions as well. -Patch: pytest-cov-3.0.0-coverage-6.2.patch - BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros @@ -43,7 +38,6 @@ BuildRequires: pyproject-rpm-macros %package -n python3-%{srcname} Summary: %{summary} - %description -n python3-%{srcname} %{common_description} %prep diff --git a/sources b/sources index 0677d45..d8cb43f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-cov-3.0.0.tar.gz) = 47700d477633bf810b4e3609cfb05314800b995b7b06245681b0905cf2a44f7cd1c4dc137d3dfed6fdca210c3d516fc31e3de23f0d8d5514ef1c437706a9466c +SHA512 (pytest-cov-4.0.0.tar.gz) = bbc2ce3c6e6541dad3122a2af3cf33456fcfdeebd9ad31fe216b77f1ac2f7abf1ed1ed583f186bea88b8a9cf754500e929263eb8d635fd55e4f3615ed107b49c