From 07383e38f5307b0f9fc39ed28dd77b3b26e65f76 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:29:57 -0400 Subject: [PATCH] build(test-llm-manual-instrumentation): Migrate to uv and pyproject.toml Replace pip/requirements.txt with uv/pyproject.toml for dependency management. Update run.sh to use uv run instead of manual venv creation and pip install. Refs PY-2463 Co-Authored-By: Claude Opus 4.6 --- test-llm-manual-instrumentation/pyproject.toml | 12 ++++++++++++ test-llm-manual-instrumentation/requirements.txt | 4 ---- test-llm-manual-instrumentation/run.sh | 11 ++++------- 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 test-llm-manual-instrumentation/pyproject.toml delete mode 100644 test-llm-manual-instrumentation/requirements.txt diff --git a/test-llm-manual-instrumentation/pyproject.toml b/test-llm-manual-instrumentation/pyproject.toml new file mode 100644 index 0000000..3bbe5d6 --- /dev/null +++ b/test-llm-manual-instrumentation/pyproject.toml @@ -0,0 +1,12 @@ +[project] +name = "test-llm-manual-instrumentation" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-llm-manual-instrumentation/requirements.txt b/test-llm-manual-instrumentation/requirements.txt deleted file mode 100644 index 4284b7b..0000000 --- a/test-llm-manual-instrumentation/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ - --e ../../../code/sentry-python - -ipdb \ No newline at end of file diff --git a/test-llm-manual-instrumentation/run.sh b/test-llm-manual-instrumentation/run.sh index 8a207ef..a08057d 100755 --- a/test-llm-manual-instrumentation/run.sh +++ b/test-llm-manual-instrumentation/run.sh @@ -1,12 +1,9 @@ #!/usr/bin/env bash - set -euo pipefail - reset -python -m venv .venv -source .venv/bin/activate - -pip install -r requirements.txt +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi -python main.py \ No newline at end of file +uv run python main.py