Skip to content

Commit aca24fe

Browse files
committed
Fix encoding issue with setup long_description
1 parent 39839b8 commit aca24fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env python
22

3+
import codecs
4+
35
try:
46
from setuptools import setup, find_packages
57
except ImportError:
@@ -16,7 +18,7 @@
1618
url='https://github.com/fdintino/python-doublescript',
1719
description=(
1820
'allows changing the value of "2 + 2" (generally to equal "5") at runtime'),
19-
long_description=open('README.rst').read(),
21+
long_description=codecs.open('README.rst', encoding='utf-8').read(),
2022
packages=find_packages(),
2123
zip_safe=True,
2224
install_requires=[

0 commit comments

Comments
 (0)