-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-overhaul-of-docs): Migrate to uv and pyproject.toml #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
| uv run python main.py | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uv not on PATH after installMedium Severity When Reviewed by Cursor Bugbot for commit 440d644. Configure here. |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The script installs
uvbut fails to update the current shell'sPATH, causing the subsequentuvcommand to fail on systems where it wasn't pre-installed.Severity: HIGH
Suggested Fix
After the
uvinstallation command, source the appropriate environment file to update thePATHfor the current session (e.g.,source "$HOME/.cargo/env"). Alternatively, invokeuvusing its full installation path, such as$HOME/.cargo/bin/uv.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.