Replaced src/kibot and src/kiplot by entry points

- When using setup.py (pip and Debian)
- Also fixed comment in src/kibot
- Also changed OS to Independent
This commit is contained in:
Salvador E. Tropea 2022-07-03 18:43:48 -03:00
parent 4682a5c3c2
commit e98c0cf933
2 changed files with 7 additions and 5 deletions

View File

@ -18,7 +18,8 @@ setup(name='kibot',
url=__url__,
# Packages are marked using __init__.py
packages=find_packages(),
scripts=['src/kibot', 'src/kiplot', 'src/kibot-check'],
scripts=['src/kibot-check'],
entry_points={'console_scripts': ['kibot=kibot.__main__:main', 'kiplot=kibot.__main__:main']},
install_requires=__pypi_deps__,
include_package_data=True,
classifiers=['Development Status :: 5 - Production/Stable',
@ -26,7 +27,8 @@ setup(name='kibot',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
# 'Operating System :: POSIX :: Linux',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],

View File

@ -1,13 +1,13 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Salvador E. Tropea
# Copyright (c) 2020 Instituto Nacional de Tecnología Industrial
# Copyright (c) 2020-2022 Salvador E. Tropea
# Copyright (c) 2020-2022 Instituto Nacional de Tecnología Industrial
# License: GPL-3.0
# Project: KiBot (formerly KiPlot)
"""
KiBot
A tool to automate the generattio of KiCad output documents,
A tool to automate the generation of KiCad output documents.
"""
import sys
import os