From 440d64472082e46757367b762e88fac6938b5158 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:31:57 -0400 Subject: [PATCH] build(test-overhaul-of-docs): 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-2467 Co-Authored-By: Claude Opus 4.6 --- test-overhaul-of-docs/pyproject.toml | 27 ++++++++++++++++++++++++++ test-overhaul-of-docs/requirements.txt | 21 -------------------- test-overhaul-of-docs/run.sh | 26 +++++-------------------- 3 files changed, 32 insertions(+), 42 deletions(-) create mode 100644 test-overhaul-of-docs/pyproject.toml delete mode 100644 test-overhaul-of-docs/requirements.txt diff --git a/test-overhaul-of-docs/pyproject.toml b/test-overhaul-of-docs/pyproject.toml new file mode 100644 index 0000000..4fc7dc6 --- /dev/null +++ b/test-overhaul-of-docs/pyproject.toml @@ -0,0 +1,27 @@ +[project] +name = "test-overhaul-of-docs" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "aiohttp>=3.11.14", + "arq>=0.26.1", + "bottle>=0.13.2", + "falcon>=4.0.2", + "flask>=3.1.1", + "gunicorn>=23.0.0", + "ipdb>=0.13.13", + "pymongo>=4.12.0", + "pyramid>=2.0.2", + "quart>=0.20.0", + "redis>=5.2.1", + "rq>=2.3.0", + "sanic>=24.12.0", + "sentry-sdk[flask,aiohttp,bottle,falcon,pyramid,tornado,rq]", + "sqlalchemy>=2.0.38", + "psycopg2-binary>=2.9.10", + "tornado>=6.4.2", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-overhaul-of-docs/requirements.txt b/test-overhaul-of-docs/requirements.txt deleted file mode 100644 index db216f1..0000000 --- a/test-overhaul-of-docs/requirements.txt +++ /dev/null @@ -1,21 +0,0 @@ --e ../../../code/sentry-python -# uvicorn -gunicorn -ipdb - -# httpx -# loguru -pymongo -redis -sqlalchemy -psycopg2-binary -aiohttp -arq -bottle -falcon -quart -sanic -pyramid -tornado -rq -flask \ No newline at end of file diff --git a/test-overhaul-of-docs/run.sh b/test-overhaul-of-docs/run.sh index b837497..f283b88 100755 --- a/test-overhaul-of-docs/run.sh +++ b/test-overhaul-of-docs/run.sh @@ -1,24 +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 - - -# uvicorn main:app --port 8000 -# gunicorn main:app -python main.py -# sanic main:app -# flask --app main run - -# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" -# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" - -# arq demo.WorkerSettings \ No newline at end of file +uv run python main.py