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.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pdm_autoexport-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a2849bf51c19c74fcbaeb720675cef0eebed6275e78180ca2e0b3484275b6d |
|
MD5 | dbc92fb763df4daa145c2fb269aef026 |
|
BLAKE2b-256 | 936442e85ab9687352a0aaee08f82c0843cf00e3339ec7c69dab7aa9adea739d |