From c42b2f4b07de15afc72c1084d009c2aa329df7d0 Mon Sep 17 00:00:00 2001 From: Adam Labus Date: Sun, 3 Mar 2024 19:53:42 +0100 Subject: [PATCH 1/5] Added port aws-sam-cli --- devel/aws-sam-cli/Makefile | 42 +++++++++++++++++++++++++++++++++++++ devel/aws-sam-cli/distinfo | 2 ++ devel/aws-sam-cli/pkg-descr | 9 ++++++++ 3 files changed, 53 insertions(+) create mode 100644 devel/aws-sam-cli/Makefile create mode 100644 devel/aws-sam-cli/distinfo create mode 100644 devel/aws-sam-cli/pkg-descr diff --git a/devel/aws-sam-cli/Makefile b/devel/aws-sam-cli/Makefile new file mode 100644 index 0000000000000..45f6f2ac6fdff --- /dev/null +++ b/devel/aws-sam-cli/Makefile @@ -0,0 +1,42 @@ +PORTNAME= aws-sam-cli +PORTVERSION= 1.110.0 +PORTREVISION= 1.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= adam.labuznik@gmail.com +COMMENT= The AWS Serverless Application Model CLI +WWW= https://github.com/aws/aws-sam-cli \ + https://docs.aws.amazon.com/serverless-application-model/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS = ${PYTHON_PKGNAMEPREFIX}chevron>0:textproc/py-chevron@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}click flask boto3>0:www/py-boto3@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}cookiecutter docker dateparser>0:devel/py-dateparser@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}watchdog>0:devel/py-watchdog@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}translator>0:devel/py-aws-sam-translator@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-ruamel.yaml@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}builders>0:devel/py-aws-lambda-builders@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}extensions>0:devel/py-typing-extensions@${PY_FLAVOUR} \ +${PYTHON_PKGNAMEPREFIX}lint>0:devel/py-cfn-lint@${PY_FLAVOUR} \ + +USES= python +USE_PYTHON= autoplist concurrent distutils pytest + +NO_ARCH= yes + +CPE_VENDOR= python + +.include diff --git a/devel/aws-sam-cli/distinfo b/devel/aws-sam-cli/distinfo new file mode 100644 index 0000000000000..ca148568ebe0a --- /dev/null +++ b/devel/aws-sam-cli/distinfo @@ -0,0 +1,2 @@ +SHA256 (aws-sam-cli-1.110.0.tar.gz) = 35d585fe1b8598747a50f736b2a1ce2def069118a1cccb4f3d5391cb0ace427e +SIZE (aws-sam-cli-1.110.0.tar.gz) = 5579002 diff --git a/devel/aws-sam-cli/pkg-descr b/devel/aws-sam-cli/pkg-descr new file mode 100644 index 0000000000000..36772e8032afd --- /dev/null +++ b/devel/aws-sam-cli/pkg-descr @@ -0,0 +1,9 @@ +The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool that helps you develop serverless applications containing [Lambda functions](https://aws.amazon.com/lambda/), [Step Functions](https://aws.amazon.com/step-functions/), [API Gateway](https://aws.amazon.com/api-gateway/), [EventBridge](https://aws.amazon.com/eventbridge/), [SQS](https://aws.amazon.com/sqs/), [SNS](https://aws.amazon.com/sns/) and more. Some of the features it provides are: + +* **Initialize serverless applications** in minutes with AWS-provided infrastructure templates with `sam init` +* **Compile, build, and package** Lambda functions with provided runtimes and with custom Makefile workflows, for zip and image types of Lambda functions with `sam build` +* **Locally test** a Lambda function and API Gateway easily in a Docker container with `sam local` commands on SAM and CDK applications +* **Sync and test your changes in the cloud** with `sam sync` in your developer environments +* **Deploy** your SAM and CloudFormation templates using `sam deploy` +* Quickly **create pipelines** with prebuilt templates with popular CI/CD systems using `sam pipeline init` +* **Tail CloudWatch logs and X-Ray traces** with `sam logs` and `sam traces` From bf2379c568f7370f032009147011b61eb94133f1 Mon Sep 17 00:00:00 2001 From: Adam Labus Date: Sun, 3 Mar 2024 20:28:06 +0100 Subject: [PATCH 2/5] Edited aws-sam-cli pkg-descr --- devel/aws-sam-cli/pkg-descr | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/devel/aws-sam-cli/pkg-descr b/devel/aws-sam-cli/pkg-descr index 36772e8032afd..47db6e8a33bda 100644 --- a/devel/aws-sam-cli/pkg-descr +++ b/devel/aws-sam-cli/pkg-descr @@ -1,9 +1,10 @@ -The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool that helps you develop serverless applications containing [Lambda functions](https://aws.amazon.com/lambda/), [Step Functions](https://aws.amazon.com/step-functions/), [API Gateway](https://aws.amazon.com/api-gateway/), [EventBridge](https://aws.amazon.com/eventbridge/), [SQS](https://aws.amazon.com/sqs/), [SNS](https://aws.amazon.com/sns/) and more. Some of the features it provides are: +The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool that helps you develop serverless applications containing Lambda functions (https://aws.amazon.com/lambda/), Step Functions (https://aws.amazon.com/step-functions/), API Gateway (https://aws.amazon.com/api-gateway/), EventBridge (https://aws.amazon.com/eventbridge/), SQS (https://aws.amazon.com/sqs/), SNS (https://aws.amazon.com/sns/) and more. -* **Initialize serverless applications** in minutes with AWS-provided infrastructure templates with `sam init` -* **Compile, build, and package** Lambda functions with provided runtimes and with custom Makefile workflows, for zip and image types of Lambda functions with `sam build` -* **Locally test** a Lambda function and API Gateway easily in a Docker container with `sam local` commands on SAM and CDK applications -* **Sync and test your changes in the cloud** with `sam sync` in your developer environments -* **Deploy** your SAM and CloudFormation templates using `sam deploy` -* Quickly **create pipelines** with prebuilt templates with popular CI/CD systems using `sam pipeline init` -* **Tail CloudWatch logs and X-Ray traces** with `sam logs` and `sam traces` +Features: + - Initialize serverless applications in minutes with AWS-provided infrastructure templates with `sam init` + - Compile, build, and package Lambda functions with provided runtimes and with custom Makefile workflows, for zip and image types of Lambda functions with `sam build` + - Locally test a Lambda function and API Gateway easily in a Docker container with `sam local` commands on SAM and CDK applications + - Sync and test your changes in the cloud with `sam sync` in your developer environments + - Deploy your SAM and CloudFormation templates using `sam deploy` + - Quickly create pipelines with prebuilt templates with popular CI/CD systems using `sam pipeline init` + - Tail CloudWatch logs and X-Ray traces** with `sam logs` and `sam traces` From b75c354e25285e8023f7c5d9f751bb32dc139d57 Mon Sep 17 00:00:00 2001 From: Adam Labus Date: Sat, 9 Mar 2024 13:10:48 +0100 Subject: [PATCH 3/5] Fixed dependencies --- devel/aws-sam-cli/Makefile | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/devel/aws-sam-cli/Makefile b/devel/aws-sam-cli/Makefile index 45f6f2ac6fdff..344e0ed5a4355 100644 --- a/devel/aws-sam-cli/Makefile +++ b/devel/aws-sam-cli/Makefile @@ -13,24 +13,25 @@ WWW= https://github.com/aws/aws-sam-cli \ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS = ${PYTHON_PKGNAMEPREFIX}chevron>0:textproc/py-chevron@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}click flask boto3>0:www/py-boto3@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}cookiecutter docker dateparser>0:devel/py-dateparser@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}watchdog>0:devel/py-watchdog@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}translator>0:devel/py-aws-sam-translator@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-ruamel.yaml@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}builders>0:devel/py-aws-lambda-builders@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}extensions>0:devel/py-typing-extensions@${PY_FLAVOUR} \ -${PYTHON_PKGNAMEPREFIX}lint>0:devel/py-cfn-lint@${PY_FLAVOUR} \ +RUN_DEPENDS = ${PYTHON_PKGNAMEPREFIX}cfn-lint>0:devel/py-cfn-lint@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}cookiecutter>0:devel/py-cookiecutter@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}docker>0:sysutils/py-docker@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}dateparser>0:devel/py-dateparser@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}watchdog>0:devel/py-watchdog@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}aws-sam-translator>0:devel/py-aws-sam-translator@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}aws-lambda-builders>0:devel/py-aws-lambda-builders@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOUR} \ + ${PYTHON_PKGNAMEPREFIX}chevron>0:textproc/py-chevron@${PY_FLAVOUR} USES= python USE_PYTHON= autoplist concurrent distutils pytest From 6f09456925a02271ecf2114421f4b88e5f22fd74 Mon Sep 17 00:00:00 2001 From: Adam Labus Date: Sat, 9 Mar 2024 14:07:30 +0100 Subject: [PATCH 4/5] Ran portlint, portfmt and portclippy --- devel/aws-sam-cli/Makefile | 45 ++++++++++++++++++------------------- devel/aws-sam-cli/pkg-descr | 16 +++++++------ 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/devel/aws-sam-cli/Makefile b/devel/aws-sam-cli/Makefile index 344e0ed5a4355..9960bbd6a5a33 100644 --- a/devel/aws-sam-cli/Makefile +++ b/devel/aws-sam-cli/Makefile @@ -6,38 +6,37 @@ MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= adam.labuznik@gmail.com -COMMENT= The AWS Serverless Application Model CLI +COMMENT= AWS Serverless Application Model CLI WWW= https://github.com/aws/aws-sam-cli \ https://docs.aws.amazon.com/serverless-application-model/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS = ${PYTHON_PKGNAMEPREFIX}cfn-lint>0:devel/py-cfn-lint@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}cookiecutter>0:devel/py-cookiecutter@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}docker>0:sysutils/py-docker@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}dateparser>0:devel/py-dateparser@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}watchdog>0:devel/py-watchdog@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}aws-sam-translator>0:devel/py-aws-sam-translator@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}aws-lambda-builders>0:devel/py-aws-lambda-builders@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOUR} \ - ${PYTHON_PKGNAMEPREFIX}chevron>0:textproc/py-chevron@${PY_FLAVOUR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aws-lambda-builders>0:devel/py-aws-lambda-builders@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}aws-sam-translator>0:devel/py-aws-sam-translator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cfn-lint>0:devel/py-cfn-lint@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}chevron>0:textproc/py-chevron@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cookiecutter>0:devel/py-cookiecutter@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateparser>0:devel/py-dateparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docker>0:sysutils/py-docker@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}watchdog>0:devel/py-watchdog@${PY_FLAVOR} -USES= python +USES= cpe python +CPE_VENDOR= python USE_PYTHON= autoplist concurrent distutils pytest NO_ARCH= yes -CPE_VENDOR= python - .include diff --git a/devel/aws-sam-cli/pkg-descr b/devel/aws-sam-cli/pkg-descr index 47db6e8a33bda..6a608a79057ad 100644 --- a/devel/aws-sam-cli/pkg-descr +++ b/devel/aws-sam-cli/pkg-descr @@ -1,10 +1,12 @@ -The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool that helps you develop serverless applications containing Lambda functions (https://aws.amazon.com/lambda/), Step Functions (https://aws.amazon.com/step-functions/), API Gateway (https://aws.amazon.com/api-gateway/), EventBridge (https://aws.amazon.com/eventbridge/), SQS (https://aws.amazon.com/sqs/), SNS (https://aws.amazon.com/sns/) and more. +The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool +that helps you develop serverless applications containing Lambda functions, +Step Functions, API Gateway, EventBridge, SQS, SNS and more. Features: - - Initialize serverless applications in minutes with AWS-provided infrastructure templates with `sam init` - - Compile, build, and package Lambda functions with provided runtimes and with custom Makefile workflows, for zip and image types of Lambda functions with `sam build` - - Locally test a Lambda function and API Gateway easily in a Docker container with `sam local` commands on SAM and CDK applications - - Sync and test your changes in the cloud with `sam sync` in your developer environments + - Initialize serverless applications in minutes + - Compile, build, and package Lambda functions + - Locally test a Lambda function and API Gateway + - Sync and test your changes in the cloud with `sam sync` - Deploy your SAM and CloudFormation templates using `sam deploy` - - Quickly create pipelines with prebuilt templates with popular CI/CD systems using `sam pipeline init` - - Tail CloudWatch logs and X-Ray traces** with `sam logs` and `sam traces` + - Quickly create pipelines with prebuilt templates + - Tail CloudWatch logs and X-Ray traces From 6d44ce0889cf068b15abb0f42b4807d4302fdff3 Mon Sep 17 00:00:00 2001 From: Adam Labus Date: Fri, 15 Mar 2024 22:40:02 +0100 Subject: [PATCH 5/5] Added flask --- devel/aws-sam-cli/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/aws-sam-cli/Makefile b/devel/aws-sam-cli/Makefile index 9960bbd6a5a33..cb923584b6a38 100644 --- a/devel/aws-sam-cli/Makefile +++ b/devel/aws-sam-cli/Makefile @@ -13,7 +13,8 @@ WWW= https://github.com/aws/aws-sam-cli \ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aws-lambda-builders>0:devel/py-aws-lambda-builders@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flask>0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}aws-lambda-builders>0:devel/py-aws-lambda-builders@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}aws-sam-translator>0:devel/py-aws-sam-translator@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cfn-lint>0:devel/py-cfn-lint@${PY_FLAVOR} \