Skip to main content

Poetry Package Exporter Plugin

Introduction

The Poetry Package Exporter is a plugin for the poetry package manager. It is designed to enhance the CI process by exporting project dependencies as separate pip-installable packages. By doing so, it allows you to leverage the existing Poetry cache, resulting in significantly shorter optimized build times.

Features

  • Dependency Exportation: Automatically exports your Poetry-managed dependencies into pip-installable packages.
  • Cache Re-utilization: Leverages Poetry's cache system to avoid redundant downloads, speeding up the Docker build process.

Installation

To install the Poetry Package Exporter plugin, run the following command in your terminal:

poetry plugin add poetry_plugin_export_packages

or

pip install poetry_plugin_export_packages

Ensure you have Poetry installed prior to adding this plugin. For instructions on installing Poetry, visit Poetry's documentation.

Usage

After installing the plugin, use the following command to export your dependencies:

poetry export-packages

This command will generate a set of pip-installable packages for your project's dependencies. You can then copy these packages into your Docker build context and use pip to install them during the Docker image build process.

Configuration

The plugin supports several configuration options to customize the export process.

$ poetry export-packages -h

Description:
  export python packages

Usage:
  export-packages [options]

Options:
  -o, --output-dir=OUTPUT-DIR          Directory to save packages to. [default: "export-packages"]
      --shebang=SHEBANG                Shebang to start the generated pip install script with [default: "#! /bin/sh"]
  -f, --output-script[=OUTPUT-SCRIPT]  Place to save output script to.
      --without=WITHOUT                The dependency groups to ignore. (multiple values allowed)
      --with=WITH                      The optional dependency groups to include. (multiple values allowed)
      --only=ONLY                      The only dependency groups to include. (multiple values allowed)
  -h, --help                           Display help for the given command. When no command is given display help for the list command.
  -q, --quiet                          Do not output any message.
  -V, --version                        Display this application version.
      --ansi                           Force ANSI output.
      --no-ansi                        Disable ANSI output.
  -n, --no-interaction                 Do not ask any interactive question.
      --no-plugins                     Disables plugins.
      --no-cache                       Disables Poetry source caches.
  -C, --directory=DIRECTORY            The working directory for the Poetry command (defaults to the current working directory).
  -v|vv|vvv, --verbose                 Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

Contributing

Contributions to the Poetry Dependency Exporter are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for poetry-plugin-export-packages 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-plugin-export-packages 1.0.3
File Size Uploaded Provenance Actions
poetry_plugin_export_packages-1.0.3.tar.gz 6.1 kB Without provenance Details for poetry_plugin_export_packages-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for poetry-plugin-export-packages 1.0.3
File Interpreter ABI Platform Actions
poetry_plugin_export_packages-1.0.3-py3-none-any.whl Python 3 none any Details for poetry_plugin_export_packages-1.0.3-py3-none-any.whl

Total release size: 13.3 kB

Release files / poetry_plugin_export_packages-1.0.3.tar.gz

Download URL poetry_plugin_export_packages-1.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1f4ee308a12d2cfc50a6aeeeb1ab9040e246e54f99f0dad3488cd9f8ff7970d9
BLAKE2b-256 checksum
How to use checksums
bf559a1f3f7be9c9628b2ccadb25cca7b4df49026c5d433595b58a9cb109c687
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

Release files / poetry_plugin_export_packages-1.0.3-py3-none-any.whl

Download URL poetry_plugin_export_packages-1.0.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce548529456a08eed90ed8d2d55a941899b7ac277a81bc4096205ecd9fb68eca
BLAKE2b-256 checksum
How to use checksums
134adfc48cdd90484f5942d391937568452a896aa4ec55e56bc36cb21f719b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

Security for poetry-plugin-export-packages 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page