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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676a131c58b578985f0e86fba89abbaad72fbed9ffb5081d12087970d644d843 |
|
MD5 | f02a35688e4b83e98d303b3693d8ac7b |
|
BLAKE2b-256 | a40df22dc773351cdfa277d68dde0a3ecb122ad58e8e1322c3a921bf57692541 |
Hashes for pdm_polylith_workspace-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a62c30de70d8f8bf1138bb2826a4f789e24df9e1cc1cfcaa2f3bd15ea5b67211 |
|
MD5 | 8bb6815072f8e1b16ac3c78c544aaecd |
|
BLAKE2b-256 | c1cca0abf28df8fc6d2c21a1cef620178bf09d125a1b2ace4bf51669ac6e3ba4 |