add missing Provides: python2-coverage

This commit is contained in:
Tom Callaway 2015-07-13 10:24:55 -04:00
parent c9874976bb
commit f991ffc52f
3 changed files with 5 additions and 29 deletions

View File

@ -1,19 +0,0 @@
# HG changeset patch
# User Ned Batchelder <ned@nedbatchelder.com>
# Date 1349312975 14400
# Node ID 16020b834643bb8b9953b8d4bcc09691deb549b9
# Parent 70e174f7312c87101b0b5be7ec7dd1acf7869f12
Fix #193: The status.dat file written by py2 can't be read by py3
diff -r 70e174f7312c87101b0b5be7ec7dd1acf7869f12 -r 16020b834643bb8b9953b8d4bcc09691deb549b9 coverage/html.py
--- a/coverage/html.py Wed Oct 03 07:48:04 2012 -0400
+++ b/coverage/html.py Wed Oct 03 21:09:35 2012 -0400
@@ -281,7 +281,7 @@
status = pickle.load(fstatus)
finally:
fstatus.close()
- except IOError:
+ except (IOError, ValueError):
usable = False
else:
usable = True

View File

@ -1,9 +0,0 @@
diff -up coverage-4.0a5/coverage/annotate.py.orig coverage-4.0a5/coverage/annotate.py
--- coverage-4.0a5/coverage/annotate.py.orig 2015-03-25 10:33:54.569942923 -0400
+++ coverage-4.0a5/coverage/annotate.py 2015-03-25 10:34:22.775668752 -0400
@@ -89,4 +89,4 @@ class AnnotateReporter(Reporter):
dest.write('> ')
else:
dest.write('! ')
- dest.write(line)
+ dest.write(line.encode('utf-8'))

View File

@ -17,13 +17,14 @@
Name: python-coverage
Summary: Code coverage testing module for Python
Version: 4.0
Release: 0.8.%{?prever}%{?dist}
Release: 0.9.%{?prever}%{?dist}
License: BSD and (MIT or GPLv2)
Group: System Environment/Libraries
URL: http://nedbatchelder.com/code/modules/coverage.html
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz
BuildRequires: python-setuptools, python2-devel
Requires: python-setuptools
Provides: python2-coverage = %{version}-%{release}
%if 0%{?with_python3}
BuildRequires: python3-setuptools, python3-devel
%endif # with_python3
@ -117,6 +118,9 @@ popd
%changelog
* Mon Jul 13 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.9.a6
- add missing Provides: python2-coverage
* Tue Jul 7 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.8.a6
- update to 4.0a6