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
File details
Details for the file pdm_polylith_workspace-1.0.8.tar.gz
.
File metadata
- Download URL: pdm_polylith_workspace-1.0.8.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7937f7d6a774e22d2db9a9d87607315e420f7d54094628e39de621c24ff943ba |
|
MD5 | 850f8be0dfe3764cb9c3496e38ad5d48 |
|
BLAKE2b-256 | 42159f7d8547aa07e1302ac981c17fc80739e1e243390d6400f027c18227eb96 |
File details
Details for the file pdm_polylith_workspace-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: pdm_polylith_workspace-1.0.8-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c2f85e9fd1246fba28c7eca9bcffa138648b38424985794b353735b1daed196 |
|
MD5 | ec31071e7f786e4b0284613989cd6bba |
|
BLAKE2b-256 | 06ebbd88eea92fcc74f2f2b492ae8e084e11f2faa4fcdd63174395875d1e8b34 |