Skip to content

Commit

Permalink
fix setup.py for pypi packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzCore committed Nov 14, 2021
1 parent 8095606 commit c7c609f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import codecs
from distutils.core import setup
from setuptools.command.test import test as TestCommand
import re
Expand All @@ -20,7 +19,7 @@ def run_tests(self):

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

0 comments on commit c7c609f

Please sign in to comment.