mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-27 04:08:11 +08:00
Migrate poetry to uv (#337)
This commit is contained in:
+5
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user