From c121da539387cdbf30c58323fd5f2764ee881a20 Mon Sep 17 00:00:00 2001 From: Joel Knight Date: Sun, 11 Dec 2022 16:57:37 -0700 Subject: [PATCH] chore: bump Lambda functions to Python 3.9 --- README.md | 2 +- mw_to_notion/mw_to_notion_stack.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 68ee9e2..7e3a4ed 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/mw_to_notion/mw_to_notion_stack.py b/mw_to_notion/mw_to_notion_stack.py index cb39e10..f3186da 100644 --- a/mw_to_notion/mw_to_notion_stack.py +++ b/mw_to_notion/mw_to_notion_stack.py @@ -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, ) @@ -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", @@ -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", } ], ) @@ -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", @@ -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", } ], )