Skip to content

Commit 1338883

Browse files
committed
Fix reading of README in setup.py, do not use codecs.open
'pypa/twine#476 (comment)' codecs.open apparently mucks up the line endings
1 parent 1a960b7 commit 1338883

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
@@ -47,11 +47,10 @@ def main():
4747
init_filename = "meshpy/__init__.py"
4848
exec(compile(open(init_filename, "r").read(), init_filename, "exec"), conf)
4949

50-
import codecs
5150
setup(name="MeshPy",
5251
version=conf["version"],
5352
description="Triangular and Tetrahedral Mesh Generator",
54-
long_description=codecs.open("README.rst", "r", "utf-8").read(),
53+
long_description=open("README.rst", "r", encoding="utf-8").read(),
5554
long_description_content_type="text/x-rst",
5655
author="Andreas Kloeckner",
5756
author_email="[email protected]",

0 commit comments

Comments
 (0)