From e98c0cf93374b964524c450ab4f88470399ae0e8 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sun, 3 Jul 2022 18:43:48 -0300 Subject: [PATCH] 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 --- setup.py | 6 ++++-- src/kibot | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index fd80e9eb..6af83934 100755 --- a/setup.py +++ b/setup.py @@ -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)', ], diff --git a/src/kibot b/src/kibot index b0159449..7cc1a9b2 100755 --- a/src/kibot +++ b/src/kibot @@ -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