[packages/python-coverage-test-runner] new, version 1.10

glen glen at pld-linux.org
Tue Jan 21 00:12:52 CET 2014


commit bbd30d2130d71ea210ddc2d5726c395379f6760b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jan 21 01:12:25 2014 +0200

    new, version 1.10
    
    based on fedora package
    ba31bf2772bfada75d413e0563282181e049b74a

 python-coverage-test-runner.spec | 59 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/python-coverage-test-runner.spec b/python-coverage-test-runner.spec
new file mode 100644
index 0000000..68ded40
--- /dev/null
+++ b/python-coverage-test-runner.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define	module coverage-test-runner
+Summary:	Python module for enforcing code coverage completeness
+Name:		python-%{module}
+Version:	1.10
+Release:	1
+License:	GPL v3+
+Group:		Libraries/Python
+Source0:	http://code.liw.fi/debian/pool/main/p/python-coverage-test-runner/%{name}_%{version}.orig.tar.gz
+# Source0-md5:	dda01699195334d151b621800eaaf064
+URL:		http://liw.fi/coverage-test-runner/
+BuildRequires:	python-coverage
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-coverage
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 CoverageTestRunner-%{version}
+
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README
+%{py_sitescriptdir}/CoverageTestRunner.py[co]
+%{py_sitescriptdir}/CoverageTestRunner-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-coverage-test-runner.git/commitdiff/bbd30d2130d71ea210ddc2d5726c395379f6760b



More information about the pld-cvs-commit mailing list