-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-checkin-in-trace-id): Migrate to uv and pyproject.toml #9
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
dbfe2dc
30f59ea
f0a2b6f
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,14 @@ | ||
| [project] | ||
| name = "test-checkin-in-trace-id" | ||
| version = "0" | ||
| requires-python = ">=3.12" | ||
|
|
||
| dependencies = [ | ||
| "celery[redis]>=5.4.0", | ||
| "ipdb>=0.13.13", | ||
| "requests>=2.32.3", | ||
| "sentry-sdk[celery]", | ||
| ] | ||
|
|
||
| [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,9 +1,10 @@ | ||
| python -m venv .venv | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| source .venv/bin/activate | ||
|
|
||
| pip install -r requirements.txt | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
|
Comment on lines
+4
to
+6
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. Bug: The script installs Suggested FixAfter the installation line Prompt for AI Agent |
||
|
|
||
| redis-server & | ||
|
|
||
| celery -A tasks worker --loglevel=DEBUG | ||
| uv run celery -A tasks worker --loglevel=DEBUG | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| python -m venv .venv | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
|
|
||
| source .venv/bin/activate | ||
|
|
||
| pip install -r requirements.txt | ||
|
|
||
| python main.py | ||
| uv run python main.py |
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 test setup uses
uv pip install -e .which will fail due to a missing[build-system]and would ignore local dependency paths in[tool.uv.sources].Severity: HIGH
Suggested Fix
Replace
uv pip install -e .inrun.shandrun-celery.shwithuv sync. This command correctly respects the[tool.uv.sources]configuration to use the local SDK path. Additionally, add a[build-system]table (e.g., forsetuptools) topyproject.tomlto make the project installable.Prompt for AI Agent