From e5e75ff2f0131cf87d2e8616d9f8b3ce211236d7 Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sun, 10 Mar 2019 09:28:09 +0100 Subject: [PATCH] Make res2sqlite.py an entry_point rather than a script --- {scripts => galvani}/res2sqlite.py | 0 setup.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename {scripts => galvani}/res2sqlite.py (100%) diff --git a/scripts/res2sqlite.py b/galvani/res2sqlite.py similarity index 100% rename from scripts/res2sqlite.py rename to galvani/res2sqlite.py diff --git a/setup.py b/setup.py index 40130ce..0d26328 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ setup( description='Open and process battery charger log data files', url='https://github.com/chatcannon/galvani', author='Chris Kerr', + author_email='chris.kerr@mykolab.ch', license='GPLv3+', classifiers=[ 'Development Status :: 3 - Alpha', @@ -16,6 +17,8 @@ setup( 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Natural Language :: English'], packages=['galvani'], - scripts=['scripts/res2sqlite.py'], # TODO make this use entry_points + entry_points={'console_scripts': [ + 'res2sqlite = galvani.res2sqlite:main', + ]}, install_requires=['numpy'] )