Skip to content

Commit

Permalink
chore: bump Lambda functions to Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
knightjoel committed Dec 11, 2022
1 parent 80082f9 commit c121da5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The solution has two phases:
## Pre-requisites

- A computer (cloud, on-prem, in your basement, doesn't matter) with the following software installed:
- Python 3.8+
- Python 3.9+
- Node.js 10.13.0 or newer
- The AWS Cloud Development Kit (CDK)
- Ability to access a shell on the computer where MediaWiki is running.
Expand Down
10 changes: 5 additions & 5 deletions mw_to_notion/mw_to_notion_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
lambda_.Architecture.ARM_64,
lambda_.Architecture.X86_64,
],
compatible_runtimes=[lambda_.Runtime.PYTHON_3_8],
compatible_runtimes=[lambda_.Runtime.PYTHON_3_9],
description="MediaWiki-to-Notion - layer for Notion modules",
removal_policy=RemovalPolicy.DESTROY,
)
Expand All @@ -244,7 +244,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
self,
"StoreNotionBlocks",
code=lambda_.Code.from_asset("lambdas/store_notion_blocks"),
runtime=lambda_.Runtime.PYTHON_3_8,
runtime=lambda_.Runtime.PYTHON_3_9,
handler="store_notion_blocks.handler",
architecture=lambda_.Architecture.ARM_64,
description="MediaWiki-to-Notion - render and store Notion blocks",
Expand Down Expand Up @@ -278,7 +278,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
{
# FIXME
"id": "AwsSolutions-L1", # latest runtime check
"reason": "Notion layer not tested with Python > 3.8",
"reason": "Notion layer not tested with Python > 3.9",
}
],
)
Expand All @@ -295,7 +295,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
self,
"UploadNotionBlocks",
code=lambda_.Code.from_asset("lambdas/upload_notion_blocks"),
runtime=lambda_.Runtime.PYTHON_3_8,
runtime=lambda_.Runtime.PYTHON_3_9,
handler="upload_notion_blocks.handler",
architecture=lambda_.Architecture.ARM_64,
description="MediaWiki-to-Notion - upload blocks to Notion",
Expand Down Expand Up @@ -330,7 +330,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
{
# FIXME
"id": "AwsSolutions-L1", # latest runtime check
"reason": "Notion layer not tested with Python > 3.8",
"reason": "Notion layer not tested with Python > 3.9",
}
],
)
Expand Down

0 comments on commit c121da5

Please sign in to comment.