Skip to content

Commit d736e00

Browse files
committed
Merge branch 'develop' into chore/refactor-e2e
* develop: chore(deps-dev): bump types-requests from 2.28.7 to 2.28.8 (aws-powertools#1423) chore(ci): update changelog with latest changes fix(jmespath_util): snappy as dev dep and typing example (aws-powertools#1446) Signed-off-by: heitorlessa <[email protected]>
2 parents 0ba7678 + 0e20ee0 commit d736e00

File tree

6 files changed

+91
-27
lines changed

6 files changed

+91
-27
lines changed

Diff for: CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66

77
## Bug Fixes
88

9+
* **ci:** move from pip-tools to poetry on layers reusable workflow
910
* **ci:** move from pip-tools to poetry on layers to fix conflicts
1011
* **ci:** typo and bust gh actions cache
1112
* **ci:** use poetry to resolve layer deps; pip for CDK
1213
* **ci:** disable poetry venv for layer workflow as cdk ignores venv
1314
* **ci:** add cdk v2 dep for layers workflow
14-
* **ci:** move from pip-tools to poetry on layers reusable workflow
1515
* **ci:** move from pip-tools to poetry on layers
1616
* **ci:** temporarily disable changelog upon release
1717
* **ci:** add explicit origin to fix release detached head
18+
* **jmespath_util:** snappy as dev dep and typing example ([#1446](https://github.com/awslabs/aws-lambda-powertools-python/issues/1446))
1819

1920
## Documentation
2021

@@ -29,6 +30,7 @@
2930
* **ci:** update changelog with latest changes
3031
* **ci:** update changelog with latest changes
3132
* **ci:** update changelog with latest changes
33+
* **ci:** update changelog with latest changes
3234
* **ci:** reduce payload and only send prod notification
3335
* **ci:** update changelog with latest changes
3436
* **ci:** update changelog with latest changes

Diff for: aws_lambda_powertools/utilities/data_classes/lambda_function_url_event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class LambdaFunctionUrlEvent(APIGatewayProxyEventV2):
77
Notes:
88
-----
99
Lambda Function URL follows the API Gateway HTTP APIs Payload Format Version 2.0.
10-
10+
1111
Keys related to API Gateway features not available in Function URL use a sentinel value (e.g.`routeKey`, `stage`).
1212
1313
Documentation:

Diff for: examples/jmespath_functions/src/powertools_json_idempotency_jmespath.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class PaymentError(Exception):
2020
def handler(event, context) -> dict:
2121
body = json.loads(event["body"])
2222
try:
23-
payment = create_subscription_payment(user=body["user"], product_id=body["product_id"])
24-
return {"payment_id": payment.id, "message": "success", "statusCode": 200}
23+
payment: dict = create_subscription_payment(user=body["user"], product_id=body["product_id"])
24+
return {"payment_id": payment.get("id"), "message": "success", "statusCode": 200}
2525
except requests.HTTPError as e:
2626
raise PaymentError("Unable to create payment subscription") from e
2727

Diff for: mypy.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ ignore_missing_imports = True
4242
ignore_missing_imports = True
4343

4444
[mypy-aiohttp]
45-
ignore_missing_imports = True
45+
ignore_missing_imports = True
46+
47+
[mypy-snappy]
48+
ignore_missing_imports = True

Diff for: poetry.lock

+79-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ mypy-boto3-lambda = "^1.24.0"
6767
mypy-boto3-xray = "^1.24.0"
6868
mypy-boto3-s3 = { version = "^1.24.0", python = ">=3.7" }
6969
mypy-boto3-cloudformation = { version = "^1.24.0", python = ">=3.7" }
70-
types-requests = "^2.28.7"
70+
types-requests = "^2.28.8"
7171
typing-extensions = { version = "^4.3.0", python = ">=3.7" }
72+
python-snappy = "^0.6.1"
7273

7374
[tool.poetry.extras]
7475
pydantic = ["pydantic", "email-validator"]

0 commit comments

Comments
 (0)