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
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python base (venv and user)
FROM python:3.13 AS base
FROM python:3.14 AS base

# Install dumb-init
RUN apt-get update && apt-get install -y dumb-init
Expand All @@ -15,11 +15,9 @@ USER eddrit
# To keep in sync with poetry.lock to speedup CI
RUN /usr/local/bin/pip install --user \
uvloop==0.22.1 \
lxml==6.0.2 \
httptools==0.7.1 \
MarkupSafe==3.0.3 \
pyyaml==6.0.3 \
curl-cffi==0.14.0
pyyaml==6.0.3

# Create a fake eddrit package to install dependencies
WORKDIR /app/
Expand All @@ -28,12 +26,12 @@ COPY eddrit/__init__.py /app/eddrit/

# Install dependencies with poetry with only the needed files
COPY pyproject.toml poetry.lock README.md /app/
ENV CPPFLAGS=-I/usr/local/include/python3.13/ \
ENV CPPFLAGS=-I/usr/local/include/python3.14/ \
PATH=/home/eddrit/.local/bin:$PATH
RUN /usr/local/bin/pip install --user .

# Prod image (app and default config)
FROM python:3.13-slim AS prod
FROM python:3.14-slim AS prod

COPY --from=base /home/eddrit/.local /home/eddrit/.local
COPY --from=base /usr/bin/dumb-init /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion doc/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following architectures are supported by the Docker image:
If you know how to deploy a Python ASGI application, you can also deploy it directly without Docker.

For example, with [uvicorn](https://uvicorn.org/):
1. Make sure Python >=3.13 is installed on your system as it's the minimum version supported by eddrit.
1. Make sure Python >=3.14 is installed on your system as it's the minimum version supported by eddrit.
2. Install [Poetry](https://python-poetry.org/) which is used to manage dependencies of the project.
3. Download/clone the repository and run `poetry install --only main` to install the application.
4. You can then run the app through uvicorn, for example with the following command: `poetry run uvicorn eddrit.app:app`
Expand Down
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"node" = "22"
"npm:@biomejs/biome" = "2.2.4"
"pipx:poetry" = "latest"
"python" = "3.13"
"python" = "3.14"
4 changes: 2 additions & 2 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.13,<3.14"
requires-python = ">=3.14,<3.15"

dependencies = [
"aiofiles (>=25.0.0,<26.0.0)",
Expand Down