-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-asyncio-taskgroup): Migrate from pip to uv #61
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,18 @@ | ||
| [project] | ||
| name = "test-asyncio-taskgroup" | ||
| version = "0" | ||
| requires-python = ">=3.12" | ||
|
|
||
| dependencies = [ | ||
| "aiohttp>=3.11.14", | ||
| "fastapi==0.110.0", | ||
| "ipdb>=0.13.13", | ||
| "opentelemetry-distro>=0.50b0", | ||
| "opentelemetry-instrumentation-fastapi>=0.50b0", | ||
| "starlette==0.36.3", | ||
| "uvicorn>=0.34.0", | ||
| "sentry-sdk[fastapi]", | ||
| ] | ||
|
|
||
| [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,8 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
|
|
||
|
Comment on lines
+4
to
7
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 Suggested FixAfter the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| pip install -r requirements.txt | ||
|
|
||
| uvicorn main:app --port 5000 --reload | ||
| uv run uvicorn main:app --port 5000 --reload | ||
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 Python version in
.python-version(3.11.11) conflicts with therequires-python = ">=3.12"constraint inpyproject.toml, causinguv runto fail.Severity: HIGH
Suggested Fix
Align the Python versions. Either update the
.python-versionfile to a version that satisfies>=3.12(e.g.,3.12.0), or adjust therequires-pythonconstraint inpyproject.tomlto include3.11.11.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.