From 6e1a95f8ac8884a8bb1346fbbffb75fa3bf75a5c Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Tue, 18 Mar 2025 18:22:54 +0100 Subject: [PATCH] replace poetry by uv --- Dockerfile | 12 +++++------- README.md | 3 ++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe0170e..c3be73c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,15 +9,13 @@ apt install --yes curl libsodium23 make gettext binutils zip git libglib2.0-0 li libxcb-render0 libxcb-render-util0 libxcb-shape0 && \ rm -rf /var/lib/apt/lists -# Install Poetry -ENV POETRY_HOME="/opt/poetry" -ENV PATH="$POETRY_HOME/bin:$PATH" -RUN curl -sSL https://install.python-poetry.org | python - && poetry config virtualenvs.create false +# Install uv +RUN curl -LsSf https://astral.sh/uv/install.sh | sh -# Install main big dependency -RUN pip install -U PyQt5=="5.15.9" +# Add uv install dir to PATH +ENV PATH="/root/.local/bin:$PATH" -# Set X display port +# Set X display portdocker u ENV DISPLAY :99 # Add virtual X buffer start script diff --git a/README.md b/README.md index 2005056..9c4d03a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,8 @@ In the container, install dependencies and build app: git clone https://git.duniter.org/clients/python/tikka.git cd tikka - poetry install --no-root + uv sync --extra dev + export PATH=".venv/bin:$PATH" bin/convert_resources.sh make i18n_build -- GitLab