open file with encoding (python 2/3 supported)
[rainbowstream.git] / setup.py
index eb7c58f014200d46c24198c411dbb12100295201..f671f4913193709bc6e5a8d200a21ea9bcff792d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
 from setuptools import setup, find_packages
+from io import open
 import os
 import os.path
 import sys
@@ -32,7 +33,7 @@ if not os.path.isfile(default):
 setup(name='rainbowstream',
       version=version,
       description="A smart and nice Twitter client on terminal.",
-      long_description=open("./README.rst", "r").read(),
+      long_description=open("./README.rst", "r", encoding='utf-8').read(),
       classifiers=[
           "Development Status :: 5 - Production/Stable",
           "Environment :: Console",