Open README and HISTORY as utf-8 encoded files (fixes #2196)

This commit is contained in:
Massimiliano Torromeo
2014-09-03 09:40:27 +02:00
parent 95161ed313
commit 226b5c7b0a
+4 -2
View File
@@ -5,6 +5,8 @@ import sys
import requests
from codecs import open
try:
from setuptools import setup
except ImportError:
@@ -27,9 +29,9 @@ packages = [
requires = ['certifi']
with open('README.rst') as f:
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with open('HISTORY.rst') as f:
with open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(