Skip to content

Commit c7c609f

Browse files
committed
fix setup.py for pypi packaging
1 parent 8095606 commit c7c609f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import codecs
21
from distutils.core import setup
32
from setuptools.command.test import test as TestCommand
43
import re
@@ -20,7 +19,7 @@ def run_tests(self):
2019

2120
def long_description():
2221
"""Pre-process the README so that PyPi can render it properly."""
23-
with codecs.open('README.rst', encoding='utf8') as f:
22+
with open('README.rst') as f:
2423
rst = f.read()
2524
code_block = '(:\n\n)?\.\. code-block::.*'
2625
rst = re.sub(code_block, '::', rst)

0 commit comments

Comments
 (0)