]> git.pld-linux.org Git - packages/python-coverage-test-runner.git/commitdiff
new, version 1.10 auto/th/python-coverage-test-runner-1.10-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jan 2014 23:12:25 +0000 (01:12 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jan 2014 23:12:25 +0000 (01:12 +0200)
based on fedora package
ba31bf2772bfada75d413e0563282181e049b74a

python-coverage-test-runner.spec [new file with mode: 0644]

diff --git a/python-coverage-test-runner.spec b/python-coverage-test-runner.spec
new file mode 100644 (file)
index 0000000..68ded40
--- /dev/null
@@ -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
This page took 0.053934 seconds and 4 git commands to generate.