From e837ef3ff1f09d5401826fc664d5408e7729a4c7 Mon Sep 17 00:00:00 2001 From: Nils Brueggemann <nils.brueggemann@mpimet.mpg.de> Date: Tue, 19 Nov 2024 21:22:59 +0100 Subject: [PATCH] setup.py: Added entry points for some scripts like pyic_fig etc. --- setup.py | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/setup.py b/setup.py index 868a51f..7048028 100644 --- a/setup.py +++ b/setup.py @@ -11,20 +11,28 @@ with open("requirements.txt") as f: install_requires = f.read().strip().split("\n") setup( - name='pyicon-diagnostics', - version=version, - description='Diagnostic python software package for ICON', - long_description=long_description, - long_description_content_type='text/markdown', - url='https://gitlab.dkrz.de/m300602/pyicon', - author='The pyicon development team', - author_email='nils.brueggemann@mpimet.mpg.de', - install_requires=install_requires, - packages=find_packages(), - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - setup_requires=['setuptools'], + name='pyicon-diagnostics', + version=version, + description='Diagnostic python software package for ICON', + long_description=long_description, + long_description_content_type='text/markdown', + url='https://gitlab.dkrz.de/m300602/pyicon', + author='The pyicon development team', + author_email='nils.brueggemann@mpimet.mpg.de', + install_requires=install_requires, + packages=find_packages(), + entry_points={ + 'console_scripts': [ + 'pyic_intake = tools.pyic_intake:main', + 'pyic_fig = tools.pyic_fig:main', + 'pyic_sec = tools.pyic_sec:main', + 'pyic_anim = tools.pyic_anim:main', + ], + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + setup_requires=['setuptools'], ) -- GitLab