Use codecs.open to pull the README text into setup.py's long_description.
authorW. Trevor King <wking@drexel.edu>
Wed, 22 Feb 2012 18:44:17 +0000 (13:44 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 22 Feb 2012 18:44:17 +0000 (13:44 -0500)
setup.py

index 247bafc46c0d0a07b186a60d2734fa0ccc776129..e07460add2fd5d353acfa2d00293b26f6986e1ac 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@
 from distutils.core import setup
 from os import walk
 from os.path import dirname, join, sep
+import codecs
 
 from pyrisk import __version__
 
@@ -30,7 +31,8 @@ setup(
     version=__version__,
     url='http://blog.tremily.us/posts/{}/'.format(package_name),
     description=__doc__,
-    long_description = open(join(_this_dir, 'README'), 'r').read(),
+    long_description=codecs.open(
+        join(_this_dir, 'README'), 'r', encoding='utf-8').read(),
     download_url='http://git.tremily.us/?p={}.git;a=snapshot;h={};sf=tgz'.format(
         package_name, __version__),
     author='W. Trevor King',