From: W. Trevor King Date: Wed, 22 Feb 2012 18:44:17 +0000 (-0500) Subject: Use codecs.open to pull the README text into setup.py's long_description. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0da46e0d7f14b46f94559992d4989dfddfe5702;p=pyrisk.git Use codecs.open to pull the README text into setup.py's long_description. --- diff --git a/setup.py b/setup.py index 247bafc..e07460a 100755 --- 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',