From 3e16681da567a6050b648288e4e47c423fb04cce Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:39:21 -0400 Subject: [PATCH] build(test-tracing-twp-dsc): 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-2481 Co-Authored-By: Claude Opus 4.6 --- test-tracing-twp-dsc/pyproject.toml | 16 ++++++++++++++++ test-tracing-twp-dsc/requirements.txt | 9 --------- test-tracing-twp-dsc/run.sh | 11 ++++------- 3 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 test-tracing-twp-dsc/pyproject.toml delete mode 100644 test-tracing-twp-dsc/requirements.txt diff --git a/test-tracing-twp-dsc/pyproject.toml b/test-tracing-twp-dsc/pyproject.toml new file mode 100644 index 0000000..f3010cc --- /dev/null +++ b/test-tracing-twp-dsc/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "test-tracing-twp-dsc" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "aiohttp>=3.11.14", + "fastapi>=0.115.11", + "honcho>=2.0.0", + "ipdb>=0.13.13", + "uvicorn>=0.34.0", + "sentry-sdk[fastapi]", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-tracing-twp-dsc/requirements.txt b/test-tracing-twp-dsc/requirements.txt deleted file mode 100644 index cea59d0..0000000 --- a/test-tracing-twp-dsc/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -fastapi -uvicorn - -aiohttp - -ipdb -honcho - --e ../../../code/sentry-python diff --git a/test-tracing-twp-dsc/run.sh b/test-tracing-twp-dsc/run.sh index a7a6364..4d49c3d 100755 --- a/test-tracing-twp-dsc/run.sh +++ b/test-tracing-twp-dsc/run.sh @@ -1,11 +1,8 @@ #!/usr/bin/env bash - set -euo pipefail -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 -# see Procfile for the commands that are run -honcho start +uv run honcho start