|
|
343e213 |
%global desc Diff coverage is the percentage of new or modified lines that are covered by \
|
|
|
343e213 |
tests. This provides a clear and achievable standard for code review: If you \
|
|
|
343e213 |
touch a line of code, that line should be covered. Code coverage is *every* \
|
|
|
343e213 |
developer's responsibility! \
|
|
|
343e213 |
\
|
|
|
343e213 |
The diff-cover command line tool compares an XML coverage report with the \
|
|
|
343e213 |
output of git diff. It then reports coverage information for lines in the \
|
|
|
343e213 |
diff.
|
|
|
343e213 |
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
Name: python-diff-cover
|
|
|
7c2e1d4 |
Version: 2.6.0
|
|
|
54799ec |
Release: 2%{?dist}
|
|
|
343e213 |
BuildArch: noarch
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
License: ASL 2.0
|
|
|
343e213 |
Summary: Automatically find diff lines that need test coverage
|
|
|
343e213 |
URL: https://github.com/Bachmann1234/diff-cover/
|
|
|
766c691 |
Source0: %{url}/archive/v%{version}/diff-cover-%{version}.tar.gz
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
# Some of the python3 BuildRequires are needed so we can run the entry point scripts for help2man
|
|
|
354c483 |
BuildRequires: /usr/bin/flake8
|
|
|
354c483 |
BuildRequires: /usr/bin/pycodestyle
|
|
|
354c483 |
BuildRequires: /usr/bin/pylint
|
|
|
343e213 |
BuildRequires: git
|
|
Mohan Boddu |
8c35bda |
BuildRequires: help2man
|
|
|
343e213 |
BuildRequires: python3-devel
|
|
|
343e213 |
BuildRequires: python3-jinja2 >= 2.7.1
|
|
|
343e213 |
BuildRequires: python3-jinja2_pluralize
|
|
|
354c483 |
BuildRequires: python3-mock
|
|
|
1d58ec6 |
BuildRequires: python3-pytest
|
|
|
343e213 |
BuildRequires: python3-pygments >= 2.0.1
|
|
|
343e213 |
BuildRequires: python3-setuptools
|
|
|
343e213 |
BuildRequires: python3-six >= 1.6.1
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
%description
|
|
|
343e213 |
%{desc}
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
%package -n python3-diff-cover
|
|
|
343e213 |
Summary: %{summary}
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
# needed for the _git_root test
|
|
|
343e213 |
Requires: git
|
|
Mohan Boddu |
8c35bda |
# Required for the entry_point scripts
|
|
Mohan Boddu |
8c35bda |
Requires: python3-setuptools
|
|
Mohan Boddu |
8c35bda |
# from requirements.txt
|
|
Mohan Boddu |
8c35bda |
Requires: python3-jinja2 >= 2.7.1
|
|
Mohan Boddu |
8c35bda |
Requires: python3-jinja2_pluralize
|
|
|
343e213 |
Requires: python3-pygments >= 2.0.1
|
|
|
343e213 |
Requires: python3-six >= 1.6.1
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
%{?python_provide:%python_provide python3-diff-cover}
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
%description -n python3-diff-cover
|
|
|
343e213 |
%{desc}
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
%prep
|
|
|
d344a32 |
%autosetup -n diff_cover-%{version}
|
|
Mohan Boddu |
8c35bda |
rm -rf diff_cover.egg-info
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
%build
|
|
Mohan Boddu |
8c35bda |
%py3_build
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
%install
|
|
Mohan Boddu |
8c35bda |
%py3_install
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
Mohan Boddu |
8c35bda |
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
Mohan Boddu |
8c35bda |
help2man --no-info --version-string 'diff-cover %{version}' \
|
|
Mohan Boddu |
8c35bda |
-o %{buildroot}%{_mandir}/man1/diff-cover.1 \
|
|
Mohan Boddu |
8c35bda |
%{buildroot}%{_bindir}/diff-cover
|
|
Mohan Boddu |
8c35bda |
|
|
Mohan Boddu |
8c35bda |
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
Mohan Boddu |
8c35bda |
help2man --no-info --version-string 'diff-quality %{version}' \
|
|
Mohan Boddu |
8c35bda |
-o %{buildroot}%{_mandir}/man1/diff-quality.1 \
|
|
Mohan Boddu |
8c35bda |
%{buildroot}%{_bindir}/diff-quality
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
|
|
|
354c483 |
%check
|
|
|
fb43dc6 |
# Two tests fail: https://github.com/Bachmann1234/diff_cover/issues/136
|
|
|
fb43dc6 |
pytest-3 -k "not test_html_with_external_css and not test_load_declared_arabic"
|
|
|
354c483 |
|
|
|
354c483 |
|
|
Mohan Boddu |
8c35bda |
%files -n python3-diff-cover
|
|
Mohan Boddu |
8c35bda |
%license LICENSE
|
|
|
354c483 |
%doc README.rst
|
|
Mohan Boddu |
8c35bda |
%{_bindir}/diff-cover
|
|
Mohan Boddu |
8c35bda |
%{_bindir}/diff-quality
|
|
Mohan Boddu |
8c35bda |
%{_mandir}/man1/diff-cover.1*
|
|
Mohan Boddu |
8c35bda |
%{_mandir}/man1/diff-quality.1*
|
|
Mohan Boddu |
8c35bda |
%{python3_sitelib}/diff_cover
|
|
Mohan Boddu |
8c35bda |
%{python3_sitelib}/diff_cover-%{version}-*.egg-info
|
|
Mohan Boddu |
8c35bda |
|
|
|
343e213 |
|
|
Mohan Boddu |
8c35bda |
%changelog
|
|
|
54799ec |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-2
|
|
|
54799ec |
- Rebuilt for Python 3.9
|
|
|
54799ec |
|
|
|
7c2e1d4 |
* Wed Feb 19 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.6.0-1
|
|
|
7c2e1d4 |
- Update to 2.6.0 (#1800860).
|
|
|
7c2e1d4 |
- https://github.com/Bachmann1234/diff_cover/blob/v2.6.0/CHANGELOG
|
|
|
7c2e1d4 |
|
|
|
2800f11 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
|
|
|
2800f11 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
2800f11 |
|
|
|
fb43dc6 |
* Tue Jan 21 2020 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.5.2-1
|
|
|
fb43dc6 |
- Update to 2.5.2 (#1783722).
|
|
|
fb43dc6 |
- https://github.com/Bachmann1234/diff_cover/blob/v2.5.2/CHANGELOG
|
|
|
fb43dc6 |
|
|
|
766c691 |
* Thu Nov 21 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.4.1-1
|
|
|
766c691 |
- Update to 2.4.1 (#1774828).
|
|
|
766c691 |
- https://github.com/Bachmann1234/diff_cover/blob/v2.4.1/CHANGELOG
|
|
|
766c691 |
|
|
|
96fffb9 |
* Fri Nov 15 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.4.0-1
|
|
|
96fffb9 |
- Update to 2.4.0 (#1762995).
|
|
|
96fffb9 |
- https://github.com/Bachmann1234/diff_cover/blob/V2.4.0/CHANGELOG
|
|
|
96fffb9 |
|
|
|
6f030c7 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-4
|
|
|
6f030c7 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
6f030c7 |
|
|
|
81f8d39 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-3
|
|
|
81f8d39 |
- Rebuilt for Python 3.8
|
|
|
81f8d39 |
|
|
|
e0ec859 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
|
|
e0ec859 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
e0ec859 |
|
|
|
d344a32 |
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 2.3.0-1
|
|
|
d344a32 |
- Update to 2.3.0. Fixes bug #1725493
|
|
|
d344a32 |
|
|
|
d27d711 |
* Tue Jun 18 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.2.0-1
|
|
|
d27d711 |
- Update to 2.2.0 (#1720455).
|
|
|
d27d711 |
- https://github.com/Bachmann1234/diff-cover/blob/v2.2.0/CHANGELOG
|
|
|
d27d711 |
|
|
|
1d58ec6 |
* Tue Jun 04 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.1.0-1
|
|
|
1d58ec6 |
- Update to 2.1.0 (#1697689).
|
|
|
1d58ec6 |
- https://github.com/Bachmann1234/diff-cover/blob/v2.1.0/CHANGELOG
|
|
|
1d58ec6 |
|
|
|
176004a |
* Wed Apr 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.7-1
|
|
|
176004a |
- Update to 1.0.7 (#1689572).
|
|
|
176004a |
- https://github.com/Bachmann1234/diff-cover/blob/v1.0.7/CHANGELOG
|
|
|
176004a |
|
|
|
f0ed3ca |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
|
|
|
f0ed3ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f0ed3ca |
|
|
|
354c483 |
* Thu Nov 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.5-1
|
|
|
354c483 |
- Update to 1.0.5.
|
|
|
354c483 |
|
|
|
a8c4917 |
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.12-5
|
|
|
a8c4917 |
- Subpackage python2-diff-cover has been removed
|
|
|
a8c4917 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
a8c4917 |
|
|
|
05c54cc |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-4
|
|
|
05c54cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
05c54cc |
|
|
|
983ea10 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.12-3
|
|
|
983ea10 |
- Rebuilt for Python 3.7
|
|
|
983ea10 |
|
|
|
ad9f29c |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-2
|
|
|
ad9f29c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|