{"id":46979890,"url":"https://github.com/bartdorlandt/convert_poetry2uv","last_synced_at":"2026-03-11T12:56:50.937Z","repository":{"id":265212710,"uuid":"895466227","full_name":"bartdorlandt/convert_poetry2uv","owner":"bartdorlandt","description":"A solution to convert existing poetry based python projects pyproject.toml to be consumed with `uv` instead ","archived":false,"fork":false,"pushed_at":"2026-03-05T15:53:06.000Z","size":212,"stargazers_count":13,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-05T18:48:14.035Z","etag":null,"topics":["poetry","python","uv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartdorlandt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-28T09:07:17.000Z","updated_at":"2026-02-18T17:51:33.000Z","dependencies_parsed_at":"2025-01-02T20:18:05.469Z","dependency_job_id":"2514a99e-a267-4b49-a2bf-4f82451bd3d7","html_url":"https://github.com/bartdorlandt/convert_poetry2uv","commit_stats":null,"previous_names":["bartdorlandt/poetry_to_uv","bartdorlandt/poetry-to-uv","bartdorlandt/convert-poetry2uv"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/bartdorlandt/convert_poetry2uv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartdorlandt%2Fconvert_poetry2uv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartdorlandt%2Fconvert_poetry2uv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartdorlandt%2Fconvert_poetry2uv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartdorlandt%2Fconvert_poetry2uv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartdorlandt","download_url":"https://codeload.github.com/bartdorlandt/convert_poetry2uv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartdorlandt%2Fconvert_poetry2uv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["poetry","python","uv"],"created_at":"2026-03-11T12:56:50.267Z","updated_at":"2026-03-11T12:56:50.916Z","avatar_url":"https://github.com/bartdorlandt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# convert-poetry2uv\n\nThe convert_poetry2uv.py script is meant to easily convert the pyproject.toml to be consumed by `uv` instead of `poetry`.\n\n\u003e Poetry v2 came out after this tool. The tool has been modified to work with poetry v2 format as well. Please create an issue/PR if you find any issues.\n\nIt has a dry-run flag, to have a temporary file to validate the output. When not running the dry-run the original file is saved with a .org extension.\n\n    uv run convert_poetry2uv.py \u003cpath to file\u003e [-n]\n\nYou may need to make some manual changes.\nThe layout might not be exactly to your liking. I would recommend using [Even better toml](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) in VSCode. Just open the newly generated toml file and save. It will format the file according to the toml specification.\n\n## Caveats\n* If you were using the poetry build-system, it is removed in the generated pyproject.toml.\n* if you had optional dev groups, the dev group libraries will be used, the optional flag is removed\n\n# Using as a tool\nThe script can be run as a tool using [`uvx`](https://docs.astral.sh/uv/guides/tools/)\n\n    uvx convert-poetry2uv --help\n\n## uv instructions\nOnce the pyproject.toml is converted, you can use `uv` to manage your project. To start fresh, the .venv directory is removed followed by the creation and sync of the .venv directory.\n\n    rm -rf .venv\n    uv venv   # or 'uv venv -p 3.12' to specify a python version\n    uv sync\n\nWith this you are good to go and are able to validate the migration was a success.\n\n## Pypi\nThe script is also available on pypi as [convert-poetry2uv](https://pypi.org/project/convert-poetry2uv/)\n\n    pip install convert-poetry2uv\n\n# Contribute\nThough I've tried to make it as complete as possible, it is not guaranteed to work for all cases. Feel free to contribute to the code or create an issue with the toml file that is not converted correctly.\n\n## Versions/Releases\n\nThe version is automatically updated with `python-semantic-release`. Take note of the `pyproject.toml` to see which keywords can be added to the commit message to ensure the correct version is released. The release is created when merged to main.\n\n## Trusted Publisher\n\n\u003e Note to self: When a new github workflow is required, don't forget to add the new workflow to the trusted publisher list.\n\n# Links\n* [Writing pyproject.toml](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/)\n* [uv pyproject.toml](https://docs.astral.sh/uv/concepts/projects/layout/)\n* [Poetry pyproject.toml](https://python-poetry.org/docs/pyproject/)\n* [Real python blog: Python and toml](https://realpython.com/python-toml/#write-toml-documents-with-tomli_w)\n* [tomlkit docs](https://tomlkit.readthedocs.io/en/latest/quickstart/#)\n* [Taskfile installation](https://taskfile.dev/installation/)\n* [uv installation](https://docs.astral.sh/uv/getting-started/installation/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartdorlandt%2Fconvert_poetry2uv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartdorlandt%2Fconvert_poetry2uv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartdorlandt%2Fconvert_poetry2uv/lists"}