poetry-plugin-bundle


Namepoetry-plugin-bundle JSON
Version 1.3.0 PyPI version JSON
download
home_page
SummaryPoetry plugin to bundle projects into various formats
upload_time2023-05-29 20:34:59
maintainer
docs_urlNone
authorSébastien Eustace
requires_python>=3.7,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Poetry Plugin: Bundle

This package is a plugin that allows the bundling of Poetry projects into various formats.

## Installation

The easiest way to install the `bundle` plugin is via the `self add` command of Poetry.

```bash
poetry self add poetry-plugin-bundle
```

If you used `pipx` to install Poetry you can add the plugin via the `pipx inject` command.

```bash
pipx inject poetry poetry-plugin-bundle
```

Otherwise, if you used `pip` to install Poetry you can add the plugin packages via the `pip install` command.

```bash
pip install poetry-plugin-bundle
```

## Usage

The plugin introduces a `bundle` command namespace that regroups commands to bundle the current project
and its dependencies into various formats. These commands are particularly useful to deploy
Poetry-managed applications.

### bundle venv

### bundle venv

The `bundle venv` command bundles the project and its dependencies into a virtual environment.

The following command

```bash
poetry bundle venv /path/to/environment
```

will bundle the project in the `/path/to/environment` directory by creating the virtual environment,
installing the dependencies and the current project inside it. If the directory does not exist,
it will be created automatically.

By default, the command uses the current Python executable to build the virtual environment.
If you want to use a different one, you can specify it with the `--python/-p` option:

```bash
poetry bundle venv /path/to/environment --python /full/path/to/python
poetry bundle venv /path/to/environment -p python3.8
poetry bundle venv /path/to/environment -p 3.8
```

**Note**

If the virtual environment already exists, two things can happen:

- **The python version of the virtual environment is the same as the main one**: the dependencies will be synced (updated or removed).
- **The python version of the virtual environment is different**: the virtual environment will be recreated from scratch.

You can also ensure that the virtual environment is recreated by using the `--clear` option:

```bash
poetry bundle venv /path/to/environment --clear
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "poetry-plugin-bundle",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "S\u00e9bastien Eustace",
    "author_email": "sebastien@eustace.io",
    "download_url": "https://files.pythonhosted.org/packages/ad/50/aeb02562e55448b8104e9348af749115363c0252ad620fdccb7c9553d2a9/poetry_plugin_bundle-1.3.0.tar.gz",
    "platform": null,
    "description": "# Poetry Plugin: Bundle\n\nThis package is a plugin that allows the bundling of Poetry projects into various formats.\n\n## Installation\n\nThe easiest way to install the `bundle` plugin is via the `self add` command of Poetry.\n\n```bash\npoetry self add poetry-plugin-bundle\n```\n\nIf you used `pipx` to install Poetry you can add the plugin via the `pipx inject` command.\n\n```bash\npipx inject poetry poetry-plugin-bundle\n```\n\nOtherwise, if you used `pip` to install Poetry you can add the plugin packages via the `pip install` command.\n\n```bash\npip install poetry-plugin-bundle\n```\n\n## Usage\n\nThe plugin introduces a `bundle` command namespace that regroups commands to bundle the current project\nand its dependencies into various formats. These commands are particularly useful to deploy\nPoetry-managed applications.\n\n### bundle venv\n\n### bundle venv\n\nThe `bundle venv` command bundles the project and its dependencies into a virtual environment.\n\nThe following command\n\n```bash\npoetry bundle venv /path/to/environment\n```\n\nwill bundle the project in the `/path/to/environment` directory by creating the virtual environment,\ninstalling the dependencies and the current project inside it. If the directory does not exist,\nit will be created automatically.\n\nBy default, the command uses the current Python executable to build the virtual environment.\nIf you want to use a different one, you can specify it with the `--python/-p` option:\n\n```bash\npoetry bundle venv /path/to/environment --python /full/path/to/python\npoetry bundle venv /path/to/environment -p python3.8\npoetry bundle venv /path/to/environment -p 3.8\n```\n\n**Note**\n\nIf the virtual environment already exists, two things can happen:\n\n- **The python version of the virtual environment is the same as the main one**: the dependencies will be synced (updated or removed).\n- **The python version of the virtual environment is different**: the virtual environment will be recreated from scratch.\n\nYou can also ensure that the virtual environment is recreated by using the `--clear` option:\n\n```bash\npoetry bundle venv /path/to/environment --clear\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Poetry plugin to bundle projects into various formats",
    "version": "1.3.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b083e5ce30aac9968c8950954b29d3b8eef7fedaed8066ac19970590d09a053",
                "md5": "525a00023f10b0b743b0a51df8245a37",
                "sha256": "b742191363126bb1546bf371ae4768e67676c705edd84dcc6be4b5f1d887c19a"
            },
            "downloads": -1,
            "filename": "poetry_plugin_bundle-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "525a00023f10b0b743b0a51df8245a37",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 8726,
            "upload_time": "2023-05-29T20:34:57",
            "upload_time_iso_8601": "2023-05-29T20:34:57.788265Z",
            "url": "https://files.pythonhosted.org/packages/3b/08/3e5ce30aac9968c8950954b29d3b8eef7fedaed8066ac19970590d09a053/poetry_plugin_bundle-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad50aeb02562e55448b8104e9348af749115363c0252ad620fdccb7c9553d2a9",
                "md5": "21233db380928f74bae527d5836d8053",
                "sha256": "257dbd5687f13f12029e14996db6f61cba181ec7796d30a6ba912b3a133b63e7"
            },
            "downloads": -1,
            "filename": "poetry_plugin_bundle-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "21233db380928f74bae527d5836d8053",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 10506,
            "upload_time": "2023-05-29T20:34:59",
            "upload_time_iso_8601": "2023-05-29T20:34:59.647894Z",
            "url": "https://files.pythonhosted.org/packages/ad/50/aeb02562e55448b8104e9348af749115363c0252ad620fdccb7c9553d2a9/poetry_plugin_bundle-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-29 20:34:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "poetry-plugin-bundle"
}
        
Elapsed time: 0.07030s