-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-django-asgi-upload): Migrate to uv and pyproject.toml #13
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,19 @@ | ||
| [project] | ||
| name = "test-django-asgi-upload" | ||
| version = "0" | ||
| requires-python = ">=3.12" | ||
|
|
||
| dependencies = [ | ||
| "channels>=4.2.0", | ||
| "daphne>=4.1.2", | ||
| "django>=5.2", | ||
| "django-debug-toolbar>=5.0.1", | ||
| "ipdb>=0.13.13", | ||
| "psycopg>=3.2.6", | ||
| "sentry-sdk[django]", | ||
| "strawberry-graphql>=0.243.0", | ||
| "strawberry-graphql-django>=0.51.1", | ||
| ] | ||
|
|
||
| [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,21 +1,10 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| # exit on first error | ||
| set -xe | ||
|
|
||
| # create and activate virtual environment | ||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
|
|
||
| # Install (or update) requirements | ||
| python -m pip install -r requirements.txt | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
|
|
||
| cd mysite | ||
|
|
||
|
Comment on lines
+4
to
9
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 installing Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| # run migrations | ||
| # ./manage.py migrate | ||
|
|
||
| # Run Django application on localhost:8000 | ||
| daphne mysite.asgi:application | ||
| # ./manage.py runserver 0.0.0.0:8000 | ||
| #gunicorn movie_search.project.asgi:application -k uvicorn.workers.UvicornWorker | ||
| uv run daphne mysite.asgi:application | ||
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.
Python version pin mismatch
Medium Severity
The new
requires-python = ">=3.12"conflicts with the existing.python-versionfile still pinned to3.11.uv runin this directory can pick 3.11 from pyenv while the project metadata requires 3.12+, so dependency sync or startup fails after the migration.Reviewed by Cursor Bugbot for commit cf956fc. Configure here.