Get this building and passing tests
Changes: * add .DS_Store to .gitignore * Decode base64 encoded emails for tests * Pick a version of scikit since the pickled clasifiers are based on that * Add missing numpy and scipy dependencies
This commit is contained in:
committed by
Alex Riina
parent
c5e4cd9ab4
commit
8b1f87b1c0
3
.gitignore
vendored
3
.gitignore
vendored
@@ -49,3 +49,6 @@ tramp
|
|||||||
|
|
||||||
# Trial temp
|
# Trial temp
|
||||||
_trial_temp
|
_trial_temp
|
||||||
|
|
||||||
|
# OSX
|
||||||
|
.DS_Store
|
||||||
4
setup.py
Normal file → Executable file
4
setup.py
Normal file → Executable file
@@ -18,8 +18,10 @@ setup(name='talon',
|
|||||||
"regex>=1",
|
"regex>=1",
|
||||||
"html2text",
|
"html2text",
|
||||||
"nose>=1.2.1",
|
"nose>=1.2.1",
|
||||||
|
"numpy",
|
||||||
"mock",
|
"mock",
|
||||||
"coverage",
|
"coverage",
|
||||||
"scikit-learn",
|
"scipy",
|
||||||
|
"scikit-learn==0.16.1", # pickled versions of classifier, else rebuild
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -618,7 +618,7 @@ def test_standard_replies():
|
|||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
message = email.message_from_file(f)
|
message = email.message_from_file(f)
|
||||||
body = email.iterators.typed_subpart_iterator(message, subtype='plain').next()
|
body = email.iterators.typed_subpart_iterator(message, subtype='plain').next()
|
||||||
text = ''.join(email.iterators.body_line_iterator(body))
|
text = ''.join(email.iterators.body_line_iterator(body, True))
|
||||||
|
|
||||||
stripped_text = quotations.extract_from_plain(text)
|
stripped_text = quotations.extract_from_plain(text)
|
||||||
reply_text_fn = filename[:-4] + '_reply_text'
|
reply_text_fn = filename[:-4] + '_reply_text'
|
||||||
|
|||||||
Reference in New Issue
Block a user