a PDM build hook for a Polylith workspace
Project description
PDM Build Hook for a Polylith workspace
A plugin for PDM and the Polylith Architecture.
This build hook is making the virtual environment aware of a Polylith Workspace.
When running pdm install
it will add an additional pth file to the virtual environment,
including paths to the bases
and components
folders.
Usage
PDM has already a configuration option called project-dir
, that is meant for defining a custom
path to the Python source code. But it only allows one directory.
The code in a Polylith workspace is organized into two folders (bases, components), and that is the reason for using this hook.
Installation
[build-system]
requires = ["pdm-backend", "pdm-polylith-workspace"]
build-backend = "pdm.backend"
This is only needed in the Polylith workspace pyproject.toml
, and not in the individual projects.
Polylith documentation
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
Built Distribution
Hashes for pdm_polylith_workspace-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63bfc337df8e162b0a7d564fdded46ed3e4a8b3505d20691bb3c55488932ab6 |
|
MD5 | a345311a5f1fc3788e5fa9d19284ad94 |
|
BLAKE2b-256 | 30fdf5a22f8df5732d85f729905224d35cc5712590635342c0f768103ce2ad1d |
Hashes for pdm_polylith_workspace-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168c2e9a112444b597eed2bd63596d7541b480ae21738928a28dbc0cbeb82252 |
|
MD5 | 08adc1815a7c53f4892af9d277b50a71 |
|
BLAKE2b-256 | 7c98a00b8617aaba08eaf96b35376c18dd10aaf19857a1969eba54e84e8b0ac4 |