Migrating a plugin from Poetry to uv¶
This guide will help you migrate your Singer plugin from Poetry to uv.
Prerequisites¶
Steps¶
Use the migrate-to-uv tool to migrate your project from Poetry to uv. Run the following command in your project directory:
uvx migrate-to-uv
Update the
build-systemsection in yourpyproject.tomlfile to usehatchling:
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1,<2"]
Update your CI/CD to use
uvcommands instead ofpoetrycommands. For example, replacepoetry installwithuv sync. You may also want to use the officialsetup-uvGitHub Action to installuvin your CI/CD workflow.
Example¶
For an example of a migration to uv for a Singer tap, see how it was done for tap-stackexchange.