Simplify and clean up setup.py
This commit is contained in:
parent
35e89d4fdf
commit
8e59a14e4e
9
setup.py
9
setup.py
@ -6,12 +6,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
from src.wireviz import __version__, CMD_NAME, APP_URL
|
from src.wireviz import __version__, CMD_NAME, APP_URL
|
||||||
|
|
||||||
# Utility function to read the README file.
|
README_PATH = Path(__file__).parent / 'docs' / 'README.md'
|
||||||
# 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()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=CMD_NAME,
|
name=CMD_NAME,
|
||||||
@ -19,7 +14,7 @@ setup(
|
|||||||
author='Daniel Rojas',
|
author='Daniel Rojas',
|
||||||
#author_email='',
|
#author_email='',
|
||||||
description='Easily document cables and wiring harnesses',
|
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',
|
long_description_content_type='text/markdown',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'pyyaml',
|
'pyyaml',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user