From 028f2953312c84e9cf17aee1849b1f294f4a157e Mon Sep 17 00:00:00 2001 From: "Jason R. Jones" Date: Fri, 24 Jul 2020 09:58:01 -0400 Subject: [PATCH] Updating setup.py to include `click` --- setup.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 09621bb..f642a8b 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,12 @@ from setuptools import setup, find_packages project_name = 'wireviz' +# utility function to read the requirements.txt file +with open('requirements.txt', 'r') as f: + requirements = f.readlines() + requirements = [r.strip() for r in requirements] + requirements = [r for r in requirements if r != '.'] + # 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 @@ -13,6 +19,7 @@ project_name = 'wireviz' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() + setup( name=project_name, version='0.1', @@ -21,10 +28,7 @@ setup( description='Easily document cables and wiring harnesses', long_description=read(os.path.join(os.path.dirname(__file__), 'README.md')), long_description_content_type='text/markdown', - install_requires=[ - 'pyyaml', - 'graphviz', - ], + install_requires=requirements, license='GPLv3', keywords='cable connector hardware harness wiring wiring-diagram wiring-harness', url='https://github.com/formatc1702/WireViz',