From a0da46e0d7f14b46f94559992d4989dfddfe5702 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 22 Feb 2012 13:44:17 -0500 Subject: [PATCH] Use codecs.open to pull the README text into setup.py's long_description. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', -- 2.26.2