open file with encoding (python 2/3 supported)
[rainbowstream.git] / setup.py
index 51306bc15dcbcc15718d83542c2ced834478bc86..f671f4913193709bc6e5a8d200a21ea9bcff792d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,11 @@
 from setuptools import setup, find_packages
-import os, os.path, sys
+from io import open
+import os
+import os.path
+import sys
 
 # Bumped version
-version = '0.5.3'
+version = '0.5.7'
 
 # Require
 install_requires = [
@@ -14,7 +17,7 @@ install_requires = [
     "Pillow",
 ]
 
-# Python 3 doesn't hava pysqlite
+# Python 3 doesn't have pysqlite
 if sys.version[0] == "2":
     install_requires += ["pysqlite"]
 
@@ -30,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",