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 8a87d90..eee196c 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,31 @@ 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: 4.0.0 +%forgemeta +Release: %autorelease +Summary: Coverage plugin for pytest +License: MIT +URL: %{forgeurl} +Source: %{forgesource} +BuildArch: noarch +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 +49,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} @@ -80,12 +72,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 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