From 7af0c48339535392a42c500b81a3b52bae8dd38a Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:30:28 -0400 Subject: [PATCH] build(test-logging-leak): 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-2464 Co-Authored-By: Claude Opus 4.6 --- test-logging-leak/pyproject.toml | 13 +++++++++++++ test-logging-leak/requirements.txt | 5 ----- test-logging-leak/run.sh | 16 +++++----------- 3 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 test-logging-leak/pyproject.toml delete mode 100644 test-logging-leak/requirements.txt diff --git a/test-logging-leak/pyproject.toml b/test-logging-leak/pyproject.toml new file mode 100644 index 0000000..b20c7c8 --- /dev/null +++ b/test-logging-leak/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "test-logging-leak" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "aiohttp>=3.11.14", + "ipdb>=0.13.13", + "sentry-sdk[aiohttp]", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-logging-leak/requirements.txt b/test-logging-leak/requirements.txt deleted file mode 100644 index 3f54848..0000000 --- a/test-logging-leak/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -aiohttp - -ipdb - --e ../../../code/sentry-python \ No newline at end of file diff --git a/test-logging-leak/run.sh b/test-logging-leak/run.sh index eaffb59..f283b88 100755 --- a/test-logging-leak/run.sh +++ b/test-logging-leak/run.sh @@ -1,14 +1,8 @@ #!/usr/bin/env bash +set -euo pipefail -# exit on first error -set -xe +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi -# create and activate virtual environment -python -m venv .venv -source .venv/bin/activate - -# Install (or update) requirements -python -m pip install -r requirements.txt - - -python main.py \ No newline at end of file +uv run python main.py