Skip to content

Commit 3726427

Browse files
committed
deps: upgrade to Postgresql 13, upgrade to Django 5, move deps to pyproject.toml
1 parent 70c5980 commit 3726427

File tree

4 files changed

+24
-42
lines changed

4 files changed

+24
-42
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ RUN apt-get update && \
1717
libpq-dev
1818

1919

20-
# Install application-level dependencies
21-
COPY requirements.txt /src/
22-
RUN pip install uv
23-
RUN uv pip sync requirements.txt --system
24-
2520
# Copy project files over to image
2621
COPY . /src/
2722

23+
RUN pip install uv
24+
RUN uv pip install -r pyproject.toml --system
25+
26+
27+
2828
# Expose 8000 port in container for Django use
2929
EXPOSE 8000

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- web
1212
db:
1313
container_name: hh_psql
14-
image: postgres:12-alpine
14+
image: postgres:13-alpine
1515
environment:
1616
- POSTGRES_DB=hh
1717
- POSTGRES_USER=postgres

pyproject.toml

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
[project]
2+
name = "homebrewhub"
3+
version = "1.0.0"
4+
description = "Digital repository of homebrew games"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"django>=5.1.2,<5.2",
9+
"djangorestframework>=3.15.2",
10+
"drf-spectacular>=0.27.2",
11+
"psycopg2>=2.9",
12+
"dj-database-url>=2.3",
13+
"django-cors-headers>=4.6",
14+
"django-extensions>=3.2.3",
15+
# Sync-db dependencies
16+
"python-dateutil==2.9.0.post0",
17+
]
18+
119
[tool.ruff]
220
# Exclude a variety of commonly ignored directories.
321
exclude = [

requirements.txt

-36
This file was deleted.

0 commit comments

Comments
 (0)