From c472b633a253d7f0fea558672f736bb73fa35917 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Fri, 22 May 2026 08:47:10 -0400 Subject: [PATCH] build(test-asyncio): 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-2429 Co-Authored-By: Claude Opus 4.6 --- test-asyncio/pyproject.toml | 12 ++++++++++++ test-asyncio/requirements.txt | 4 ---- test-asyncio/run.sh | 12 ++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 test-asyncio/pyproject.toml delete mode 100644 test-asyncio/requirements.txt diff --git a/test-asyncio/pyproject.toml b/test-asyncio/pyproject.toml new file mode 100644 index 0000000..ae6e949 --- /dev/null +++ b/test-asyncio/pyproject.toml @@ -0,0 +1,12 @@ +[project] +name = "test-asyncio" +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-asyncio/requirements.txt b/test-asyncio/requirements.txt deleted file mode 100644 index 4284b7b..0000000 --- a/test-asyncio/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ - --e ../../../code/sentry-python - -ipdb \ No newline at end of file diff --git a/test-asyncio/run.sh b/test-asyncio/run.sh index 8a207ef..f283b88 100755 --- a/test-asyncio/run.sh +++ b/test-asyncio/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