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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab884bf9873f7b2fc1622126ca78d5c2152524fe797cd5ef55e31cc43a2ce748 |
|
MD5 | 61df74cac83377796e9f5dec31d07626 |
|
BLAKE2b-256 | be531e83eb9da8bdff0a4ffbf03de8ddf326a0b2e8594a53fc2990a44144a909 |
Hashes for pdm_polylith_workspace-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a6fe3afda49c4813fad24f66e8239c6c4e425f63a44944dfa4fce7a37dd4ca |
|
MD5 | 9ccb5d25e3fee1cee8224c9512798e91 |
|
BLAKE2b-256 | 05097c9d9f58e0e0c8b8f179fccd6ff48bf0aa1540a4210af5fd2fe9e2088a4f |