Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions test-fastapi-background-tasks/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[project]
name = "test-fastapi-background-tasks"
version = "0"
requires-python = ">=3.12"

dependencies = [
"fastapi>=0.115.11",
"ipdb>=0.13.13",
"sentry-sdk[fastapi]",
"uvicorn>=0.34.0",
]

[tool.uv.sources]
sentry-sdk = { path = "../../sentry-python", editable = true }
8 changes: 0 additions & 8 deletions test-fastapi-background-tasks/requirements.txt

This file was deleted.

14 changes: 4 additions & 10 deletions test-fastapi-background-tasks/run.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

python -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt

# uvicorn main:app --port 5000 --reload --root-path /api/v1 &
uvicorn main:app --port 5000 --reload
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

#nginx -c "$(pwd)/nginx.conf"
uv run uvicorn main:app --port 5000 --reload

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv not on PATH after install

Medium Severity

When uv is missing, run.sh installs it via the Astral installer then immediately runs uv run. The installer updates shell profiles for future sessions; it does not put uv on PATH in the current non-interactive subshell, so the script often exits with “command not found” on first run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c99d423. Configure here.

Loading