%global pkgname CoverageTestRunner %global prjname coverage-test-runner Name: python-%{prjname} Version: 1.10 Release: 6%{?dist} Summary: Python module for enforcing code coverage completeness License: GPLv3+ URL: http://liw.fi/%{prjname}/ Source0: http://code.liw.fi/debian/pool/main/p/%{name}/%{name}_%{version}.orig.tar.gz # sent to upstream via mailing list Patch0: %{name}-1.10-cov40.patch BuildArch: noarch BuildRequires: python-coverage Requires: python-coverage %description CoverageTestRunner is a Python module for running unit tests and failing them if the unit test module does not exercise all statements in the module it tests. For example, unit tests in module foo_tests.py are supposed to test everything in the foo.py module, and if they don't, it's a bug in the test coverage. It does not matter if other tests happen to test the missing parts. The unit tests for the module should test everything in that module. %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 -b .cov40 %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} %check make check %files %doc COPYING NEWS README %{python_sitelib}/%{pkgname}.py* %{python_sitelib}/%{pkgname}-%{version}-py?.?.egg-info %changelog * Thu Feb 04 2016 Fedora Release Engineering - 1.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jul 19 2015 Michel Alexandre Salim - 1.10-5 - Adjust for removal of deprecated top-level module functions in coverage-4.0a6 * Thu Jun 18 2015 Fedora Release Engineering - 1.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Apr 20 2013 Michel Salim - 1.10-1 - Update to 1.10 * Mon Feb 25 2013 Michel Salim - 1.9-1 - Update to 1.9 * Thu Feb 14 2013 Fedora Release Engineering - 1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 4 2012 Michel Salim - 1.8-1 - Update to 1.8 - Drop unneeded conditional declaration of %%{python_sitelib} * Sun Jun 3 2012 Michel Salim - 1.0-1 - Initial package