Migrate poetry to uv (#337)

This commit is contained in:
Stan Triepels
2026-08-01 05:11:49 +02:00
committed by GitHub
parent 0e4c163d79
commit ea839ab664
8 changed files with 1426 additions and 1644 deletions
+5 -12
View File
@@ -1,5 +1,5 @@
# Sets the python version
FROM python:3.9-slim-bookworm
FROM python:3.13-slim-bookworm
# Allows the logs generated by python apps to be rendered in the terminal
ENV PYTHONUNBUFFERED 1
@@ -9,20 +9,13 @@ ENV SHELL /bin/bash
RUN set -ex \
&& apt update \
&& apt-get install gcc python3-dev --yes
&& apt-get install gcc gettext python3-dev --yes
# Upgrades pip
RUN pip install -U pip setuptools
# Install poetry
RUN pip install poetry==1.8.2
# Install UV
RUN pip install uv==0.12.1
WORKDIR /app
COPY . .
RUN poetry lock --no-update
RUN poetry config virtualenvs.create false
RUN poetry install -E testing
RUN uv sync --extra testing