Skip to content

Commit c5f8340

Browse files
authored
Merge pull request kivy#834 from brussee/coverage-recipe
Coverage recipe
2 parents bceb598 + d09ded8 commit c5f8340

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from pythonforandroid.toolchain import PythonRecipe
2+
3+
4+
class CoverageRecipe(PythonRecipe):
5+
6+
version = '4.1'
7+
8+
url = 'https://pypi.python.org/packages/2d/10/6136c8e10644c16906edf4d9f7c782c0f2e7ed47ff2f41f067384e432088/coverage-{version}.tar.gz'
9+
10+
depends = ['hostpython2', 'setuptools']
11+
12+
patches = ['fallback-utf8.patch']
13+
14+
site_packages_name = 'coverage'
15+
16+
call_hostpython_via_targetpython = False
17+
18+
19+
recipe = CoverageRecipe()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- coverage-4.1/coverage/misc.py 2016-02-13 20:04:35.000000000 +0100
2+
+++ patch/coverage/misc.py 2016-07-11 17:07:22.656603295 +0200
3+
@@ -166,7 +166,8 @@
4+
encoding = (
5+
getattr(outfile, "encoding", None) or
6+
getattr(sys.__stdout__, "encoding", None) or
7+
- locale.getpreferredencoding()
8+
+ locale.getpreferredencoding() or
9+
+ 'utf-8'
10+
)
11+
return encoding
12+

0 commit comments

Comments
 (0)