Skip to content

Commit 440d644

Browse files
ericapisaniclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 4344f7e commit 440d644

3 files changed

Lines changed: 32 additions & 42 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[project]
2+
name = "test-overhaul-of-docs"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"aiohttp>=3.11.14",
8+
"arq>=0.26.1",
9+
"bottle>=0.13.2",
10+
"falcon>=4.0.2",
11+
"flask>=3.1.1",
12+
"gunicorn>=23.0.0",
13+
"ipdb>=0.13.13",
14+
"pymongo>=4.12.0",
15+
"pyramid>=2.0.2",
16+
"quart>=0.20.0",
17+
"redis>=5.2.1",
18+
"rq>=2.3.0",
19+
"sanic>=24.12.0",
20+
"sentry-sdk[flask,aiohttp,bottle,falcon,pyramid,tornado,rq]",
21+
"sqlalchemy>=2.0.38",
22+
"psycopg2-binary>=2.9.10",
23+
"tornado>=6.4.2",
24+
]
25+
26+
[tool.uv.sources]
27+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-overhaul-of-docs/requirements.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

test-overhaul-of-docs/run.sh

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

3-
# exit on first error
4-
set -xe
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
57

6-
# create and activate virtual environment
7-
python -m venv .venv
8-
source .venv/bin/activate
9-
10-
# Install (or update) requirements
11-
python -m pip install -r requirements.txt
12-
13-
14-
# uvicorn main:app --port 8000
15-
# gunicorn main:app
16-
python main.py
17-
# sanic main:app
18-
# flask --app main run
19-
20-
# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
21-
# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
22-
# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
23-
24-
# arq demo.WorkerSettings
8+
uv run python main.py

0 commit comments

Comments
 (0)