%global srcname pytest-cov Name: python-%{srcname} Version: 2.11.1 Release: 6%{?dist} Summary: Coverage plugin for pytest URL: https://pypi.python.org/pypi/%{srcname} License: MIT Source0: https://github.com/pytest-dev/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz Patch0: 0001-fix-for-failing-tests-with-coverage-5.4.patch BuildArch: noarch %global common_description %{expand: This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: • Subprocess support: you can fork or run stuff in a subprocess and will get covered without any fuss. • Xdist support: you can use all of pytest-xdist’s features and still get coverage. • Consistent pytest behavior. If you run coverage run -m pytest you will have slightly different sys.path (CWD will be in it, unlike when running pytest). All features offered by the coverage package should work, either through pytest-cov’s command line options or through coverage’s config file.} %description %{common_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest >= 3.6 BuildRequires: python%{python3_pkgversion}-coverage >= 4.4 # For tests BuildRequires: python%{python3_pkgversion}-fields BuildRequires: python%{python3_pkgversion}-process-tests BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-virtualenv BuildRequires: python%{python3_pkgversion}-pytest-xdist %description -n python%{python3_pkgversion}-%{srcname} %{common_description} %prep %autosetup -p1 -n %{srcname}-%{version} rm -rf *.egg-info %build %py3_build %install %py3_install %check echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py export PYTHONPATH="$(pwd)"/build/lib py.test-%{python3_version} -vv \ -k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess" %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst %{python3_sitelib}/* %changelog * Wed Jul 28 2021 Benjamin A. Beasley - 2.11.1-6 - Drop obsolete macros - Update description and summary from upstream * Fri Jul 23 2021 Fedora Release Engineering - 2.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 02 2021 Python Maint - 2.11.1-4 - Rebuilt for Python 3.10 * Fri Jan 29 2021 Chedi Toueiti - 2.11.1-3 - Fix for failing tests with coverage 5.4 (#1922301) * Wed Jan 27 2021 Fedora Release Engineering - 2.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 20 2021 Chedi Toueiti - 2.11.1-1 - Update to 2.11.1 (#1917248) * Fri Aug 14 2020 Chedi Toueiti - 2.10.1-1 - Update to 2.10.1 (#1868968) * Wed Jul 29 2020 Fedora Release Engineering - 2.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 9 2020 Chedi Toueiti - 2.10.0 - Update to 2.10.0 * Sun May 24 2020 Miro Hrončok - 2.8.1-6 - Rebuilt for Python 3.9 * Mon Mar 2 2020 Chedi Toueiti - 2.8.1-5 - Forcing current pytest-cov version usage during checks * Thu Jan 30 2020 Fedora Release Engineering - 2.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 19 2020 Lumír Balhar - 2.8.1-3 - Unskip tests which are working with the newest coverage * Sun Nov 3 2019 Orion Poplawski - 2.8.1-2 - Drop python 2 for F32+ (bz#1767517) * Sat Oct 5 2019 Orion Poplawski - 2.8.1-1 - Update to 2.8.1 * Fri Oct 4 2019 Orion Poplawski - 2.8.0-1 - Update to 2.8.0 * Thu Oct 03 2019 Miro Hrončok - 2.7.1-6 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 17 2019 Miro Hrončok - 2.7.1-5 - Rebuilt for Python 3.8 * Fri Aug 16 2019 Orion Poplawski - 2.7.1-4 - Enable python dependency generator - Specify minimum pytest requirement in BR * Fri Jul 26 2019 Fedora Release Engineering - 2.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 16 2019 Lumír Balhar - 2.7.1-2 - Skip three tests (multiprocessing_pool) to fix FTBFS with Python 3.8 * Sun May 5 2019 Orion Poplawski - 2.7.1-1 - Update to 2.7.1 * Thu Apr 04 2019 Miro Hrončok - 2.6.1-1 - Update to 2.6.1 for pytest 4 compatibility * Tue Feb 12 2019 Orion Poplawski - 2.6.0-3 - Build with pytest-xdist * Sat Feb 02 2019 Fedora Release Engineering - 2.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 05 2018 Randy Barlow - 2.6.0-1 - Update to 2.6.0. * Sat Jul 14 2018 Fedora Release Engineering - 2.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 16 2018 Miro Hrončok - 2.5.1-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 9 2017 Orion Poplawski - 2.5.1-3 - Ship python2-pytest-cov * Thu Jul 27 2017 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri May 12 2017 Orion Poplawski - 2.5.1-1 - Update to 2.5.1 * Wed May 10 2017 Orion Poplawski - 2.5.0-1 - Update to 2.5.0 * Sat Feb 11 2017 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 2.4.0-2 - Rebuild for Python 3.6 * Mon Oct 10 2016 Orion Poplawski - 2.4.0-1 - Update to 2.4.0 * Tue Jul 19 2016 Fedora Release Engineering - 2.3.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Jul 7 2016 Orion Poplawski - 2.3.0-1 - Update to 2.3.0 * Mon May 23 2016 Orion Poplawski - 2.2.1-1 - Ignore failing tests * Sat Feb 13 2016 Orion Poplawski - 2.2.1-1 - Update to 2.2.1 * Thu Feb 04 2016 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 06 2015 Robert Kuska - 2.2.0-2 - Rebuilt for Python3.5 rebuild - Skip tests for a python3 rebuild as it seems to be env failure * Mon Oct 5 2015 Orion Poplawski - 2.2.0-1 - Update to 2.2.0 * Mon Sep 14 2015 Orion Poplawski - 2.1.0-2 - Modernize spec - Run tests properly, skipping xdist tests for now * Mon Sep 14 2015 Tomas Tomecek - 2.1.0-1 - upstream release 2.1.0 * Thu Jun 18 2015 Fedora Release Engineering - 1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 27 2014 Orion Poplawski - 1.6-2 - Rebuild for Python 3.4 * Tue Feb 25 2014 Orion Poplawski - 1.6-1 - Initial package