diff --git a/Dockerfile b/Dockerfile index fe425ba..7c92c40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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/ @@ -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/ diff --git a/doc/deployment/README.md b/doc/deployment/README.md index b16bc2a..0cdbce0 100644 --- a/doc/deployment/README.md +++ b/doc/deployment/README.md @@ -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` diff --git a/mise.toml b/mise.toml index 646aeef..86cd64d 100644 --- a/mise.toml +++ b/mise.toml @@ -2,4 +2,4 @@ "node" = "22" "npm:@biomejs/biome" = "2.2.4" "pipx:poetry" = "latest" -"python" = "3.13" +"python" = "3.14" diff --git a/poetry.lock b/poetry.lock index e3a93c9..765924c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1720,5 +1720,5 @@ dev = ["black (>=19.3b0) ; python_version >= \"3.6\"", "pytest (>=4.6.2)"] [metadata] lock-version = "2.1" -python-versions = ">=3.13,<3.14" -content-hash = "ba3f496441f4e5396e0d3cd5cf3dce1c8ede7234580aae0921affcc620d61a57" +python-versions = ">=3.14,<3.15" +content-hash = "4023f2130a5066f9f0a3fca89cb879a6949836e9d4d66f9ce41cb9adf582fb79" diff --git a/pyproject.toml b/pyproject.toml index 494e8d6..2bcfcee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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)",