Skip to content

Commit ddf1dd1

Browse files
authored
Merge branch 'develop' into func_url
2 parents 225319c + 0e20ee0 commit ddf1dd1

File tree

5 files changed

+93
-29
lines changed

5 files changed

+93
-29
lines changed

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

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

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

poetry.lock

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

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ pytest-benchmark = "^3.4.1"
6666
mypy-boto3-cloudwatch = "^1.24.35"
6767
mypy-boto3-lambda = "^1.24.0"
6868
mypy-boto3-xray = "^1.24.0"
69-
types-requests = "^2.28.7"
69+
types-requests = "^2.28.8"
7070
typing-extensions = { version = "^4.3.0", python = ">=3.7" }
71+
python-snappy = "^0.6.1"
7172

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

0 commit comments

Comments
 (0)