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:
Scott MacVicar
2015-05-06 14:16:11 -07:00
committed by Alex Riina
parent c5e4cd9ab4
commit 8b1f87b1c0
7 changed files with 8 additions and 3 deletions

5
.gitignore vendored
View File

@@ -48,4 +48,7 @@ tramp
*_archive *_archive
# Trial temp # Trial temp
_trial_temp _trial_temp
# OSX
.DS_Store

4
setup.py Normal file → Executable file
View 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.

View File

@@ -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'