Skip to main content

Poetry plugin to bundle projects into various formats

Project description

Poetry Plugin: Bundle

Poetry

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.

poetry self add poetry-plugin-bundle

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

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.

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

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 same Python executable that Poetry would use when running poetry install to build the virtual environment. If you want to use a different one, you can specify it with the --python/-p option:

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_plugin_bundle-1.4.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

poetry_plugin_bundle-1.4.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file poetry_plugin_bundle-1.4.1.tar.gz.

File metadata

  • Download URL: poetry_plugin_bundle-1.4.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure

File hashes

Hashes for poetry_plugin_bundle-1.4.1.tar.gz
Algorithm Hash digest
SHA256 9f9da8289157d88e8ecb918fd8c342e9a7053d9bc2468cfb461a16e4ec439e84
MD5 a14df04df000fb68ed0251d48f9441ff
BLAKE2b-256 bfcfb78667a102e3ed8325ae48e0b4ffe00afafc59128ae623ea6856484adf1d

See more details on using hashes here.

File details

Details for the file poetry_plugin_bundle-1.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_plugin_bundle-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1908504a73fa238fa8c2506df387e7b2dc3bf52a512907fe3d4ee32d66bdf1
MD5 f9e3c40065b715a541ff45c696b36634
BLAKE2b-256 21c35a9de4758867f6382c87cc40e7f054867cc7e6443e73a9fa20880e25f2f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page