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