From 829a280f6ed511af7e1434191799358e29768ede Mon Sep 17 00:00:00 2001 From: Jay Pipes Date: Sat, 2 Nov 2013 14:15:10 -0400 Subject: [PATCH] Ensure long description is Unicode string in setup Python 3.3 is not able to properly install Falcon due to UTF-8 characters in the README.rst file. The characters are fine, we just need to be sure to decode the open('README.rst', 'rb').read() bytestring as a unicode string. An example of the setup failure can be seen here: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 586: ordinal not in range(128) http://logs.openstack.org/40/55040/2/check/gate-solum-python33/02f9aca/console.html --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2cb1555..3c67887 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ setup( name='falcon', version=VERSION, description='A supersonic micro-framework for building cloud APIs.', - long_description=open('README.rst', 'r').read(), + long_description=open('README.rst', 'rb').read().decode('utf-8', 'ignore'), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment',