Skip to content

Commit 20be2f6

Browse files
authored
Merge branch 'awslabs:develop' into develop
2 parents 3336f81 + fe2cf13 commit 20be2f6

34 files changed

+1974
-311
lines changed

.github/workflows/publish.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ name: Publish to PyPi
3030
# 2. Use the version released under Releases e.g. v1.13.0
3131
#
3232

33+
#
34+
# === Documentation hotfix ===
35+
#
36+
# Look for rebuild latest docs workflow
37+
38+
3339
on:
3440
release:
3541
types: [published]
36-
workflow_dispatch:
37-
inputs:
38-
publish_version:
39-
description: 'Version to publish, e.g. v1.13.0'
40-
required: true
4142

4243
jobs:
4344
release:
@@ -53,8 +54,6 @@ jobs:
5354
- name: Set release notes tag
5455
run: |
5556
RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
56-
# Replace publishing version if the workflow was triggered manually
57-
test -n $RELEASE_TAG_VERSION && RELEASE_TAG_VERSION=${{ github.event.inputs.publish_version }}
5857
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
5958
- name: Ensure new version is also set in pyproject and CHANGELOG
6059
run: |
@@ -81,14 +80,15 @@ jobs:
8180
aws ssm put-parameter --name "powertools-python-release-version" --value $RELEASE_TAG_VERSION --overwrite
8281
aws codepipeline start-pipeline-execution --name ${{ secrets.CODEPIPELINE_NAME }}
8382
env:
83+
# Maintenance: Migrate to new OAuth mechanism
8484
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
8585
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
8686
AWS_DEFAULT_REGION: eu-west-1
8787
AWS_DEFAULT_OUTPUT: json
8888
- name: Setup doc deploy
8989
run: |
9090
git config --global user.name Docs deploy
91-
git config --global user.email [email protected].com
91+
git config --global user.email aws-devax-open-source@amazon.com
9292
- name: Build docs website and API reference
9393
run: |
9494
make release-docs VERSION=${RELEASE_TAG_VERSION} ALIAS="latest"
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Rebuild latest docs
2+
3+
#
4+
# === Documentation hotfix ===
5+
#
6+
# 1. Trigger "Rebuild latest docs" workflow manually: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
7+
# 2. Use the latest version released under Releases e.g. v1.22.0
8+
# 3. Set `Build and publish docs only` field to `true`
9+
10+
11+
on:
12+
workflow_dispatch:
13+
inputs:
14+
latest_published_version:
15+
description: 'Latest PyPi published version to rebuild latest docs for, e.g. v1.22.0'
16+
default: 'v1.22.0'
17+
required: true
18+
19+
20+
jobs:
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 0
27+
- name: Set up Python
28+
uses: actions/[email protected]
29+
with:
30+
python-version: "3.8"
31+
- name: Set release notes tag
32+
run: |
33+
RELEASE_TAG_VERSION=${{ github.event.inputs.latest_published_version }}
34+
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
35+
- name: Ensure new version is also set in pyproject and CHANGELOG
36+
run: |
37+
grep --regexp "${RELEASE_TAG_VERSION}" CHANGELOG.md
38+
grep --regexp "version \= \"${RELEASE_TAG_VERSION}\"" pyproject.toml
39+
- name: Install dependencies
40+
run: make dev
41+
- name: Setup doc deploy
42+
run: |
43+
git config --global user.name Docs deploy
44+
git config --global user.email [email protected]
45+
- name: Build docs website and API reference
46+
run: |
47+
make release-docs VERSION=${RELEASE_TAG_VERSION} ALIAS="latest"
48+
poetry run mike set-default --push latest
49+
- name: Release API docs to release version
50+
uses: peaceiris/actions-gh-pages@v3
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
publish_dir: ./api
54+
keep_files: true
55+
destination_dir: ${{ env.RELEASE_TAG_VERSION }}/api
56+
- name: Release API docs to latest
57+
uses: peaceiris/actions-gh-pages@v3
58+
with:
59+
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
publish_dir: ./api
61+
keep_files: true
62+
destination_dir: latest/api

CHANGELOG.md

+59
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,71 @@ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) fo
77

88
## [Unreleased]
99

10+
## 1.22.0 - 2021-11-17
11+
12+
Tenet update! We've updated **Idiomatic** tenet to **Progressive** to reflect the new Router feature in Event Handler, and more importantly the new wave of customers coming from SRE, Data Analysis, and Data Science background.
13+
14+
* BEFORE: **Idiomatic**. Utilities follow programming language idioms and language-specific best practices.
15+
* AFTER: **Progressive**. Utilities are designed to be incrementally adoptable for customers at any stage of their Serverless journey. They follow language idioms and their community’s common practices.
16+
### Bug Fixes
17+
18+
* **ci:** change supported python version from 3.6.1 to 3.6.2, bump black ([#807](https://github.com/awslabs/aws-lambda-powertools-python/issues/807))
19+
* **ci:** skip sync master on docs hotfix
20+
* **parser:** body and query strings can be null or omitted in ApiGatewayProxyEventModel and ApiGatewayProxyEventV2Model ([#820](https://github.com/awslabs/aws-lambda-powertools-python/issues/820))
21+
22+
### Code Refactoring
23+
24+
* **apigateway:** Add BaseRouter and duplicate route check ([#757](https://github.com/awslabs/aws-lambda-powertools-python/issues/757))
25+
26+
### Documentation
27+
28+
* **docs:** updated Lambda Layers definition & limitations. ([#775](https://github.com/awslabs/aws-lambda-powertools-python/issues/775))
29+
* **docs:** Idiomatic tenet updated to Progressive
30+
* **docs:** use higher contrast font to improve accessibility ([#822](https://github.com/awslabs/aws-lambda-powertools-python/issues/822))
31+
* **docs:** fix indentation of SAM snippets in install section ([#778](https://github.com/awslabs/aws-lambda-powertools-python/issues/778))
32+
* **docs:** improve public lambda layer wording, add clipboard buttons to improve UX ([#762](https://github.com/awslabs/aws-lambda-powertools-python/issues/762))
33+
* **docs:** add amplify-cli instructions for public layer ([#754](https://github.com/awslabs/aws-lambda-powertools-python/issues/754))
34+
* **api-gateway:** add new router feature to allow route splitting in API Gateway and ALB ([#767](https://github.com/awslabs/aws-lambda-powertools-python/issues/767))
35+
* **apigateway:** re-add sample layout, add considerations ([#826](https://github.com/awslabs/aws-lambda-powertools-python/issues/826))
36+
* **appsync:** add new router feature to allow GraphQL Resolver composition ([#821](https://github.com/awslabs/aws-lambda-powertools-python/issues/821))
37+
* **idempotency:** add support for DynamoDB composite keys ([#808](https://github.com/awslabs/aws-lambda-powertools-python/issues/808))
38+
* **tenets:** update Idiomatic tenet to Progressive ([#823](https://github.com/awslabs/aws-lambda-powertools-python/issues/823))
39+
* **docs:** remove Lambda Layer version tag
40+
### Features
41+
42+
* **apigateway:** add Router to allow large routing composition ([#645](https://github.com/awslabs/aws-lambda-powertools-python/issues/645))
43+
* **appsync:** add Router to allow large resolver composition ([#776](https://github.com/awslabs/aws-lambda-powertools-python/issues/776))
44+
* **data-classes:** ActiveMQ and RabbitMQ support ([#770](https://github.com/awslabs/aws-lambda-powertools-python/issues/770))
45+
* **logger:** add ALB correlation ID support ([#816](https://github.com/awslabs/aws-lambda-powertools-python/issues/816))
46+
47+
### Maintenance
48+
49+
* **deps:** bump boto3 from 1.19.6 to 1.20.3 ([#809](https://github.com/awslabs/aws-lambda-powertools-python/issues/809))
50+
* **deps:** bump boto3 from 1.18.58 to 1.18.59 ([#760](https://github.com/awslabs/aws-lambda-powertools-python/issues/760))
51+
* **deps:** bump urllib3 from 1.26.4 to 1.26.5 ([#787](https://github.com/awslabs/aws-lambda-powertools-python/issues/787))
52+
* **deps:** bump boto3 from 1.18.61 to 1.19.6 ([#783](https://github.com/awslabs/aws-lambda-powertools-python/issues/783))
53+
* **deps:** bump boto3 from 1.18.56 to 1.18.58 ([#755](https://github.com/awslabs/aws-lambda-powertools-python/issues/755))
54+
* **deps:** bump boto3 from 1.18.59 to 1.18.61 ([#766](https://github.com/awslabs/aws-lambda-powertools-python/issues/766))
55+
* **deps:** bump boto3 from 1.20.3 to 1.20.5 ([#817](https://github.com/awslabs/aws-lambda-powertools-python/issues/817))
56+
* **deps-dev:** bump coverage from 6.0.1 to 6.0.2 ([#764](https://github.com/awslabs/aws-lambda-powertools-python/issues/764))
57+
* **deps-dev:** bump pytest-asyncio from 0.15.1 to 0.16.0 ([#782](https://github.com/awslabs/aws-lambda-powertools-python/issues/782))
58+
* **deps-dev:** bump flake8-eradicate from 1.1.0 to 1.2.0 ([#784](https://github.com/awslabs/aws-lambda-powertools-python/issues/784))
59+
* **deps-dev:** bump flake8-comprehensions from 3.6.1 to 3.7.0 ([#759](https://github.com/awslabs/aws-lambda-powertools-python/issues/759))
60+
* **deps-dev:** bump flake8-isort from 4.0.0 to 4.1.1 ([#785](https://github.com/awslabs/aws-lambda-powertools-python/issues/785))
61+
* **deps-dev:** bump coverage from 6.0 to 6.0.1 ([#751](https://github.com/awslabs/aws-lambda-powertools-python/issues/751))
62+
* **deps-dev:** bump mkdocs-material from 7.3.3 to 7.3.5 ([#781](https://github.com/awslabs/aws-lambda-powertools-python/issues/781))
63+
* **deps-dev:** bump mkdocs-material from 7.3.5 to 7.3.6 ([#791](https://github.com/awslabs/aws-lambda-powertools-python/issues/791))
64+
* **deps-dev:** bump mkdocs-material from 7.3.2 to 7.3.3 ([#758](https://github.com/awslabs/aws-lambda-powertools-python/issues/758))
65+
1066
## 1.21.1 - 2021-10-07
1167

1268
### Regression
1369

1470
* **metrics:** typing regression on log_metrics callable ([#744](https://github.com/awslabs/aws-lambda-powertools-python/issues/744))
1571

72+
### Documentation
73+
74+
* add new public layer ARNs ([#746](https://github.com/awslabs/aws-lambda-powertools-python/issues/746))
1675
### Maintenance
1776

1877
* ignore constants in test cov ([#745](https://github.com/awslabs/aws-lambda-powertools-python/issues/745))

0 commit comments

Comments
 (0)