spot pushed to python-coverage (f22). "fix bz 1204940"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Mar 31 14:29:45 UTC 2015
>From f4f91f04f751c3e11e7e9d3851367d85212002bb Mon Sep 17 00:00:00 2001
From: Tom Callaway <spot at fedoraproject.org>
Date: Tue, 31 Mar 2015 10:29:33 -0400
Subject: fix bz 1204940
diff --git a/python-coverage-4.0a5-unicodefix.patch b/python-coverage-4.0a5-unicodefix.patch
new file mode 100644
index 0000000..ec86a81
--- /dev/null
+++ b/python-coverage-4.0a5-unicodefix.patch
@@ -0,0 +1,9 @@
+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'))
diff --git a/python-coverage.spec b/python-coverage.spec
index e0994f2..23d5dd4 100644
--- a/python-coverage.spec
+++ b/python-coverage.spec
@@ -2,7 +2,7 @@
%global with_python3 1
%endif
-%global prever a3
+%global prever a5
%{!?python_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
@@ -17,11 +17,13 @@
Name: python-coverage
Summary: Code coverage testing module for Python
Version: 4.0
-Release: 0.3.%{?prever}%{?dist}
+Release: 0.5.%{?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
+# https://bitbucket.org/ned/coveragepy/issue/363/annotate-command-hits-unicode-happy-fun
+Patch0: python-coverage-4.0a5-unicodefix.patch
BuildRequires: python-setuptools, python2-devel
Requires: python-setuptools
%if 0%{?with_python3}
@@ -52,6 +54,7 @@ have been executed.
%prep
%setup -q -n coverage-%{version}%{?prever}
+%patch0 -p1
find . -type f -exec chmod 0644 \{\} \;
sed -i 's/\r//g' README.txt
@@ -121,6 +124,12 @@ popd
%changelog
+* Wed Mar 25 2015 Tom Callaway <spot at fedoraproject.org> 4.0-0.5.a5
+- unicode fixup
+
+* Tue Feb 17 2015 Tom Callaway <spot at fedoraproject.org> 4.0-0.4.a5
+- update to 4.0a5
+
* Thu Feb 5 2015 Tom Callaway <spot at fedoraproject.org> 4.0-0.3.a3
- update to 4.0a3
diff --git a/sources b/sources
index af477d6..b18522e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-274681bb92b9630d1734f7fb7a56f8f5 coverage-4.0a3.tar.gz
+37f4d8ae679b2c43a87da8d519817a3b coverage-4.0a5.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-coverage.git/commit/?h=f22&id=f4f91f04f751c3e11e7e9d3851367d85212002bb
More information about the scm-commits
mailing list