Skip to content

Poetry to UV migration#3345

Merged
jb3 merged 7 commits into
mainfrom
jb3/poetry-to-uv
Jul 15, 2025
Merged

Poetry to UV migration#3345
jb3 merged 7 commits into
mainfrom
jb3/poetry-to-uv

Conversation

@jb3
Copy link
Copy Markdown
Member

@jb3 jb3 commented Jul 15, 2025

  • Migrate from using poetry to uv
  • Update CI/CD to use uv over poetry

Once more projects have migrated we will need to update Contributing guidance on site to reflect this.

@jb3 jb3 requested a review from MarkKoz as a code owner July 15, 2025 21:32
@python-discord-policy-bot python-discord-policy-bot Bot requested a review from a team July 15, 2025 21:32
@jb3 jb3 added a: dependencies Related to package dependencies and management a: CI Related to continuous intergration and deployment labels Jul 15, 2025
@jb3 jb3 force-pushed the jb3/poetry-to-uv branch 3 times, most recently from 84770b9 to 96ba3be Compare July 15, 2025 21:46
@jb3 jb3 force-pushed the jb3/poetry-to-uv branch from 96ba3be to 20ab25e Compare July 15, 2025 21:48
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread Dockerfile Outdated
# Install project dependencies with build tools available
WORKDIR /build
RUN pip install --no-cache-dir --upgrade pip setuptools wheel virtualenv \
&& python -m virtualenv .venv
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use stdlib venv? Does uv rely on virtualenv?

Comment thread Dockerfile
Comment on lines +14 to +17
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-dev
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're doing bind mounts to avoid copying the files into the image, which would affect the build cache?

Co-authored-by: Johannes Christ <jc@jchri.st>
@jb3 jb3 requested a review from MarkKoz July 15, 2025 22:21
@jb3 jb3 merged commit d3914f0 into main Jul 15, 2025
5 checks passed
@jb3 jb3 deleted the jb3/poetry-to-uv branch July 15, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: CI Related to continuous intergration and deployment a: dependencies Related to package dependencies and management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants