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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c29c5b62042fd4cc5cbde979e70b8ba43b739daa49d8d502e8efbbd1eec5065 |
|
MD5 | f73be16f3b68aecd4f76ac5a4e32f820 |
|
BLAKE2b-256 | 945bed80d1f5dca643b6343cfe5240245cd1b75505f388f7a59367e9ffebd2f0 |
Hashes for pdm_polylith_workspace-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f17471d3c12eaaddaec3d7e65302ed19be676c1f292b3c46eee5dceee9c1310 |
|
MD5 | 92423fff0fe708dc7bf44715e94d061f |
|
BLAKE2b-256 | 29c84541930c4e7aa1088da12c16f2ae547f5c5c1a963cb1135e333616d7317e |