Skip to content

Commit

Permalink
update as executable module-package
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Dec 20, 2023
1 parent 635417b commit 52d1a95
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
Empty file.
4 changes: 4 additions & 0 deletions arcaflow_plugin_template_python/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from arcaflow_plugin_template_python import cli


cli.main()
17 changes: 17 additions & 0 deletions arcaflow_plugin_template_python/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sys
from arcaflow_plugin_sdk import plugin as plugin_sdk
import arcaflow_plugin_template_python.template_python_plugin as template_plugin


def main():
sys.exit(
plugin_sdk.run(
plugin_sdk.build_schema(
# List your step functions here:
template_plugin.hello_world,
)
)
)

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion arcaflow_plugin_template_python/template_python_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import typing
from arcaflow_plugin_sdk import plugin
from template_python_schema import (
from arcaflow_plugin_template_python.template_python_schema import (
InputParams,
SuccessOutput,
ErrorOutput,
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ description = ""
authors = ["Arcalot"]
license = "Apache-2.0+GPL-2.0-only"

packages = [
{ include="template_python_plugin.py", from="./arcaflow_plugin_template_python" },
]

[tool.poetry.dependencies]
python = "^3.9"
arcaflow-plugin-sdk = "^0.13.0"
Expand Down

0 comments on commit 52d1a95

Please sign in to comment.