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-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34bb68606be9cac4c28d765b2fa82a28e14decd010a25a380b46daf3c3114cea |
|
MD5 | f5137d48db99b71d35264e6e9f099999 |
|
BLAKE2b-256 | d052d61fa326cde45340e9de1681158c964110e187bbdd8cb7059ac57f07df57 |
Hashes for pdm_polylith_workspace-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a45713deeb9aca10f42fc7502ee97956fc256c54ccb55950801c5bfc0d77b9c |
|
MD5 | 793d0a568240f0eefc391745d5776e56 |
|
BLAKE2b-256 | c6962e1d682b3fa4bf5e363d27b0eb0a9855d00b99ba6d2d9dee634510782adb |