Skip to content

Commit 852ca91

Browse files
authored
Merge pull request #299 from Nobatek/fix_setup_multiplatform
Specify utf-8 for index.rst in setup.py
2 parents c74528d + 2afa9ca commit 852ca91

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)