Skip to content

build: migrate from poetry to uv#12

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

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

Conversation

@FelixAbrahamsson

Copy link
Copy Markdown
Contributor

Migrates kw6 from poetry to uv.

Type: library (published to PyPI)

Changes

  • pyproject.toml → PEP 621; build backend poetry.coreuv_build with [tool.uv.build-backend] module-root = "" (flat layout, kw6/ at repo root).
  • license = "Apache 2.0" → SPDX "Apache-2.0".
  • Removed pbr/setuptools_scm leftovers (setup.py, setup.cfg) and poetry.lock; added uv.lock.
  • CI: test.yml and publish.yml switched from setup-python + curl-poetry to astral-sh/setup-uv@v8.2.0; poetry installuv sync --locked, poetry run pytestuv run --no-sync pytest, poetry version/builduv version/uv build, poetry publishuv publish (PyPI, PYPI_TOKEN). build-docs job left unchanged (pip-based, not poetry).

Validation

  • uv lock --check: passes.
  • uv build: sdist + wheel build clean; wheel contains the kw6/ package.
  • Tests: uv run --no-sync pytest15 passed (doctests). Warnings are pre-existing pydantic v2 deprecations, unrelated to the migration.
  • No Docker, no private/git dependencies.

🤖 Generated with Claude Code

Convert to PEP 621 pyproject with uv_build backend (flat layout,
module-root = ""). Library published to PyPI. Re-lock with uv.lock,
remove pbr/setuptools_scm setup.py/setup.cfg leftovers, and migrate
test/publish CI workflows from poetry to uv.

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 05:51
@FelixAbrahamsson FelixAbrahamsson requested a review from fippli July 1, 2026 05:52
@FelixAbrahamsson FelixAbrahamsson merged commit 353e87e into master Jul 1, 2026
5 checks passed
@FelixAbrahamsson FelixAbrahamsson deleted the uv-migration branch July 1, 2026 12:04
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