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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a2d8de8402826765b518ad7e83e24103c95224988c0e5d9920c250afbea891 |
|
MD5 | c1b19b80342ca9e5c091f21021c01edd |
|
BLAKE2b-256 | 41c522b6129824d6f31b31c9a24f1d35b244ade09166a9b7f38da75f33101dae |
Hashes for pdm_polylith_workspace-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6909fec3b69914b601d1d6bf56a193fc443cdc117ed42c2f7fe8d4af6520020c |
|
MD5 | 57c308a1e8920cf2dda35548cdb0e422 |
|
BLAKE2b-256 | a7443bb1917569e6a2ca85219394381b9144584f9cfadcfa4caf70e61c55e4f8 |