From 5ab73bd6b9c2df423922e9c747e70fb90e776de2 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Tue, 16 Dec 2025 10:06:58 -0500 Subject: [PATCH 01/11] Runtime dependent pyproject.toml --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6ca4f147..8a333844 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,8 @@ classifiers = [ python = ">=3.8.0,<4" datadog = ">=0.51.0,<1.0.0" wrapt = "^1.11.2" -ddtrace = ">=3.19.1,<4" +ddtrace = ">=3.19.1,<4"; python_version < "3.10" +ddtrace = ">=4.0.0, <5"; python_version >= "3.10" ujson = ">=5.9.0" botocore = { version = "^1.34.0", optional = true } requests = { version ="^2.22.0", optional = true } From 9882760027c52b148b2638861a0d4ca898626a29 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Tue, 16 Dec 2025 11:41:29 -0500 Subject: [PATCH 02/11] brackets --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a333844..8c07cfef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,8 @@ classifiers = [ python = ">=3.8.0,<4" datadog = ">=0.51.0,<1.0.0" wrapt = "^1.11.2" -ddtrace = ">=3.19.1,<4"; python_version < "3.10" -ddtrace = ">=4.0.0, <5"; python_version >= "3.10" +ddtrace = {">=3.19.1,<4"; python_version < "3.10"} +ddtrace = {">=4.0.0, <5"; python_version >= "3.10"} ujson = ">=5.9.0" botocore = { version = "^1.34.0", optional = true } requests = { version ="^2.22.0", optional = true } From 4a7cde44ab17cc646ef6e54bec1dda40c9bf23cb Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Tue, 16 Dec 2025 12:35:41 -0500 Subject: [PATCH 03/11] remove additional quotation marks --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8c07cfef..65f30a8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,8 @@ classifiers = [ python = ">=3.8.0,<4" datadog = ">=0.51.0,<1.0.0" wrapt = "^1.11.2" -ddtrace = {">=3.19.1,<4"; python_version < "3.10"} -ddtrace = {">=4.0.0, <5"; python_version >= "3.10"} +ddtrace = ">=3.19.1,<4; python_version < 3.10" +ddtrace = ">=4.0.0, <5; python_version >= 3.10" ujson = ">=5.9.0" botocore = { version = "^1.34.0", optional = true } requests = { version ="^2.22.0", optional = true } From debc19228ed5cf47a88160bdd6cfca3641d10d29 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Tue, 16 Dec 2025 12:42:11 -0500 Subject: [PATCH 04/11] overwrote ddtrace value --- pyproject.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 65f30a8f..ec3e1c13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,12 @@ classifiers = [ python = ">=3.8.0,<4" datadog = ">=0.51.0,<1.0.0" wrapt = "^1.11.2" -ddtrace = ">=3.19.1,<4; python_version < 3.10" -ddtrace = ">=4.0.0, <5; python_version >= 3.10" +# ddtrace = ">=3.19.1,<4; python_version < 3.10" +# ddtrace = ">=4.0.0, <5; python_version >= 3.10" +ddtrace = [ + {version = ">=3.19.1,<4", python_version < "3.10"}, + {version = ">=4.0.0,<5", python_version >= "3.10"}, +] ujson = ">=5.9.0" botocore = { version = "^1.34.0", optional = true } requests = { version ="^2.22.0", optional = true } From a21ae7e8c7acae6b6d26dea1da7cbb0f1693fcc0 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Wed, 17 Dec 2025 10:19:36 -0500 Subject: [PATCH 05/11] refactoring pyproject.toml dependencies --- pyproject.toml | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ec3e1c13..e8b279dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,31 +24,22 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] - -[tool.poetry.dependencies] -python = ">=3.8.0,<4" -datadog = ">=0.51.0,<1.0.0" -wrapt = "^1.11.2" -# ddtrace = ">=3.19.1,<4; python_version < 3.10" -# ddtrace = ">=4.0.0, <5; python_version >= 3.10" -ddtrace = [ - {version = ">=3.19.1,<4", python_version < "3.10"}, - {version = ">=4.0.0,<5", python_version >= "3.10"}, +dependencies = [ + "python>=3.8.0,<4", + "datadog>=0.51.0,<1.0.0", + "wrapt>=1.11.2,<2", + "ddtrace>=3.19.1,<4", + "ujson>=5.9.0", ] -ujson = ">=5.9.0" -botocore = { version = "^1.34.0", optional = true } -requests = { version ="^2.22.0", optional = true } -pytest = { version= "^8.0.0", optional = true } -pytest-benchmark = { version = "^4.0", optional = true } -flake8 = { version = "^5.0.4", optional = true } -[tool.poetry.extras] + +[tool.poetry.optional-dependencies] dev = [ - "botocore", - "flake8", - "pytest", - "pytest-benchmark", - "requests", + "botocore>=1.34.0,<2", + "requests>=2.22.0,<3", + "pytest>=8.0.0,<9", + "pytest-benchmark>=4.0,<5", + "flake8>=5.0.4,<6", ] [build-system] From 737f8860fa78ecd5525ec460e943a9e994675009 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Wed, 17 Dec 2025 10:24:26 -0500 Subject: [PATCH 06/11] rename to project --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e8b279dc..1648999d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,4 @@ -[tool.poetry] +[project] name = "datadog_lambda" version = "8.121.0.dev0" description = "The Datadog AWS Lambda Library" @@ -33,7 +33,7 @@ dependencies = [ ] -[tool.poetry.optional-dependencies] +[project.optional-dependencies] dev = [ "botocore>=1.34.0,<2", "requests>=2.22.0,<3", From 924bf9b879162ed6504b4e651e37767b2d7366f2 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Wed, 17 Dec 2025 10:57:22 -0500 Subject: [PATCH 07/11] update authors --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1648999d..fc2cd601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "datadog_lambda" version = "8.121.0.dev0" description = "The Datadog AWS Lambda Library" -authors = ["Datadog, Inc. "] +authors = [{name = "Datadog, Inc.", email = "dev@datadoghq.com"}] license = "Apache-2.0" readme = "README.md" repository = "https://github.com/DataDog/datadog-lambda-python" From ee387579dc1e0c7228b96ab5997bcb18095f88fe Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Wed, 17 Dec 2025 11:08:41 -0500 Subject: [PATCH 08/11] move python requirement --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fc2cd601..d8abe0b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ description = "The Datadog AWS Lambda Library" authors = [{name = "Datadog, Inc.", email = "dev@datadoghq.com"}] license = "Apache-2.0" readme = "README.md" +requires-python = ">3.8.0,<4" repository = "https://github.com/DataDog/datadog-lambda-python" keywords = [ "datadog", @@ -25,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.14", ] dependencies = [ - "python>=3.8.0,<4", "datadog>=0.51.0,<1.0.0", "wrapt>=1.11.2,<2", "ddtrace>=3.19.1,<4", From ce87e520334fc470c9ca5bbe1c448fb0c81e5573 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Thu, 18 Dec 2025 11:14:47 -0500 Subject: [PATCH 09/11] have tool.poetry and project --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d8abe0b7..52ec0788 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,10 @@ -[project] +[tool.poetry] name = "datadog_lambda" version = "8.121.0.dev0" description = "The Datadog AWS Lambda Library" -authors = [{name = "Datadog, Inc.", email = "dev@datadoghq.com"}] +authors = ["Datadog, Inc. "] + +[project] license = "Apache-2.0" readme = "README.md" requires-python = ">3.8.0,<4" From 8a1582c97b64c7543aa2102ce5c34198053ac180 Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Thu, 18 Dec 2025 11:18:03 -0500 Subject: [PATCH 10/11] duplicate --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 52ec0788..8a2f4fbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,10 @@ description = "The Datadog AWS Lambda Library" authors = ["Datadog, Inc. "] [project] +name = "datadog_lambda" +version = "8.121.0.dev0" +description = "The Datadog AWS Lambda Library" +authors = [{ name = "Datadog, Inc.", email = "dev@datadoghq.com" }] license = "Apache-2.0" readme = "README.md" requires-python = ">3.8.0,<4" From 2128db424e0cb20d64f666ad04d49518a90fe85a Mon Sep 17 00:00:00 2001 From: Rithika Narayan Date: Thu, 18 Dec 2025 11:31:51 -0500 Subject: [PATCH 11/11] fix python requires --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8a2f4fbe..00c94e10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "The Datadog AWS Lambda Library" authors = [{ name = "Datadog, Inc.", email = "dev@datadoghq.com" }] license = "Apache-2.0" readme = "README.md" -requires-python = ">3.8.0,<4" +requires-python = ">=3.8.0,<4" repository = "https://github.com/DataDog/datadog-lambda-python" keywords = [ "datadog",