Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY . /app
# Create virtual environment, upgrade pip and install dependencies using uv for speed
RUN python3 -m venv /app/.venv && \
/app/.venv/bin/python3 -m pip install --upgrade pip setuptools pdm uv && \
/app/.venv/bin/python3 -m uv pip install .
/app/.venv/bin/python3 -m uv pip install .[redis,postgres]

# update the user permissions
RUN chown -R 1001:0 /app && \
Expand Down
2 changes: 1 addition & 1 deletion Containerfile.lite
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ COPY . /app
RUN set -euo pipefail \
&& python3 -m venv /app/.venv \
&& /app/.venv/bin/pip install --no-cache-dir --upgrade pip setuptools wheel pdm uv \
&& /app/.venv/bin/uv pip install . \
&& /app/.venv/bin/uv pip install .[redis,postgres] \
&& rm -rf /root/.cache /var/cache/dnf

# ----------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ os-deps: $(OS_DEPS_SCRIPT)
# help: activate - Activate the virtual environment in the current shell
# help: install - Install project into the venv
# help: install-dev - Install project (incl. dev deps) into the venv
# help: install-db - Install project (incl. postgres and redis) into venv
# help: update - Update all installed deps inside the venv
.PHONY: venv
venv:
Expand All @@ -91,6 +92,10 @@ activate:
install: venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && python3 -m uv pip install ."

.PHONY: install-db
install-db: venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && python3 -m uv pip install .[redis,postgres]"

.PHONY: install-dev
install-dev: venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && python3 -m uv pip install .[dev]"
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ redis = [
"redis>=6.1.0",
]

postgres = [
"psycopg2-binary>=2.9.10",
]

# Optional dependency groups (development)
dev = [
"argparse-manpage>=4.6",
Expand Down