A PDM plugin to sync the exported files with the project file
Project description
pdm-autoexport
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:
filename
(required): The path to the exported file.groups
(optional, default:["default"]
): The groups of optional dependencies or dev dependency groups of PDM to sync with.format
(optional, default:"requirements"
): The format of the exported file, same as the--format
option to thepdm export
command. Onlyrequirements
andsetuppy
are supported.without-hashes
(optional, default:false
): Whether to remove the hashes from the exported file. Only applicable torequirements
format.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdm-autoexport-0.1.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pdm_autoexport-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b4a0f64bc81163e16b22ef6cb05dbb7fe49c1d8792b553e880ed061d900f91 |
|
MD5 | a65e9c1e0dcebe8ec2daa54db441b166 |
|
BLAKE2b-256 | 0b47f9181f0e1aad9adc3790436ff1d51f400be85ee710fbe1454426f94f7367 |