From a989b120fdeefa6516ea3f30b737321854cdf3f0 Mon Sep 17 00:00:00 2001 From: Cao T Date: Sun, 3 Dec 2017 18:37:39 -0500 Subject: [PATCH] Update setup.py fixed issues #12 --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index fb62a0d..64d73cc 100644 --- a/setup.py +++ b/setup.py @@ -16,8 +16,8 @@ def readme(): return f.read() except (IOError, OSError): return '' - with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: - document = docutils.core.publish_doctree(f.read()) + with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb') as f: + document = docutils.core.publish_doctree(f.read(), source_path=f.name) nodes = list(document) description = '' for node in nodes: @@ -27,7 +27,7 @@ def readme(): or type(node) is docutils.nodes.title: continue description += node.astext() + '\n' - return description.encode('ascii', 'ignore').strip() + return description setup(