From 186f2e6796e7b69eeccb46f3f8983c529e60b1ac Mon Sep 17 00:00:00 2001 From: Michal Baranowski Date: Wed, 9 Aug 2023 18:34:37 +0200 Subject: [PATCH 1/2] feat: adds Python 3.10 to the supported runtime config --- newrelic_lambda_cli/utils.py | 4 ++++ tests/test_utils.py | 1 + 2 files changed, 5 insertions(+) diff --git a/newrelic_lambda_cli/utils.py b/newrelic_lambda_cli/utils.py index ffe9e25..cd0d2ee 100644 --- a/newrelic_lambda_cli/utils.py +++ b/newrelic_lambda_cli/utils.py @@ -52,6 +52,10 @@ "Handler": "newrelic_lambda_wrapper.handler", "LambdaExtension": True, }, + "python3.10": { + "Handler": "newrelic_lambda_wrapper.handler", + "LambdaExtension": True, + }, } diff --git a/tests/test_utils.py b/tests/test_utils.py index 1413b0e..09a28e1 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -88,6 +88,7 @@ def test_supports_lambda_extension(): "python3.7", "python3.8", "python3.9", + "python3.10", ) ) assert not any( From 65609d6e54c8f9540cb0217a6de997050e636efc Mon Sep 17 00:00:00 2001 From: Tim Pansino Date: Thu, 10 Aug 2023 11:29:06 -0700 Subject: [PATCH 2/2] Add new runtime to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5a70453..f273afe 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ A CLI to install the New Relic AWS Lambda integration and layers. * python3.7 * python3.8 * python3.9 +* python3.10 **Note:** Automatic handler wrapping is only supported for Node.js and Python. For other runtimes, manual function wrapping is required using the runtime specific New Relic agent.