Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
added standalone cli
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Mar 21, 2022
1 parent 7e394cd commit 13dbdd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions climetlab_plugin_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ def get_version():


__version__ = get_version()


class CreateDatasetPluginStandAlone:
def __init__(self):
import subprocess

subprocess.run(["climetlab", "plugin_create_dataset"])
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ def read(fname):
zip_safe=True,
entry_points={
"climetlab.scripts": [
"plugin_script_plugin_tools_1 = climetlab_plugin_tools.create_plugin_cmd:CreateDatasetPluginCmd",
]
"climetlab_plugin_tools_1 = climetlab_plugin_tools.create_plugin_cmd:CreateDatasetPluginCmd",
],
"console_scripts": [
"climetlab-plugin-create-dataset=climetlab_plugin_tools:CreateDatasetPluginStandAlone"
],
},
keywords="meteorology",
classifiers=[
Expand Down

0 comments on commit 13dbdd0

Please sign in to comment.