A pyproject.toml conversion tool for Poetry to uv migration
Project description
bukowski
A pyproject.toml conversion tool for Poetry to uv migration.
Installation
pip install bukowski
# or
uv pip install bukowski
Alternatively, you can use uvx to install and run from a self-contained virtual environment if you don't have a virtual environment ready:
uvx bukowski --help
Usage
$ bukowski --help
Usage: bukowski [OPTIONS] [PATH]
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ path [PATH] path to pyproject.toml [default: pyproject.toml] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --force-overwrite -f Whether to overwrite the existing │
│ pyproject.toml file or not │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to │
│ copy it or customize the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
For example, let's say you have the following pyproject.toml:
[tool.poetry]
name = "foo"
version = "0.1.0"
description = "bar"
authors = ["John Smith <johnsmith@example.org>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = { extras = ["all"], version = "^0.112.2" }
requests = "2.32.3"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
bukowski /path/to/pyproject.toml converts it (outputs it to stdout when -f options is not set, otherwise overwrites the path) as follows:
[project]
name = "foo"
version = "0.1.0"
description = "bar"
readme = "README.md"
requires-python = ">=3.10,<4.0"
authors = [
{ name = "John Smith", email = "johnsmith@example.org" },
]
dependencies = [
"fastapi[all]>=0.112.2,<0.113.0",
"requests==2.32.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest>=8.3.2,<9.0.0",
]
Then you can do uv sync with the new pyproject.toml.
Known Issues
packages(tool.poetry.packages) is not supported.source(tool.poetry.source) is supported, but the conversion may be lossy.
Alternatives
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bukowski-0.3.4.tar.gz.
File metadata
- Download URL: bukowski-0.3.4.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5cc60195da1e6b220a77982e2d434ee3b5fd896bfae77d39c2e471160ab1f9a
|
|
| MD5 |
f518bee590242a95f0ec6455a3e056bd
|
|
| BLAKE2b-256 |
1b0b32dda4086731eef2efd34bc070c4a409c001a694cb1478dadf955bda9529
|
Provenance
The following attestation bundles were made for bukowski-0.3.4.tar.gz:
Publisher:
publish.yml on ninoseki/bukowski
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bukowski-0.3.4.tar.gz -
Subject digest:
d5cc60195da1e6b220a77982e2d434ee3b5fd896bfae77d39c2e471160ab1f9a - Sigstore transparency entry: 152814699
- Sigstore integration time:
-
Permalink:
ninoseki/bukowski@57b4c27b493febc9ea1124e89d033dee69c757b7 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/ninoseki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57b4c27b493febc9ea1124e89d033dee69c757b7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file bukowski-0.3.4-py3-none-any.whl.
File metadata
- Download URL: bukowski-0.3.4-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2b39e63e3ba8fe1e9efab3adac57fc66f6071a42274a692f48cd991caedcc64
|
|
| MD5 |
dc4259a2e4995819d86c8fc2ae9499a8
|
|
| BLAKE2b-256 |
2e9be8f4d5cd7457727562f9d2ad958fe145073591fd6a21c569745d604c5fa9
|
Provenance
The following attestation bundles were made for bukowski-0.3.4-py3-none-any.whl:
Publisher:
publish.yml on ninoseki/bukowski
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bukowski-0.3.4-py3-none-any.whl -
Subject digest:
b2b39e63e3ba8fe1e9efab3adac57fc66f6071a42274a692f48cd991caedcc64 - Sigstore transparency entry: 152814700
- Sigstore integration time:
-
Permalink:
ninoseki/bukowski@57b4c27b493febc9ea1124e89d033dee69c757b7 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/ninoseki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57b4c27b493febc9ea1124e89d033dee69c757b7 -
Trigger Event:
release
-
Statement type: