Home

Awesome

pdm-autoexport

Github Actions PyPI pdm-managed

A PDM plugin to sync the exported files with the project file.

Installation

Install the plugin with PDM CLI:

pdm plugin add pdm-autoexport

Or using pipx inject:

pipx inject pdm pdm-autoexport

Usage

Configure the requirement mapping in pyproject.toml:

[[tool.pdm.autoexport]]
filename = "requirements/prod.txt"
groups = ["default"]

[[tool.pdm.autoexport]]
filename = "setup.py"
format = "setuppy"

Then the requirement files will be synced every time when the lock file is updated.

Configuration

The configuration is an array of table [[tool.pdm.autoexport]] where each item may contain the following keys: