Skip to content

Commit 94e084e

Browse files
Recipe for websocket-client
1 parent de3d353 commit 94e084e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class WebSocketClient(Recipe):
2+
3+
url = 'https://pypi.python.org/packages/a7/2b/0039154583cb0489c8e18313aa91ccd140ada103289c5c5d31d80fd6d186/websocket_client-0.40.0.tar.gz'
4+
version = '0.40.0'
5+
md5sum = 'f1cf4cc7869ef97a98e5f4be25c30986'
6+
7+
patches = ['websocket.patch'] # Paths relative to the recipe dir
8+
9+
depends = ['kivy', 'python2', 'android', 'pyjnius', 'backports.ssl-match-hostname',
10+
'cryptography', 'pyasn1', 'ndg_httpsclient', 'pyopenssl']
11+
12+
recipe = WebSocketClient()
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Binary files websocket/.DS_Store and websocket-patch/.DS_Store differ
2+
diff -ruN websocket/_logging.py websocket-patch/_logging.py
3+
--- websocket/_logging.py 2016-10-02 21:35:05.000000000 -0400
4+
+++ websocket-patch/_logging.py 2017-04-10 15:01:56.000000000 -0400
5+
@@ -19,9 +19,10 @@
6+
Boston, MA 02110-1335 USA
7+
8+
"""
9+
-import logging
10+
-
11+
-_logger = logging.getLogger('websocket')
12+
+# import logging
13+
+from kivy.logger import Logger
14+
+# _logger = logging.getLogger('websocket')
15+
+_logger = Logger
16+
_traceEnabled = False
17+
18+
__all__ = ["enableTrace", "dump", "error", "debug", "trace",
19+
@@ -67,8 +68,10 @@
20+
21+
22+
def isEnabledForError():
23+
- return _logger.isEnabledFor(logging.ERROR)
24+
+ return True
25+
+ # return _logger.isEnabledFor(logging.ERROR)
26+
27+
28+
def isEnabledForDebug():
29+
- return _logger.isEnabledFor(logging.DEBUG)
30+
+ return True
31+
+ # return _logger.isEnabledFor(logging.DEBUG)
32+
Binary files websocket/tests/__init__.pyc and websocket-patch/tests/__init__.pyc differ
33+
Binary files websocket/tests/test_websocket.pyc and websocket-patch/tests/test_websocket.pyc differ

0 commit comments

Comments
 (0)