Skip to content

Commit

Permalink
deps: upgrade to Postgresql 13, upgrade to Django 5, move deps to pyp…
Browse files Browse the repository at this point in the history
…roject.toml
  • Loading branch information
avivace committed Dec 7, 2024
1 parent 70c5980 commit 3726427
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 42 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ RUN apt-get update && \
libpq-dev


# Install application-level dependencies
COPY requirements.txt /src/
RUN pip install uv
RUN uv pip sync requirements.txt --system

# Copy project files over to image
COPY . /src/

RUN pip install uv
RUN uv pip install -r pyproject.toml --system



# Expose 8000 port in container for Django use
EXPOSE 8000
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- web
db:
container_name: hh_psql
image: postgres:12-alpine
image: postgres:13-alpine
environment:
- POSTGRES_DB=hh
- POSTGRES_USER=postgres
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[project]
name = "homebrewhub"
version = "1.0.0"
description = "Digital repository of homebrew games"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"django>=5.1.2,<5.2",
"djangorestframework>=3.15.2",
"drf-spectacular>=0.27.2",
"psycopg2>=2.9",
"dj-database-url>=2.3",
"django-cors-headers>=4.6",
"django-extensions>=3.2.3",
# Sync-db dependencies
"python-dateutil==2.9.0.post0",
]

[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
Expand Down
36 changes: 0 additions & 36 deletions requirements.txt

This file was deleted.

0 comments on commit 3726427

Please sign in to comment.