From a6035c53b7671145857333ed81ffaf169a5f4f03 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:38:30 -0400 Subject: [PATCH] build(test-threading): Migrate from pip to uv Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Refs PY-2479 Co-Authored-By: Claude Opus 4.6 --- test-threading/pyproject.toml | 12 ++++++++++++ test-threading/requirements.txt | 4 ---- test-threading/run.sh | 12 ++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 test-threading/pyproject.toml delete mode 100644 test-threading/requirements.txt diff --git a/test-threading/pyproject.toml b/test-threading/pyproject.toml new file mode 100644 index 0000000..1ce6c49 --- /dev/null +++ b/test-threading/pyproject.toml @@ -0,0 +1,12 @@ +[project] +name = "test-threading" +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-threading/requirements.txt b/test-threading/requirements.txt deleted file mode 100644 index 52d6cd1..0000000 --- a/test-threading/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -ipdb - -# Sentry --e ../../../code/sentry-python/ # local dev version of sentry python sdk. diff --git a/test-threading/run.sh b/test-threading/run.sh index 8a207ef..f283b88 100755 --- a/test-threading/run.sh +++ b/test-threading/run.sh @@ -1,12 +1,8 @@ #!/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