Skip to content

build: migrate from poetry to uv#22

Merged
FelixAbrahamsson merged 1 commit into
masterfrom
uv-migration
Jul 1, 2026
Merged

build: migrate from poetry to uv#22
FelixAbrahamsson merged 1 commit into
masterfrom
uv-migration

Conversation

@FelixAbrahamsson

Copy link
Copy Markdown
Contributor

Migrates next-cvat from Poetry to uv.

Changes

  • pyproject.toml: converted [tool.poetry] to PEP 621 [project]; deps and dev group preserved (dev group via [dependency-groups], default-groups = "all").
  • Build backend: poetry-core -> uv_build. Flat layout (the next_cvat package lives at the repo root), so [tool.uv.build-backend] module-root = "". uv build produces a wheel containing next_cvat/.
  • Lock: replaced poetry.lock with uv.lock (uv lock --check passes). Re-resolved with --ignore-locked-versions (the old lock pinned an unsatisfiable typer/click combo).
  • CI: test.yml and publish.yml now use astral-sh/setup-uv@v8.2.0 (cache enabled), uv sync --locked, uv build, and uv publish (to PyPI via PYPI_TOKEN). Dropped setup-python + pip/poetry install. No private deps were needed (all deps resolve from PyPI), so the unused PACKAGR_TOKEN install creds were removed.

Validation

  • uv lock --check: passes
  • uv build: wheel built, contains next_cvat/
  • Tests: 23 passed, 13 skipped (skips need live CVAT/network creds)

Library; no Dockerfiles.

🤖 Generated with Claude Code

Convert pyproject to PEP 621, switch build backend to uv_build (flat
layout, module-root = ""), replace poetry.lock with uv.lock, and update
the Test and Publish CI workflows to use astral-sh/setup-uv with
uv sync/build/publish. Published library; no Dockerfiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@FelixAbrahamsson FelixAbrahamsson marked this pull request as ready for review July 1, 2026 12:16
@FelixAbrahamsson FelixAbrahamsson merged commit 493effb into master Jul 1, 2026
1 check passed
@FelixAbrahamsson FelixAbrahamsson deleted the uv-migration branch July 1, 2026 12:20
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.

1 participant