Skip to content

Commit

Permalink
feat: Update dependencies and configuration for Gunicorn and Django; …
Browse files Browse the repository at this point in the history
…remove test step from workflow
  • Loading branch information
AhmedNassar7 committed Dec 16, 2024
1 parent b1a7a81 commit 4ac0133
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,3 @@ jobs:
echo "Starting deployment to Render..."
render deploy --service-name egypt-metro
echo "Deployment complete!"
- name: Run Tests
run: |
python manage.py test
75 changes: 71 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pydantic = "^1.8.2"
httpx = "^0.21.1"
starlette = "^0.14.2"
asyncpg = "^0.30.0"
gunicorn = "^23.0.0"
pywin32 = { version = "306", optional = true, markers = "sys_platform == 'win32'" }

[tool.poetry.dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
buildCommand:
- apt-get update && apt-get install -y gcc libpq-dev python3-dev
- pip install --upgrade pip
- pip install gunicorn
- pip install -r requirements.txt
- python manage.py collectstatic --noinput
- python manage.py migrate --noinput
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ anyio==3.7.1 ; python_version >= "3.9" and python_version < "4.0"
asgiref==3.8.1 ; python_version >= "3.9" and python_version < "4.0"
async-timeout==5.0.1 ; python_version >= "3.9" and python_version < "3.11.0"
asyncpg==0.30.0 ; python_version >= "3.9" and python_version < "4.0"
certifi==2024.8.30 ; python_version >= "3.9" and python_version < "4.0"
certifi==2024.12.14 ; python_version >= "3.9" and python_version < "4.0"
charset-normalizer==3.4.0 ; python_version >= "3.9" and python_version < "4.0"
click==8.1.7 ; python_version >= "3.9" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and platform_system == "Windows"
exceptiongroup==1.2.2 ; python_version >= "3.9" and python_version < "3.11"
fastapi==0.68.2 ; python_version >= "3.9" and python_version < "4.0"
gunicorn==23.0.0 ; python_version >= "3.9" and python_version < "4.0" # For production
h11==0.12.0 ; python_version >= "3.9" and python_version < "4.0"
httpcore==0.14.7 ; python_version >= "3.9" and python_version < "4.0"
httpx==0.21.3 ; python_version >= "3.9" and python_version < "4.0"
idna==3.10 ; python_version >= "3.9" and python_version < "4.0"
packaging==24.2 ; python_version >= "3.9" and python_version < "4.0"
pydantic==1.10.19 ; python_version >= "3.9" and python_version < "4.0"
rfc3986[idna2008]==1.5.0 ; python_version >= "3.9" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.9" and python_version < "4.0"
starlette==0.14.2 ; python_version >= "3.9" and python_version < "4.0"
typing-extensions==4.12.2 ; python_version >= "3.9" and python_version < "4.0"
uvicorn==0.15.0 ; python_version >= "3.9" and python_version < "4.0"
uvicorn==0.15.0 ; python_version >= "3.9" and python_version < "4.0" # For development
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.9
python-3.9.18

0 comments on commit 4ac0133

Please sign in to comment.