bukowski


Namebukowski JSON
Version 0.3.6 PyPI version JSON
download
home_pageNone
SummaryA pyproject.toml conversion tool for Poetry to uv migration
upload_time2024-12-14 01:49:46
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Manabu Niseki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords poetry uv
VCS
bugtrack_url
requirements uv
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # bukowski

A `pyproject.toml` conversion tool for [Poetry](https://python-poetry.org/) to [uv](https://docs.astral.sh/uv/) migration.

## Installation

```bash
pip install bukowski
# or
uv pip install bukowski
```

Alternatively, you can use [uvx](https://docs.astral.sh/uv/guides/tools/) to install and run from a self-contained virtual environment if you don't have a virtual environment ready:

```bash
uvx bukowski --help
```

## Usage

```bash
$ 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`:

```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:

```toml
[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

- [PacificGilly/poetry_to_uv](https://github.com/PacificGilly/poetry_to_uv)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bukowski",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "poetry, uv",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/78/df/309abec55edb507e0a4f7e524148d053144daf708f25901b2117735186f6/bukowski-0.3.6.tar.gz",
    "platform": null,
    "description": "# bukowski\n\nA `pyproject.toml` conversion tool for [Poetry](https://python-poetry.org/) to [uv](https://docs.astral.sh/uv/) migration.\n\n## Installation\n\n```bash\npip install bukowski\n# or\nuv pip install bukowski\n```\n\nAlternatively, you can use [uvx](https://docs.astral.sh/uv/guides/tools/) to install and run from a self-contained virtual environment if you don't have a virtual environment ready:\n\n```bash\nuvx bukowski --help\n```\n\n## Usage\n\n```bash\n$ bukowski --help\n\n Usage: bukowski [OPTIONS] [PATH]\n\n\u256d\u2500 Arguments \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502   path      [PATH]  path to pyproject.toml [default: pyproject.toml]         \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 --force-overwrite     -f        Whether to overwrite the existing            \u2502\n\u2502                                 pyproject.toml file or not                   \u2502\n\u2502 --install-completion            Install completion for the current shell.    \u2502\n\u2502 --show-completion               Show completion for the current shell, to    \u2502\n\u2502                                 copy it or customize the installation.       \u2502\n\u2502 --help                          Show this message and exit.                  \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n```\n\nFor example, let's say you have the following `pyproject.toml`:\n\n```toml\n[tool.poetry]\nname = \"foo\"\nversion = \"0.1.0\"\ndescription = \"bar\"\nauthors = [\"John Smith <johnsmith@example.org>\"]\nreadme = \"README.md\"\n\n[tool.poetry.dependencies]\npython = \"^3.10\"\nfastapi = { extras = [\"all\"], version = \"^0.112.2\" }\nrequests = \"2.32.3\"\n\n[tool.poetry.group.dev.dependencies]\npytest = \"^8.3.2\"\n\n[build-system]\nrequires = [\"poetry-core\"]\nbuild-backend = \"poetry.core.masonry.api\"\n```\n\n`bukowski /path/to/pyproject.toml` converts it (outputs it to stdout when `-f` options is not set, otherwise overwrites the path) as follows:\n\n```toml\n[project]\nname = \"foo\"\nversion = \"0.1.0\"\ndescription = \"bar\"\nreadme = \"README.md\"\nrequires-python = \">=3.10,<4.0\"\nauthors = [\n    { name = \"John Smith\", email = \"johnsmith@example.org\" },\n]\ndependencies = [\n    \"fastapi[all]>=0.112.2,<0.113.0\",\n    \"requests==2.32.3\",\n]\n\n[build-system]\nrequires = [\"hatchling\"]\nbuild-backend = \"hatchling.build\"\n\n[dependency-groups]\ndev = [\n    \"pytest>=8.3.2,<9.0.0\",\n]\n```\n\nThen you can do `uv sync` with the new `pyproject.toml`.\n\n## Known Issues\n\n- `packages` (`tool.poetry.packages`) is not supported.\n- `source` (`tool.poetry.source`) is supported, but the conversion may be lossy.\n\n## Alternatives\n\n- [PacificGilly/poetry_to_uv](https://github.com/PacificGilly/poetry_to_uv)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Manabu Niseki  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A pyproject.toml conversion tool for Poetry to uv migration",
    "version": "0.3.6",
    "project_urls": {
        "Repository": "https://github.com/ninoseki/bukowski"
    },
    "split_keywords": [
        "poetry",
        " uv"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e0eb325a856c436a7cde3dd9c987c927338c16a6aa30e5809fb656457c4c94c",
                "md5": "492f93cf4efc4662cdfd08082b1a13a5",
                "sha256": "fb0a1b21dfda354bc7193d779510c0e0cf9c4ab41734b2d6dd00de021e865c7c"
            },
            "downloads": -1,
            "filename": "bukowski-0.3.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "492f93cf4efc4662cdfd08082b1a13a5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 9042,
            "upload_time": "2024-12-14T01:49:44",
            "upload_time_iso_8601": "2024-12-14T01:49:44.494774Z",
            "url": "https://files.pythonhosted.org/packages/5e/0e/b325a856c436a7cde3dd9c987c927338c16a6aa30e5809fb656457c4c94c/bukowski-0.3.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "78df309abec55edb507e0a4f7e524148d053144daf708f25901b2117735186f6",
                "md5": "1a0d41fea0428af5cbd0ff0b1f6b25bf",
                "sha256": "1814c1488e065c7cbc228a3a9cc05dc18e2a7739a8dee66ddaacf011a77cf86b"
            },
            "downloads": -1,
            "filename": "bukowski-0.3.6.tar.gz",
            "has_sig": false,
            "md5_digest": "1a0d41fea0428af5cbd0ff0b1f6b25bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 51546,
            "upload_time": "2024-12-14T01:49:46",
            "upload_time_iso_8601": "2024-12-14T01:49:46.859060Z",
            "url": "https://files.pythonhosted.org/packages/78/df/309abec55edb507e0a4f7e524148d053144daf708f25901b2117735186f6/bukowski-0.3.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-14 01:49:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ninoseki",
    "github_project": "bukowski",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "uv",
            "specs": [
                [
                    "==",
                    "0.5.4"
                ]
            ]
        }
    ],
    "lcname": "bukowski"
}
        
Elapsed time: 0.64445s