From da314274ae07594ec68f1d5a1c38359708f9d07c Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Fri, 22 May 2026 08:49:20 -0400 Subject: [PATCH] build(test-asyncio-taskgroup): 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-2430 Co-Authored-By: Claude Opus 4.6 --- test-asyncio-taskgroup/pyproject.toml | 18 ++++++++++++++++++ test-asyncio-taskgroup/requirements.txt | 11 ----------- test-asyncio-taskgroup/run.sh | 9 ++++----- 3 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 test-asyncio-taskgroup/pyproject.toml delete mode 100644 test-asyncio-taskgroup/requirements.txt diff --git a/test-asyncio-taskgroup/pyproject.toml b/test-asyncio-taskgroup/pyproject.toml new file mode 100644 index 0000000..2cf70ee --- /dev/null +++ b/test-asyncio-taskgroup/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "test-asyncio-taskgroup" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "aiohttp>=3.11.14", + "fastapi==0.110.0", + "ipdb>=0.13.13", + "opentelemetry-distro>=0.50b0", + "opentelemetry-instrumentation-fastapi>=0.50b0", + "starlette==0.36.3", + "uvicorn>=0.34.0", + "sentry-sdk[fastapi]", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-asyncio-taskgroup/requirements.txt b/test-asyncio-taskgroup/requirements.txt deleted file mode 100644 index e61a5eb..0000000 --- a/test-asyncio-taskgroup/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -uvicorn -fastapi==0.110.0 -starlette==0.36.3 -aiohttp - -opentelemetry-distro -opentelemetry-instrumentation-fastapi - --e ../../../code/sentry-python - -ipdb \ No newline at end of file diff --git a/test-asyncio-taskgroup/run.sh b/test-asyncio-taskgroup/run.sh index d83a468..a657452 100755 --- a/test-asyncio-taskgroup/run.sh +++ b/test-asyncio-taskgroup/run.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -python -m venv .venv -source .venv/bin/activate +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi -pip install -r requirements.txt - -uvicorn main:app --port 5000 --reload +uv run uvicorn main:app --port 5000 --reload