Skip to content

Commit

Permalink
all db extras
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed Nov 24, 2024
1 parent 473a730 commit 6f4cefe
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
default-libmysqlclient-dev \
pkg-config \
postgresql-client \
mysql-client \
&& rm -rf /var/lib/apt/lists/*

RUN pip install uv
Expand All @@ -19,7 +23,7 @@ RUN uv venv
COPY pyproject.toml .
COPY uv.lock ./

RUN . .venv/bin/activate && uv sync
RUN . .venv/bin/activate && uv sync --all-extras

COPY . .

Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ dependencies = [
"wagtail-localize==1.9",
"wagtail-modeladmin==2.0",
"python-dotenv",
"mysqlclient",
"sentry-sdk[django]",
"wagtail-grapple>=0.27.0",
"wagtail-headless-preview>=0.8.0",
"uvicorn[standard]>=0.32.1",
"whitenoise>=6.8.2",
]

[project.optional-dependencies]
mysql = [
"mysqlclient>=2.2.6",
]
postgres = [
"psycopg2>=2.9.10",
"psycopg[binary]>=3.2.3",
]
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ l18n==2021.3 \
laces==0.1.1 \
--hash=sha256:e45159c46f6adca33010d34e9af869e57201b70675c6dc088e919b16c89456a4 \
--hash=sha256:ae2c575b9aaa46154e5518c61c9f86f5a9478f753a51e9c5547c7d275d361242
mysqlclient==2.2.6 \
--hash=sha256:c0b46d9b78b461dbb62482089ca8040fa916595b1b30f831ebbd1b0a82b43d53 \
--hash=sha256:e940b41d85dfd7b190fa47d52f525f878cfa203d4653bf6a35b271b3c3be125b \
--hash=sha256:794857bce4f9a1903a99786dd29ad7887f45a870b3d11585b8c51c4a753c4174
openpyxl==3.1.5 \
--hash=sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050 \
--hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2
Expand Down
71 changes: 69 additions & 2 deletions uv.lock

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

0 comments on commit 6f4cefe

Please sign in to comment.