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
efd9b98
Version:        7.3.2
74a5c2d
Release:        6%{?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
a586864
BuildRequires: git
a586864
BuildRequires: help2man
a586864
BuildRequires: python3-devel
a586864
BuildRequires: python3-jinja2 >= 2.7.1
a586864
BuildRequires: python3-jinja2_pluralize
a586864
BuildRequires: python3-pytest
a586864
BuildRequires: python3-pygments >= 2.0.1
a586864
BuildRequires: python3-setuptools
a586864
BuildRequires: python3-chardet >= 4
a586864
BuildRequires: python3-pytest-mock
a586864
BuildRequires: python3-pytest-datadir
efd9b98
BuildRequires: (python3-tomli if python3 < 3.11)
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
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
2a541e5
%autosetup -n diff_cover-%{version} -p1
a586864
a586864
%generate_buildrequires
a586864
%pyproject_buildrequires
a586864
Mohan Boddu 8c35bda
rm -rf diff_cover.egg-info
Mohan Boddu 8c35bda
343e213
Mohan Boddu 8c35bda
%build
a586864
%pyproject_wheel
Mohan Boddu 8c35bda
343e213
Mohan Boddu 8c35bda
%install
Mohan Boddu 8c35bda
a586864
%pyproject_install
Mohan Boddu 8c35bda
mkdir -p %{buildroot}%{_mandir}/man1
Mohan Boddu 8c35bda
PYTHONPATH=%{buildroot}%{python3_sitelib} \
2ee6af8
    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} \
2ee6af8
    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
a586864
%pyproject_save_files diff_cover
343e213
354c483
%check
a586864
# disable code quality checker tests, but run the rest.
a586864
%pytest -k 'not diff_quality_tool and not TestDiffQualityIntegration and not TestFlake8QualityReporterTest'
354c483
354c483
a586864
%files -n python3-diff-cover -f %{pyproject_files}
Mohan Boddu 8c35bda
%license LICENSE
354c483
%doc README.rst
Mohan Boddu 8c35bda
%{_mandir}/man1/diff-cover.1*
Mohan Boddu 8c35bda
%{_mandir}/man1/diff-quality.1*
a586864
%{_bindir}/diff-cover
a586864
%{_bindir}/diff-quality
343e213
Mohan Boddu 8c35bda
%changelog
74a5c2d
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.2-6
74a5c2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
74a5c2d
566b3fd
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.2-5
566b3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
566b3fd
d907490
* Sat Jan 13 2024 Maxwell G <maxwell@gtmx.me> - 7.3.2-4
d907490
- Remove unused python3-mock test dependency
d907490
11bfd13
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.2-3
11bfd13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
11bfd13
e7da427
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 7.3.2-2
e7da427
- Rebuilt for Python 3.12
e7da427
efd9b98
* Mon Mar 06 2023 Miro Hrončok <mhroncok@redhat.com> - 7.3.2-1
efd9b98
- Update to 7.3.2
efd9b98
a08056f
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.0-2
a08056f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a08056f
787f2da
* Tue Jan 03 2023 Kevin Fenzi <kevin@scrye.com> - 7.3.0-1
787f2da
- Update to 7.3.0. Fixes rhbz#2068325
787f2da
0f4ee49
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.0-2
0f4ee49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0f4ee49
2cb89d0
* Tue Jun 21 2022 Adam Williamson <awilliam@redhat.com> - 6.5.0-1
2cb89d0
- Update to 6.5.0
2cb89d0
- Backport PR #280 to fix tests with pygments 2.12.0
2cb89d0
ed6521b
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 6.4.4-4
ed6521b
- Rebuilt for Python 3.11
ed6521b
2a541e5
* Mon Feb 07 2022 Karolina Surma <ksurma@redhat.com> - 6.4.2-3
2a541e5
- Fix failing Pygments test. Fixes rhbz#2042301
2a541e5
86a38bd
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.4-2
86a38bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
86a38bd
eed2a14
* Sat Jan 08 2022 Kevin Fenzi <kevin@scrye.com> - 6.4.4-1
eed2a14
- Update to 6.4.4. Fixes rhbz#2028707
eed2a14
a586864
* Sun Nov 28 2021 Kevin Fenzi <kevin@scrye.com> - 6.4.2-1
a586864
- Update to 6.4.2. Fixes rhbz#1973851
a586864
- Disable quality checker tests
a586864
7a2decb
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
7a2decb
- Second attempt - Rebuilt for
7a2decb
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7a2decb
e70270d
* Wed Jun 23 2021 Karolina Surma <ksurma@redhat.com> - 5.2.0-1
e70270d
- Update to 5.2.0 Fixes rhbz#1967026, rhbz#1958734
e70270d
a45c5f5
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.0.0-2
a45c5f5
- Rebuilt for Python 3.10
a45c5f5
a194122
* Tue Mar 09 2021 Charalampos Stratakis <cstratak@redhat.com> - 5.0.0-1
a194122
- Update to 5.0.0 Fixes rhbz#1918488, rhbz#1931521
a194122
2c83271
* Mon Feb 22 2021 Kevin Fenzi <kevin@scrye.com> - 4.2.1-1
2c83271
- Update to 4.2.1. Fixes rhbz#1918488
2c83271
2ee6af8
* Fri Feb 05 2021 Miro Hrončok <mhroncok@redhat.com> - 4.2.0-2
2ee6af8
- BuildRequire chardet >= 4
2ee6af8
- Don't ignore errors during build
2ee6af8
a7bc3f1
* Thu Jan 28 2021 Kevin Fenzi <kevin@scrye.com> - 4.2.0-1
a7bc3f1
- Update to 4.2.0. Fixed rhbz#1918488
a7bc3f1
1c3f89c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
1c3f89c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1c3f89c
d9f3e97
* Sun Jan 10 2021 Kevin Fenzi <kevin@scrye.com> - 4.1.0-1
d9f3e97
- Update to 4.1.0. Fixes rhbz#1914008
d9f3e97
35545f0
* Tue Dec 29 2020 Kevin Fenzi <kevin@scrye.com> - 4.0.1-1
35545f0
- Update to 4.0.1. RHBZ#1898113
35545f0
- Fix FTBFS RHBZ#1898113
35545f0
a4cc0d8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
a4cc0d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a4cc0d8
Clement Verna e0fd840
* Wed Jun 03 2020 Clément Verna <cverna@fedoraproject.org> - 3.0.0-1
Clement Verna e0fd840
- Update to 3.0.0 RHBZ#1821943
Clement Verna e0fd840
- https://github.com/Bachmann1234/diff_cover/blob/v3.0.0/CHANGELOG
Clement Verna e0fd840
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