From 8e59a14e4e5ee7a9c2495fd91bad063d47e801a4 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Fri, 8 Oct 2021 08:49:32 +0200 Subject: [PATCH] Simplify and clean up `setup.py` --- setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 921ec1db..d339386f 100644 --- a/setup.py +++ b/setup.py @@ -6,12 +6,7 @@ from src.wireviz import __version__, CMD_NAME, APP_URL -# Utility function to read the README file. -# Used for the long_description. It's nice, because now 1) we have a top level -# README file and 2) it's easier to type in the README file than to put a raw -# string in below ... -def read(fname): - return open(Path(__file__).parent / fname).read() +README_PATH = Path(__file__).parent / 'docs' / 'README.md' setup( name=CMD_NAME, @@ -19,7 +14,7 @@ def read(fname): author='Daniel Rojas', #author_email='', description='Easily document cables and wiring harnesses', - long_description=read(Path(__file__).parent / 'docs/README.md'), + long_description=open(README_PATH).read(), long_description_content_type='text/markdown', install_requires=[ 'pyyaml',