Skip to content

Commit 0a1d64b

Browse files
Merge pull request #35 from clowdhaus/feature/python_3_8
Feature/python 3 8
2 parents ec34c04 + 1aedb03 commit 0a1d64b

File tree

7 files changed

+28
-15
lines changed

7 files changed

+28
-15
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ workflows:
5353
jobs:
5454
- verify_build:
5555
python: "3.7"
56+
57+
python-v3.8:
58+
jobs:
59+
- verify_build:
60+
python: "3.8"

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
[![CircleCI](https://img.shields.io/circleci/build/github/DataDog/datadog-lambda-layer-python)](https://circleci.com/gh/DataDog/datadog-lambda-layer-python)
44
[![PyPI](https://img.shields.io/pypi/v/datadog-lambda)](https://pypi.org/project/datadog-lambda/)
5+
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/datadog-lambda)
56
[![Slack](https://img.shields.io/badge/slack-%23serverless-blueviolet?logo=slack)](https://datadoghq.slack.com/channels/serverless/)
67
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-lambda-layer-python/blob/master/LICENSE)
78

8-
Datadog Lambda Layer for Python (2.7, 3.6 and 3.7) enables custom metric submission from AWS Lambda functions, and distributed tracing between serverful and serverless environments.
9+
Datadog Lambda Layer for Python (2.7, 3.6, 3.7 and 3.8) enables custom metric submission from AWS Lambda functions, and distributed tracing between serverful and serverless environments.
910

1011
## Installation
1112

@@ -15,7 +16,13 @@ Datadog Lambda Layer can be added to a Lambda function via AWS Lambda console, [
1516
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-<PYTHON_RUNTIME>:<VERSION>
1617
```
1718

18-
Replace `<AWS_REGION>` with the AWS region where your Lambda function is published to. Replace `<PYTHON_RUNTIME>` with `Datadog-Python27` with `Datadog-Python36` or `Datadog-Python37` that matches your Lambda's Python runtime. Replace `<VERSION>` with the latest layer version that can be found from [CHANGELOG](CHANGELOG.md). For example,
19+
Replace `<AWS_REGION>` with the AWS region where your Lambda function is published to. Replace `<PYTHON_RUNTIME>` with one of the following that matches your Lambda's Python runtime:
20+
- `Datadog-Python27`
21+
- `Datadog-Python36`
22+
- `Datadog-Python37`
23+
- `Datadog-Python38`
24+
25+
Replace `<VERSION>` with the latest layer version that can be found from [CHANGELOG](CHANGELOG.md). For example,
1926

2027
```
2128
arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python37:1

scripts/build_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010

1111
LAYER_DIR=".layers"
1212
LAYER_FILES_PREFIX="datadog_lambda_py"
13-
PYTHON_VERSIONS=("2.7" "3.6" "3.7")
13+
PYTHON_VERSIONS=("2.7" "3.6" "3.7" "3.8")
1414

1515
function make_path_absolute {
1616
echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"

scripts/list_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Lists most recent layers ARNs across regions to STDOUT
99
# Optionals args: [layer-name] [region]
1010

11-
LAYER_NAMES=("Datadog-Python27" "Datadog-Python36" "Datadog-Python37")
11+
LAYER_NAMES=("Datadog-Python27" "Datadog-Python36" "Datadog-Python37" "Datadog-Python38")
1212
AVAILABLE_REGIONS=(us-east-2 us-east-1 us-west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-north-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1)
1313

1414
# Check region arg

scripts/publish_layers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ set -e
1313
# Makes sure any subprocesses will be terminated with this process
1414
trap "pkill -P $$; exit 1;" INT
1515

16-
PYTHON_VERSIONS_FOR_AWS_CLI=("python2.7" "python3.6" "python3.7")
17-
LAYER_PATHS=(".layers/datadog_lambda_py2.7.zip" ".layers/datadog_lambda_py3.6.zip" ".layers/datadog_lambda_py3.7.zip")
18-
AVAILABLE_LAYER_NAMES=("Datadog-Python27" "Datadog-Python36" "Datadog-Python37")
16+
PYTHON_VERSIONS_FOR_AWS_CLI=("python2.7" "python3.6" "python3.7" "python3.8")
17+
LAYER_PATHS=(".layers/datadog_lambda_py2.7.zip" ".layers/datadog_lambda_py3.6.zip" ".layers/datadog_lambda_py3.7.zip" ".layers/datadog_lambda_py3.8.zip")
18+
AVAILABLE_LAYER_NAMES=("Datadog-Python27" "Datadog-Python36" "Datadog-Python37" "Datadog-Python38")
1919
AVAILABLE_REGIONS=(us-east-2 us-east-1 us-west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-north-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1)
2020

2121
# Check that the layer files exist

scripts/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Run unit tests in Docker
99
set -e
1010

11-
PYTHON_VERSIONS=("2.7" "3.6" "3.7")
11+
PYTHON_VERSIONS=("2.7" "3.6" "3.7" "3.8")
1212

1313
for python_version in "${PYTHON_VERSIONS[@]}"
1414
do

setup.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@
2222
'Programming Language :: Python :: 2.7',
2323
'Programming Language :: Python :: 3.6',
2424
'Programming Language :: Python :: 3.7',
25+
'Programming Language :: Python :: 3.8',
2526
],
2627
keywords='datadog aws lambda layer',
2728
packages=['datadog_lambda'],
2829
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4',
2930
install_requires=[
30-
'aws-xray-sdk==2.4.2',
31+
'aws-xray-sdk==2.4.3',
3132
'datadog==0.32.0',
32-
'ddtrace==0.30.2',
33-
'wrapt==1.11.1',
34-
'setuptools==41.6.0',
33+
'ddtrace==0.31.0',
34+
'wrapt==1.11.2',
35+
'setuptools==42.0.2',
3536
],
3637
extras_require={
3738
'dev': [
3839
'nose2==0.9.1',
39-
'flake8==3.7.7',
40-
'requests==2.21.0',
41-
'boto3==1.10.17',
40+
'flake8==3.7.9',
41+
'requests==2.22.0',
42+
'boto3==1.10.33',
4243
]
4344
}
4445
)

0 commit comments

Comments
 (0)