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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcdc6640ba33048cc3f9ce214580c06c0329bab2592eef3927d503e245c6ef1 |
|
MD5 | d680f0033e1adfca5a40400122369336 |
|
BLAKE2b-256 | 487723e60ed340b5f3e7a4d6e0fcabd6c7a87c940545141d212ac1793d797839 |
Hashes for pdm_polylith_workspace-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e21fff5fa7d2981ad13a316ccbea316f9b769a17c42930f56c9865df7c23cd |
|
MD5 | 5b8a997b09ee650b33ad32f3d45289e0 |
|
BLAKE2b-256 | 41daa5bd42bc72144e3a8f245f07600326d158d5767f350e9c6a9307a1a3d4cb |