Skip to content

Migrate from Poetry to uv - #733

Merged
joostlek merged 1 commit into
mainfrom
uv
Jun 2, 2026
Merged

joostlek merged 1 commit into
mainfrom
uv

Conversation

@joostlek

@joostlek joostlek commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates project tooling from Poetry to uv.

  • pyproject.toml converted to PEP 621 [project] + [dependency-groups] with the hatchling build backend
  • poetry.lock replaced with uv.lock
  • GitHub workflows use astral-sh/[email protected] and uv run instead of pipx install poetry + actions/setup-python
  • Release workflow switched to PyPI Trusted Publishing (pypa/gh-action-pypi-publish, no token), using uv version + uv build
  • .pre-commit-config.yaml: poetry run → uv run, removed the poetry check hook, codespell exclude updated to uv\.lock
  • .github/renovate.json: poetry manager → pep621
  • README.md updated to reference uv

Local verification

  • uv sync --all-groups ✅
  • uv run ruff check . ✅
  • uv run mypy src tests ✅
  • uv run pytest tests/ ✅ (34 passed, 99.50% coverage)

⚠️ Requires PyPI Trusted Publisher: Owner=joostlek, Repo=python-mealie, Workflow=release.yaml, Environment=release.

Replace Poetry with uv as the project's dependency manager and build
tooling. Convert pyproject.toml to PEP 621 with [dependency-groups],
switch the build backend to hatchling, and replace poetry.lock with
uv.lock.

Update GitHub workflows to use astral-sh/setup-uv and uv run, switch
the release workflow to PyPI trusted publishing, update the
pre-commit config and renovate config, and update the README to
reference uv.
@joostlek joostlek added the ci Work that improves the continue integration. label Jun 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 2, 2026

Copy link
Copy Markdown

@joostlek
joostlek merged commit 11608ed into main Jun 2, 2026
14 checks passed
@joostlek
joostlek deleted the uv branch June 2, 2026 18:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ci Work that improves the continue integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant