Skip to content

Commit 0f44eaa

Browse files
devin-ai-integration[bot]bot_apk
andcommitted
fix: use Poetry extras for datadog in Dockerfile and add metrics to CI extras
Co-Authored-By: bot_apk <apk@cognition.ai>
1 parent f410aba commit 0f44eaa

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ COPY dist/*.whl ./dist/
1717
RUN poetry config virtualenvs.create false \
1818
&& poetry install --only main --no-interaction --no-ansi || true
1919

20-
# Build and install the package
21-
RUN pip install dist/*.whl
22-
23-
# Install datadog for DogStatsD metrics emission.
24-
# No-op unless DD_AGENT_HOST is set at runtime.
25-
RUN pip install "datadog>=0.49.0"
20+
# Build and install the package (with metrics extra for DogStatsD support)
21+
RUN pip install "dist/*.whl[metrics]"
2622

2723
# Recreate the original structure
2824
RUN mkdir -p source_declarative_manifest \

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ python_versions = [
218218
"3.13",
219219
]
220220
optional_poetry_groups = ["dev"]
221-
poetry_extras = ["file-based", "vector-db-based", "manifest-server"]
221+
poetry_extras = ["file-based", "vector-db-based", "manifest-server", "metrics"]
222222
poe_tasks = ["check-ci"]
223223
mount_docker_socket = true
224224

0 commit comments

Comments
 (0)