Blame SPECS/python-pytest-cov.spec

c755eb
%global srcname  pytest-cov
c755eb
%global slugname pytest_cov
c755eb
%global forgeurl https://github.com/pytest-dev/%{srcname}
c755eb
c755eb
%global common_description %{expand:
c755eb
This plugin produces coverage reports. Compared to just using coverage run this
c755eb
plugin does some extras:
c755eb
c755eb
  • Subprocess support: you can fork or run stuff in a subprocess and will get
c755eb
    covered without any fuss.
c755eb
  • Xdist support: you can use all of pytest-xdist’s features and still get
c755eb
    coverage.
c755eb
  • Consistent pytest behavior. If you run coverage run -m pytest you will have
c755eb
    slightly different sys.path (CWD will be in it, unlike when running
c755eb
    pytest).
c755eb
c755eb
All features offered by the coverage package should work, either through
c755eb
pytest-cov’s command line options or through coverage’s config file.
c755eb
}
c755eb
c755eb
# During python mass rebuild we need to build python-pytest-cov without
c755eb
# tests because some dependencies are not yet available
c755eb
%bcond_without tests
c755eb
c755eb
Name:           python-%{srcname}
c755eb
Version:        5.0.0
c755eb
%forgemeta
c755eb
Release:        1%{?dist}
c755eb
Summary:        Coverage plugin for pytest
c755eb
License:        MIT
c755eb
URL:            %{forgeurl}
c755eb
Source:         %{forgesource}
c755eb
BuildArch:      noarch
c755eb
BuildRequires:  python3-devel
c755eb
BuildRequires:  pyproject-rpm-macros
c755eb
c755eb
%description %{common_description}
c755eb
c755eb
%package -n python3-%{srcname}
c755eb
Summary: %{summary}
c755eb
%description -n python3-%{srcname} %{common_description}
c755eb
c755eb
%prep
c755eb
%forgeautosetup -p1
c755eb
# The “hunter” testing dependency (https://github.com/ionelmc/python-hunter) is
c755eb
# not packaged, but it also does not seem to be used.
c755eb
sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py
c755eb
c755eb
%generate_buildrequires
c755eb
%pyproject_buildrequires -r %{?with_tests:-x testing}
c755eb
c755eb
%build
c755eb
%pyproject_wheel
c755eb
c755eb
%install
c755eb
%pyproject_install
c755eb
%pyproject_save_files %{slugname}
c755eb
c755eb
%if %{with tests}
c755eb
%check
c755eb
k="$(awk 'NR>1 {pre=" and " } { printf "%snot %s", pre, $0 }' <
c755eb
test_append_coverage_subprocess
c755eb
test_central_subprocess
c755eb
test_cleanup_on_sigterm
c755eb
test_dist_missing_data
c755eb
test_dist_subprocess_collocated
c755eb
test_dist_subprocess_not_collocated
c755eb
test_subprocess_with_path_aliasing
c755eb
EOF
c755eb
)"
c755eb
%pytest -k "${k}"
c755eb
%endif
c755eb
c755eb
%files -n python3-%{srcname} -f %{pyproject_files}
c755eb
%license LICENSE
c755eb
%doc *.rst
c755eb
%{python3_sitelib}/%{srcname}.pth
c755eb
c755eb
%changelog
c755eb
* Sat Oct 26 2024 Orion Poplawski <orion@nwra.com> - 5.0.0-1
c755eb
- Update to 5.0.0
c755eb
c755eb
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-13
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
c755eb
c755eb
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.0.0-12
c755eb
- Rebuilt for Python 3.13
c755eb
c755eb
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.0.0-11
c755eb
- Bootstrap for Python 3.13
c755eb
c755eb
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-10
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c755eb
c755eb
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-9
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c755eb
c755eb
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-8
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c755eb
c755eb
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 4.0.0-7
c755eb
- Rebuilt for Python 3.12
c755eb
c755eb
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.0.0-6
c755eb
- Bootstrap for Python 3.12
c755eb
c755eb
* Fri May 05 2023 Orion Poplawski <orion@nwra.com> - 4.0.0-5
c755eb
- Drop -S git
c755eb
c755eb
* Fri May 05 2023 Orion Poplawski <orion@nwra.com> - 4.0.0-4
c755eb
- Add upstream patch to skip failing test with coverage > 6.4 (Fixes FTBFS
c755eb
  bz#2171685)
c755eb
c755eb
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c755eb
c755eb
* Fri Nov 11 2022 chedi toueiti <chedi.toueiti@gmail.com> - 4.0.0-2
c755eb
- fixing a pytest-xdist failing test due to the deprecation of the boxed
c755eb
  parameter (#2142008)
c755eb
c755eb
* Thu Sep 29 2022 chedi toueiti <chedi.toueiti@gmail.com> - 4.0.0-1
c755eb
- Update to version 4.0.0 (#2130722)
c755eb
c755eb
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-11
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c755eb
c755eb
* Wed Jul 13 2022 chedi toueiti <chedi.toueiti@gmail.com> - 3.0.0-10
c755eb
- minor formating update
c755eb
c755eb
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.0.0-9
c755eb
- Rebuilt for Python 3.11
c755eb
c755eb
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.0-8
c755eb
- Bootstrap for Python 3.11
c755eb
c755eb
* Wed May 25 2022 Orion Poplawski <orion@nwra.com> - 3.0.0-7
c755eb
- Re-enable tests
c755eb
c755eb
* Thu May 19 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.0-6
c755eb
- Add bcond to disable tests
c755eb
c755eb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c755eb
c755eb
* Thu Dec 09 2021 Tom spot Callaway <spot@fedoraproject.org> - 3.0.0-4
c755eb
- Fix issue with test code where it expected too specific of a string, that
c755eb
  string changed slightly with coverage 6.2, fix adjusts string check to be
c755eb
  more permissive and work with both old and new coverage
c755eb
c755eb
* Wed Dec 08 2021 chedi <chedi.toueiti@gmail.com> - 3.0.0-3
c755eb
- bumping release to force f36 rebuild
c755eb
c755eb
* Wed Oct 13 2021 chedi <chedi.toueiti@gmail.com> - 3.0.0-2
c755eb
- reverting to auto generated dependencies
c755eb
c755eb
* Mon Oct 04 2021 chedi <chedi.toueiti@gmail.com> - 3.0.0-1
c755eb
- Update to version 3.0.0 (#2010140)
c755eb
c755eb
* Mon Aug 02 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.12.1-1
c755eb
- Update to 2.12.1 (closes RHBZ#1960609)
c755eb
c755eb
* Wed Jul 28 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.11.1-6
c755eb
- Drop obsolete macros
c755eb
- Update description and summary from upstream
c755eb
- Use “forge” macros to reference source
c755eb
- Use pyproject-rpm-macros
c755eb
c755eb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-5
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c755eb
c755eb
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.11.1-4
c755eb
- Rebuilt for Python 3.10
c755eb
c755eb
* Fri Jan 29 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.11.1-3
c755eb
- Fix for failing tests with coverage 5.4 (#1922301)
c755eb
c755eb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-2
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c755eb
c755eb
* Wed Jan 20 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.11.1-1
c755eb
- Update to 2.11.1 (#1917248)
c755eb
c755eb
* Fri Aug 14 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.10.1-1
c755eb
- Update to 2.10.1 (#1868968)
c755eb
c755eb
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-2
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c755eb
c755eb
* Thu Jul 9 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.10.0
c755eb
- Update to 2.10.0
c755eb
c755eb
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.8.1-6
c755eb
- Rebuilt for Python 3.9
c755eb
c755eb
* Mon Mar 2 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.8.1-5
c755eb
- Forcing current pytest-cov version usage during checks
c755eb
c755eb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-4
c755eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c755eb
c755eb
* Sun Jan 19 2020 Lumír Balhar <lbalhar@redhat.com> - 2.8.1-3
c755eb
- Unskip tests which are working with the newest coverage
c755eb
c755eb
* Sun Nov  3 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-2
c755eb
- Drop python 2 for F32+ (bz#1767517)
c755eb
c755eb
* Sat Oct  5 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-1
c755eb
- Update to 2.8.1
c755eb
c755eb
* Fri Oct  4 2019 Orion Poplawski <orion@nwra.com> - 2.8.0-1
c755eb
- Update to 2.8.0
c755eb
c755eb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.1-6
c755eb
- Rebuilt for Python 3.8.0rc1 (#1748018)