From 590f9efc93cefcd5a10c42a0f0e906cc03115b3b Mon Sep 17 00:00:00 2001 From: Heitor Lessa Date: Sun, 14 Feb 2021 10:01:21 +0100 Subject: [PATCH 1/9] chore: add auto-label for known files --- .github/labeler.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..c2201856e0e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,25 @@ + +# Label general purpose utilities +area/utilities: + - aws_lambda_powertools_python/utilities/**/* + - aws_lambda_powertools_python/middleware_factory/* + +# Label core utilities +area/logger: + - aws_lambda_powertools_python/logging/* + +area/tracer: + - aws_lambda_powertools_python/tracing/* + +area/metrics: + - aws_lambda_powertools_python/metrics/* + +documentation: + - aws_lambda_powertools_python/docs/* + - ./mkdocs.yml + +internal: + - ./Makefile + - ./CHANGELOG.md + - ./CONTRIBUTING.md + From 3d9ffb00fa0e4b7da57ec38599aae899bf300b2e Mon Sep 17 00:00:00 2001 From: Heitor Lessa Date: Sun, 14 Feb 2021 10:04:06 +0100 Subject: [PATCH 2/9] chore: enable PR labeler workflow --- .github/workflows/labeler.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..5ec42cce815 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "PR Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From b9fef536e226f09cc14b7aca7cb9ef5be546d9cd Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Sun, 14 Feb 2021 09:14:47 -0800 Subject: [PATCH 3/9] chore: Correct the docs location (#289) --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index c2201856e0e..f1c2928a7c7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -15,7 +15,7 @@ area/metrics: - aws_lambda_powertools_python/metrics/* documentation: - - aws_lambda_powertools_python/docs/* + - docs/* - ./mkdocs.yml internal: From 2f840bfbaa3390ddaa81aa2b34f17832e4ef5e3c Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Sun, 14 Feb 2021 23:10:51 -0800 Subject: [PATCH 4/9] docs(data-classes): Fix anchor tags to be lower case (#288) --- docs/utilities/data_classes.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/utilities/data_classes.md b/docs/utilities/data_classes.md index d310c5955fa..464942995fb 100644 --- a/docs/utilities/data_classes.md +++ b/docs/utilities/data_classes.md @@ -33,15 +33,15 @@ Event Source | Data_class ------------------------------------------------- | --------------------------------------------------------------------------------- [API Gateway Proxy](#api-gateway-proxy) | `APIGatewayProxyEvent` [API Gateway Proxy event v2](#api-gateway-proxy-v2) | `APIGatewayProxyEventV2` -[CloudWatch Logs](#cloudWatch-logs) | `CloudWatchLogsEvent` -[Cognito User Pool](#cognito-user-pool-triggers) | Multiple available under `cognito_user_pool_event` -[DynamoDB streams](#dynamoDB-streams) | `DynamoDBStreamEvent`, `DynamoDBRecordEventName` +[CloudWatch Logs](#cloudwatch-logs) | `CloudWatchLogsEvent` +[Cognito User Pool](#cognito-user-pool) | Multiple available under `cognito_user_pool_event` +[DynamoDB streams](#dynamodb-streams) | `DynamoDBStreamEvent`, `DynamoDBRecordEventName` [EventBridge](#eventbridge) | `EventBridgeEvent` [Kinesis Data Stream](#kinesis-streams) | `KinesisStreamEvent` -[S3](#S3) | `S3Event` -[SES](#SES) | `SESEvent` -[SNS](#SNS) | `SNSEvent` -[SQS](#SQS) | `SQSEvent` +[S3](#s3) | `S3Event` +[SES](#ses) | `SESEvent` +[SNS](#sns) | `SNSEvent` +[SQS](#sqs) | `SQSEvent` !!! info From 2f48a4164ae188d94548af5887bc3032fd2aa08d Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Tue, 16 Feb 2021 08:44:47 +0100 Subject: [PATCH 5/9] revert: search input size Signed-off-by: heitorlessa --- docs/stylesheets/extra.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index b74c050c58d..831c864fd5f 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -25,7 +25,3 @@ .md-typeset .admonition, .md-typeset details { font-size: 0.70rem } - -.md-search__inner { - width: 45vw; -} From c9915e250184f1339e8939d09512c10f144915cf Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Tue, 16 Feb 2021 08:45:14 +0100 Subject: [PATCH 6/9] fix: meta tags, and ext link to open in new tab Signed-off-by: heitorlessa --- mkdocs.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index b3030c6b429..0298a4864a6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,8 +1,10 @@ -site_name: AWS Lambda Powertools Python +site_name: Lambda Powertools Python +site_description: AWS Lambda Powertools for Python +site_author: Amazon Web Services nav: - Homepage: index.md - Changelog: changelog.md - - API reference: 'https://awslabs.github.io/aws-lambda-powertools-python/api/' + - API reference: https://awslabs.github.io/aws-lambda-powertools-python/api/" target="_blank - Core utilities: - core/tracer.md - core/logger.md @@ -42,7 +44,7 @@ markdown_extensions: - meta - toc: permalink: true - toc_depth: 3 + toc_depth: 4 - attr_list copyright: Copyright © 2021 Amazon Web Services @@ -60,5 +62,3 @@ extra_javascript: repo_url: https://github.com/awslabs/aws-lambda-powertools-python edit_uri: edit/develop/docs - -#strict: true From dacec9a696e4813a23c2e4e0e7623aee84c31f22 Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Tue, 16 Feb 2021 08:48:34 +0100 Subject: [PATCH 7/9] fix: sync features in main page Signed-off-by: heitorlessa --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0ed16e05a05..9aa2853eaaf 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ A suite of Python utilities for AWS Lambda functions to ease adopting best pract * **[Metrics](https://awslabs.github.io/aws-lambda-powertools-python/core/metrics/)** - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF) * **[Bring your own middleware](https://awslabs.github.io/aws-lambda-powertools-python/utilities/middleware_factory/)** - Decorator factory to create your own middleware to run logic before, and after each Lambda invocation * **[Parameters utility](https://awslabs.github.io/aws-lambda-powertools-python/utilities/parameters/)** - Retrieve and cache parameter values from Parameter Store, Secrets Manager, or DynamoDB +* **[Batch processing](https://awslabs.github.io/aws-lambda-powertools-python/utilities/batch)** - Handle partial failures for AWS SQS batch processing +* **[Typing](https://awslabs.github.io/aws-lambda-powertools-python/utilities/typing)** - Static typing classes to speedup development in your IDE +* **[Validation](https://awslabs.github.io/aws-lambda-powertools-python/utilities/validation)** - JSON Schema validator for inbound events and responses +* **[Event source data classes](https://awslabs.github.io/aws-lambda-powertools-python/utilities/data_classes)** - Data classes describing the schema of common Lambda event triggers +* **[Parser](https://awslabs.github.io/aws-lambda-powertools-python/utilities/parser)** - Data parsing and deep validation using Pydantic ### Installation From f2820cf4a187f3b67fe1339cf4163651b50db236 Mon Sep 17 00:00:00 2001 From: Heitor Lessa Date: Tue, 16 Feb 2021 09:14:09 +0100 Subject: [PATCH 8/9] chore: add default runtime key --- docs/javascript/extra.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/javascript/extra.js b/docs/javascript/extra.js index e8d7b8f6d33..0ade322a60a 100644 --- a/docs/javascript/extra.js +++ b/docs/javascript/extra.js @@ -9,6 +9,8 @@ const awsconfig = { "aws_kinesis_firehose_stream_name": "ClickStreamKinesisFirehose-OGX7PQdrynUo", }; +const RUNTIME = "python" + const attachListeners = () => { /* Register handler to log search on blur */ document.addEventListener("DOMContentLoaded", function () { @@ -59,7 +61,8 @@ const recordPageView = ({prevLocation, searchPattern}) => { url: searchPattern ? null : window.location.href, section: searchPattern ? null : location.pathname, previous: prevLocation || null, - search: searchPattern || null + search: searchPattern || null, + language: RUNTIME }, streamName: awsconfig.aws_kinesis_firehose_stream_name }, 'AWSKinesisFirehose') From 103d2156843c9de7503168f0d5cdf558656c3936 Mon Sep 17 00:00:00 2001 From: Tom McCarthy Date: Wed, 17 Feb 2021 09:44:50 +0100 Subject: [PATCH 9/9] chore: version bump to 1.10.4 (#291) --- CHANGELOG.md | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfe297d3d25..011ede905a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) fo ## [Unreleased] +## [1.10.4] - 2021-02-17 + +### Fixed + +* **Docs**: Fix anchor tags to be lower case +* **Docs**: Correct the docs location for the labeller + ## [1.10.3] - 2021-02-04 ### Added diff --git a/pyproject.toml b/pyproject.toml index a6c8101d760..caeb66b935b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aws_lambda_powertools" -version = "1.10.3" +version = "1.10.4" description = "Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric" authors = ["Amazon Web Services"] include = ["aws_lambda_powertools/py.typed"]