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-system
section in yourpyproject.toml
file to usehatchling
:
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1,<2"]
Update your CI/CD to use
uv
commands instead ofpoetry
commands. For example, replacepoetry install
withuv sync
. You may also want to use the officialsetup-uv
GitHub Action to installuv
in 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.