Skip to content

Migrate Python dependency management from Poetry to uv#2

Draft
Copilot wants to merge 2 commits into
developfrom
copilot/describe-repository-content
Draft

Migrate Python dependency management from Poetry to uv#2
Copilot wants to merge 2 commits into
developfrom
copilot/describe-repository-content

Conversation

Copy link
Copy Markdown

Copilot AI commented May 11, 2026

This change replaces Poetry-based dependency management with uv across local workflows and container builds. The goal is to standardize on uv for dependency resolution, locking, and command execution in this repository.

  • Project metadata and dependency model

    • Converted pyproject.toml from Poetry tables to PEP 621 ([project]).
    • Moved dev dependencies to uv-compatible [dependency-groups].
    • Updated build backend from poetry-core to setuptools.build_meta.
  • Developer workflows

    • Replaced poetry run ... with uv run ... in Taskfile.yaml for:
      • tests
      • CRD generation
      • datamodel generation
  • Container dependency export

    • Updated both Dockerfiles (docker/operator/Dockerfile, docker/jobs/Dockerfile) to:
      • install uv instead of Poetry
      • export requirements via uv export
      • exclude dev deps and local editable project emission (--no-dev --no-emit-project)
  • Lockfile migration

    • Removed poetry.lock.
    • Added uv.lock as the new lock source for reproducible dependency resolution.

Example of the command migration pattern:

# Taskfile.yaml
cmds:
  - uv run pytest -v --show-capture=all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants