From 6520755a09f0923dccdce65033aa79d509e2ef62 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:31:40 -0400 Subject: [PATCH] build(test-new-performance-api): Migrate to uv and pyproject.toml Replace pip/requirements.txt with uv/pyproject.toml for dependency management. Update run.sh to use uv run. Refs PY-2466 Co-Authored-By: Claude Opus 4.6 --- test-new-performance-api/pyproject.toml | 12 ++++++++++++ test-new-performance-api/requirements.txt | 3 --- test-new-performance-api/run.sh | 15 +++++---------- 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 test-new-performance-api/pyproject.toml delete mode 100644 test-new-performance-api/requirements.txt diff --git a/test-new-performance-api/pyproject.toml b/test-new-performance-api/pyproject.toml new file mode 100644 index 0000000..55840cd --- /dev/null +++ b/test-new-performance-api/pyproject.toml @@ -0,0 +1,12 @@ +[project] +name = "test-new-performance-api" +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-new-performance-api/requirements.txt b/test-new-performance-api/requirements.txt deleted file mode 100644 index 35b81e3..0000000 --- a/test-new-performance-api/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ --e ../../../code/sentry-python - -ipdb \ No newline at end of file diff --git a/test-new-performance-api/run.sh b/test-new-performance-api/run.sh index 3451511..f283b88 100755 --- a/test-new-performance-api/run.sh +++ b/test-new-performance-api/run.sh @@ -1,13 +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