Remove read function and use open directly
Remove read function and replace it with open("README.md").read()
@@ -9,10 +9,6 @@ with open(os.path.join(base_dir, "meshio", "__about__.py"), "rb") as f:
exec(f.read(), about)
-def read(fname):
- return open(os.path.join(base_dir, fname), encoding="utf-8").read()
-
-
setup(
name="meshio",
version=about["__version__"],
@@ -20,7 +16,7 @@ setup(
author_email=about["__author_email__"],
packages=find_packages(),
description="I/O for various mesh formats",
- long_description=read("README.md"),
+ long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/nschloe/meshio",
project_urls={
