From fb6d66c9cc1348d1aaf51666e4769e0deb1b5b89 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Fri, 22 May 2026 08:50:06 -0400 Subject: [PATCH] build(test-asyncpg): 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-2431 Co-Authored-By: Claude Opus 4.6 --- test-asyncpg/pyproject.toml | 13 +++++++++++++ test-asyncpg/requirements.txt | 5 ----- test-asyncpg/run.sh | 15 +++++---------- 3 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 test-asyncpg/pyproject.toml delete mode 100644 test-asyncpg/requirements.txt diff --git a/test-asyncpg/pyproject.toml b/test-asyncpg/pyproject.toml new file mode 100644 index 0000000..40cd408 --- /dev/null +++ b/test-asyncpg/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "test-asyncpg" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "asyncpg>=0.30.0", + "ipdb>=0.13.13", + "sentry-sdk[asyncpg]", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-asyncpg/requirements.txt b/test-asyncpg/requirements.txt deleted file mode 100644 index 181923f..0000000 --- a/test-asyncpg/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -asyncpg - --e ../../../code/sentry-python - -ipdb \ No newline at end of file diff --git a/test-asyncpg/run.sh b/test-asyncpg/run.sh index 3451511..f283b88 100755 --- a/test-asyncpg/run.sh +++ b/test-asyncpg/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