From b28f518bb6613bcb37bbe6bd5013a9e5eedbca16 Mon Sep 17 00:00:00 2001 From: patrzhan <139926810+patrzhan@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:51:17 -0800 Subject: [PATCH] feat: templates now generates artifacts based on component name (#44) * feat: templates now generates artifacts based on component name * fix: update minimum gdk version for python templates to 1.3.0 --- templates/python/HelloWorld/gdk-config.json | 9 ++++++--- templates/python/HelloWorld/recipe.yaml | 4 ++-- templates/python/LocalPubSub/gdk-config.json | 7 +++++-- templates/python/LocalPubSub/recipe.yaml | 4 ++-- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/templates/python/HelloWorld/gdk-config.json b/templates/python/HelloWorld/gdk-config.json index 0066149..993ec33 100644 --- a/templates/python/HelloWorld/gdk-config.json +++ b/templates/python/HelloWorld/gdk-config.json @@ -4,7 +4,10 @@ "author": "", "version": "NEXT_PATCH", "build": { - "build_system": "zip" + "build_system": "zip", + "options": { + "zip_name": "" + } }, "publish": { "bucket": "", @@ -12,5 +15,5 @@ } } }, - "gdk_version": "1.0.0" -} \ No newline at end of file + "gdk_version": "1.3.0" +} diff --git a/templates/python/HelloWorld/recipe.yaml b/templates/python/HelloWorld/recipe.yaml index 6219e4f..7601d52 100644 --- a/templates/python/HelloWorld/recipe.yaml +++ b/templates/python/HelloWorld/recipe.yaml @@ -11,7 +11,7 @@ Manifests: - Platform: os: all Artifacts: - - URI: "s3://BUCKET_NAME/COMPONENT_NAME/COMPONENT_VERSION/HelloWorld.zip" + - URI: "s3://BUCKET_NAME/COMPONENT_NAME/COMPONENT_VERSION/com.example.PythonHelloWorld.zip" Unarchive: ZIP Lifecycle: - Run: "python3 -u {artifacts:decompressedPath}/HelloWorld/main.py {configuration:/Message}" \ No newline at end of file + Run: "python3 -u {artifacts:decompressedPath}/com.example.PythonHelloWorld/main.py {configuration:/Message}" \ No newline at end of file diff --git a/templates/python/LocalPubSub/gdk-config.json b/templates/python/LocalPubSub/gdk-config.json index b5b5099..3be02f0 100644 --- a/templates/python/LocalPubSub/gdk-config.json +++ b/templates/python/LocalPubSub/gdk-config.json @@ -4,7 +4,10 @@ "author": "", "version": "NEXT_PATCH", "build": { - "build_system": "zip" + "build_system": "zip", + "options": { + "zip_name": "" + } }, "publish": { "bucket": "", @@ -12,5 +15,5 @@ } } }, - "gdk_version": "1.0.0" + "gdk_version": "1.3.0" } diff --git a/templates/python/LocalPubSub/recipe.yaml b/templates/python/LocalPubSub/recipe.yaml index 8216217..43af908 100644 --- a/templates/python/LocalPubSub/recipe.yaml +++ b/templates/python/LocalPubSub/recipe.yaml @@ -21,7 +21,7 @@ Manifests: - Platform: os: all Artifacts: - - URI: "s3://BUCKET_NAME/COMPONENT_NAME/COMPONENT_VERSION/LocalPubSub.zip" + - URI: "s3://BUCKET_NAME/COMPONENT_NAME/COMPONENT_VERSION/com.example.PythonLocalPubSub.zip" Unarchive: ZIP Lifecycle: - Run: "python3 -u {artifacts:decompressedPath}/LocalPubSub/main.py {configuration:/Topic} {configuration:/Message}" + Run: "python3 -u {artifacts:decompressedPath}/com.example.PythonLocalPubSub/main.py {configuration:/Topic} {configuration:/Message}"