Skip to content

Commit 66978b4

Browse files
authored
Merge pull request #179 from newrelic/mrickard/add-py39-to-project
fix: Python 3.9 support
2 parents 44a6508 + a1fb1b2 commit 66978b4

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
4545
* python3.6
4646
* python3.7
4747
* python3.8
48+
* python3.9
4849

4950
**Note:** Automatic handler wrapping is only supported for Node.js and Python. For other runtimes,
5051
manual function wrapping is required using the runtime specific New Relic agent.

newrelic_lambda_cli/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
"Handler": "newrelic_lambda_wrapper.handler",
4949
"LambdaExtension": True,
5050
},
51+
"python3.9": {
52+
"Handler": "newrelic_lambda_wrapper.handler",
53+
"LambdaExtension": True,
54+
},
5155
}
5256

5357

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 88
3-
target-version = ['py36', 'py37', 'py38']
3+
target-version = ['py36', 'py37', 'py38','py39']
44
include = '\.pyi?$'
55
exclude = '''
66
/(

tests/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_error():
2020

2121
def test_is_valid_handler():
2222
assert is_valid_handler("fakeruntime", "not.a.valid.handler") is False
23-
assert is_valid_handler("python3.8", "newrelic_lambda_wrapper.handler") is True
23+
assert is_valid_handler("python3.9", "newrelic_lambda_wrapper.handler") is True
2424

2525

2626
def test_parse_arn():
@@ -86,6 +86,7 @@ def test_supports_lambda_extension():
8686
"provided.al2",
8787
"python3.7",
8888
"python3.8",
89+
"python3.9",
8990
)
9091
)
9192
assert not any(

0 commit comments

Comments
 (0)