diff --git a/coverage-2.85.tar.gz b/coverage-2.85.tar.gz deleted file mode 100644 index 85df939..0000000 --- a/coverage-2.85.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5783544bffe2fda07e5b7c5f68f0ee87e3d09c395d129ae96ee45e9797b89206 -size 14169 diff --git a/coverage-3.4.tar.gz b/coverage-3.4.tar.gz new file mode 100644 index 0000000..359dd86 --- /dev/null +++ b/coverage-3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac8a28fbe4a5d3ece87c731a9de08eaaa5357179856d43cb5c3756c709ff8e12 +size 92121 diff --git a/python-coverage.changes b/python-coverage.changes new file mode 100644 index 0000000..6e151e1 --- /dev/null +++ b/python-coverage.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Fri May 6 12:32:26 UTC 2011 - saschpe@suse.de + +- Update to version 3.4: + + The XML report is now sorted by package name, fixing issue 88. + + Programs that exited with sys.exit() with no argument weren't handled + properly, producing a coverage.py stack trace. That is now fixed. +- Changes from version 3.3.1: + + Using parallel=True in .coveragerc file prevented reporting, but now does + not, fixing issue 49. + + When running your code with "coverage run", if you call sys.exit(), + coverage.py will exit with that status code, fixing issue 50. +- Added documentation (AUTHORS.txt, CHANGES.txt and README.txt) +- Addded changes file + +------------------------------------------------------------------- +Sat Aug 22 12:00:00 UTC 2009 - cfarrell1980@gmail.com + +- Require setuptools + +------------------------------------------------------------------- +Thu May 28 12:00:00 UTC 2009 - cfarrell1980@gmail.com + +- Initial import + diff --git a/python-coverage.spec b/python-coverage.spec index 814b26e..b41418d 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -1,7 +1,7 @@ # -# spec file for package python-coverage (Version 2.85) +# spec file for package python-coverage # -# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,51 +11,60 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# -# norootforbuild -%define real_name coverage +%define mod_name coverage -Name: python-%{real_name} -Version: 2.85 +Name: python-%{mod_name} +Version: 3.4 Release: 0 +Url: http://nedbatchelder.com/code/coverage +Summary: Code coverage measurement for Python License: BSD -Source: %{real_name}-%{version}.tar.gz -Group: Development/Libraries/Python -Summary: code coverage testing for Python +Group: Development/Languages/Python +Source: %{mod_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -Autoreqprov: on -Url: http://pypi.python.org/pypi/coverage - +BuildRequires: python-devel BuildRequires: python-setuptools -Requires: python-setuptools +BuildRequires: python-xml +Requires: python-xml +%if 0%{?suse_version} %py_requires +%if 0%{?suse_version} > 1010 +BuildRequires: fdupes +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description -Coverage.py is a Python module that measures code coverage during test execution. -It uses the code analysis tools and tracing hooks provided in the Python standard +Coverage.py measures code coverage, typically during test execution. It uses +the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed. %prep -%setup -q -n %real_name-%version +%setup -q -n %{mod_name}-%{version} %build +export CFLAGS="%{optflags}" python setup.py build %install -python setup.py install --prefix=%_prefix --root=%buildroot --record-rpm=filelist +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} > 1010 +%fdupes %{buildroot} +%endif %clean -rm -rf %buildroot +rm -rf %{buildroot} -%files -f filelist +%files %defattr(-,root,root) -%doc -#PKG-INFO docs - +%doc AUTHORS.txt CHANGES.txt README.txt +%{_bindir}/%{mod_name} +%{python_sitearch}/* %changelog -* Sat Aug 22 2009 cfarrell1980@gmail.com -- require setuptools -* Thu May 28 2009 cfarrell1980@gmail.com -- Initial import