Skip to content

Commit 2afa9ca

Browse files
committed
Specify utf-8 for index.rst in setup.py
Fixes #298
1 parent c74528d commit 2afa9ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import io
12
import os
23
from setuptools import setup
34

@@ -7,7 +8,7 @@
78

89
# Load index.rst as long_description
910
doc_path = os.path.join(os.path.dirname(__file__), "docs", "index.rst")
10-
long_description = open(doc_path).read()
11+
long_description = io.open(doc_path, encoding='utf-8').read()
1112

1213
# Stops exit traceback on tests
1314
try:

0 commit comments

Comments
 (0)