Skip to content

Commit

Permalink
feat: templates now generates artifacts based on component name (#44)
Browse files Browse the repository at this point in the history
* feat: templates now generates artifacts based on component name

* fix: update minimum gdk version for python templates to 1.3.0
  • Loading branch information
patrzhan authored Dec 13, 2023
1 parent bbca2f1 commit b28f518
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
9 changes: 6 additions & 3 deletions templates/python/HelloWorld/gdk-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"author": "<PLACEHOLDER_AUTHOR>",
"version": "NEXT_PATCH",
"build": {
"build_system": "zip"
"build_system": "zip",
"options": {
"zip_name": ""
}
},
"publish": {
"bucket": "<PLACEHOLDER_BUCKET>",
"region": "<PLACEHOLDER_REGION>"
}
}
},
"gdk_version": "1.0.0"
}
"gdk_version": "1.3.0"
}
4 changes: 2 additions & 2 deletions templates/python/HelloWorld/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Run: "python3 -u {artifacts:decompressedPath}/com.example.PythonHelloWorld/main.py {configuration:/Message}"
7 changes: 5 additions & 2 deletions templates/python/LocalPubSub/gdk-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"author": "<PLACEHOLDER_AUTHOR>",
"version": "NEXT_PATCH",
"build": {
"build_system": "zip"
"build_system": "zip",
"options": {
"zip_name": ""
}
},
"publish": {
"bucket": "<PLACEHOLDER_BUCKET>",
"region": "<PLACEHOLDER_REGION>"
}
}
},
"gdk_version": "1.0.0"
"gdk_version": "1.3.0"
}
4 changes: 2 additions & 2 deletions templates/python/LocalPubSub/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit b28f518

Please sign in to comment.