Skip to content

Commit

Permalink
comments: add comments on runtime ordering per language
Browse files Browse the repository at this point in the history
- re-order runtimes per comment
  • Loading branch information
sriram-mv committed Jul 16, 2019
1 parent 2e5f7f1 commit 666e366
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samcli/local/common/runtime_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
_init_path = str(pathlib.Path(os.path.dirname(__file__)).parent)
_templates = os.path.join(_init_path, 'init', 'templates')


# Note(TheSriram): The ordering of the runtimes list per language is based on the latest to oldest.
RUNTIME_DEP_TEMPLATE_MAPPING = {
"python": [
{
"runtimes": ["python2.7", "python3.6", "python3.7"],
"runtimes": ["python3.7", "python3.6", "python2.7"],
"dependency_manager": "pip",
"init_location": os.path.join(_templates, "cookiecutter-aws-sam-hello-python"),
"build": True
Expand Down Expand Up @@ -46,7 +48,7 @@
],
"dotnet": [
{
"runtimes": ["dotnetcore", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1"],
"runtimes": ["dotnetcore2.1", "dotnetcore2.0", "dotnetcore1.0", "dotnetcore"],
"dependency_manager": "cli-package",
"init_location": os.path.join(_templates, "cookiecutter-aws-sam-hello-dotnet"),
"build": True
Expand Down

0 comments on commit 666e366

Please sign in to comment.