Specify encoding in reading README.rst from setup.py.

Change-Id: I678adce052fc3eacef3b4f6198c4e1722b24e9f0
This commit is contained in:
Shuhei Iitsuka
2018-04-04 09:22:01 +09:00
parent fbeb88af70
commit 9dea155931

View File

@@ -15,11 +15,13 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import codecs
import os import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
def read_file(name): def read_file(name):
with open(os.path.join(os.path.dirname(__file__), name), 'r') as f: with codecs.open(
os.path.join(os.path.dirname(__file__), name), 'r', 'utf-8') as f:
return f.read().strip() return f.read().strip()
setup( setup(