Skip to content

Commit aa9cbba

Browse files
Revert "Clean up pyproject.toml (#714)" (#719)
This reverts commit aee6842.
1 parent 7c36e9a commit aa9cbba

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.github/workflows/build_layer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Patch pyproject.toml
3838
run: |
3939
echo "Patching pyproject.toml to use latest build of dd-trace-py"
40-
sed -zEi 's|^ddtrace =.*$|ddtrace = { file = "${{ steps.find-ddtrace-wheel.outputs.wheel_path }}" }|' pyproject.toml
40+
sed -i 's|^ddtrace =.*$|ddtrace = { file = "${{ steps.find-ddtrace-wheel.outputs.wheel_path }}" }|' pyproject.toml
4141
4242
- name: Build layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}
4343
run: |

pyproject.toml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,31 @@ name = "datadog_lambda"
33
version = "8.123.0.dev0"
44
description = "The Datadog AWS Lambda Library"
55
authors = ["Datadog, Inc. <dev@datadoghq.com>"]
6+
7+
[project]
8+
name = "datadog_lambda"
69
license = "Apache-2.0"
710
readme = "README.md"
11+
requires-python = ">=3.8.0,<4"
812
repository = "https://github.com/DataDog/datadog-lambda-python"
913
keywords = [
1014
"datadog",
1115
"aws",
1216
"lambda",
1317
"layer",
1418
]
19+
dependencies = [
20+
"datadog>=0.51.0,<1.0.0",
21+
"wrapt>=1.11.2,<2",
22+
"ddtrace>=3.19.1,<4; python_version>='3.9.0' and python_version < '3.10'",
23+
"ddtrace>=4.1.1,<5; python_version>='3.10.0'",
24+
"ujson>=5.9.0",
25+
]
1526
packages = [
1627
{ include = "datadog_lambda" }
1728
]
1829
classifiers = [
30+
"Programming Language :: Python :: 3 :: Only",
1931
"Programming Language :: Python :: 3.8",
2032
"Programming Language :: Python :: 3.9",
2133
"Programming Language :: Python :: 3.10",
@@ -25,14 +37,13 @@ classifiers = [
2537
"Programming Language :: Python :: 3.14",
2638
]
2739

40+
# can remove tool.poetry.depencies and tool.poetry.extras
41+
# after deprecation of Python 3.8
2842
[tool.poetry.dependencies]
2943
python = ">=3.8.0,<4"
3044
datadog = ">=0.51.0,<1.0.0"
3145
wrapt = "^1.11.2"
32-
ddtrace = [
33-
{version = ">=3.19.1,<4", python = ">=3.8,<3.10"},
34-
{version = ">=4.1.1,<5", python = ">=3.10"}
35-
]
46+
ddtrace = ">=3.19.1,<4"
3647
ujson = ">=5.9.0"
3748
botocore = { version = "^1.34.0", optional = true }
3849
requests = { version ="^2.22.0", optional = true }
@@ -49,9 +60,18 @@ dev = [
4960
"requests",
5061
]
5162

63+
[project.optional-dependencies]
64+
dev = [
65+
"botocore>=1.34.0,<2",
66+
"requests>=2.22.0,<3",
67+
"pytest>=8.0.0,<9",
68+
"pytest-benchmark>=4.0,<5",
69+
"flake8>=5.0.4,<6",
70+
]
71+
5272
[build-system]
5373
requires = ["poetry-core>=1.0.0"]
5474
build-backend = "poetry.core.masonry.api"
5575

5676
[tool.pytest.ini_options]
57-
addopts = "--benchmark-disable --benchmark-autosave"
77+
addopts = "--benchmark-disable --benchmark-autosave"

0 commit comments

Comments
 (0)