diff --git a/test-django-asgi-upload/pyproject.toml b/test-django-asgi-upload/pyproject.toml new file mode 100644 index 0000000..978228f --- /dev/null +++ b/test-django-asgi-upload/pyproject.toml @@ -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 } diff --git a/test-django-asgi-upload/requirements.txt b/test-django-asgi-upload/requirements.txt deleted file mode 100644 index 802e104..0000000 --- a/test-django-asgi-upload/requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ -Django - -channels -daphne - -psycopg # connection to Postgres database -django-debug-toolbar -ipdb -strawberry-graphql -strawberry-graphql-django - --e ../../../code/sentry-python # sdk in a sibling folder to this projects folder -# sentry-sdk==1.34.0 \ No newline at end of file diff --git a/test-django-asgi-upload/run.sh b/test-django-asgi-upload/run.sh index 60c03e0..09e9407 100755 --- a/test-django-asgi-upload/run.sh +++ b/test-django-asgi-upload/run.sh @@ -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 -# 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 \ No newline at end of file +uv run daphne mysite.asgi:application