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