From 2d61715e400d5ad4b8c52fe636e3d9842e213ae9 Mon Sep 17 00:00:00 2001 From: makoto tsuyuki Date: Thu, 18 May 2017 19:21:44 +0900 Subject: [PATCH] Fix: read README.rst and CHANGES.rst using utf-8 codecs. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8e4723c..dd47564 100644 --- a/setup.py +++ b/setup.py @@ -16,12 +16,16 @@ # Initial code got from http://djangosnippets.org/users/danielroseman/ +import codecs import os from setuptools import setup, find_packages def read(*rnames): - with open(os.path.join(os.path.dirname(__file__), *rnames)) as f: + with codecs.open( + os.path.join(os.path.dirname(__file__), *rnames), + 'r', 'utf-8', + ) as f: return f.read()