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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff73c8470fed0f36769802ce22a5994291fe30b54a5bf3485b030d60c728daea |
|
MD5 | 473bc9d06527f6257cadcaa52ef8791d |
|
BLAKE2b-256 | e4d9326406467f54a5334cc7ee9d53533acee4afa326dbe84116a20b68a32b82 |
Hashes for pdm_polylith_workspace-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e7d8e6cee41b6661edba49dede53ad2e5690f3391e599b415c6a65b3a8343b |
|
MD5 | 60d57711b377cfb984edf1d90ef2faca |
|
BLAKE2b-256 | b0a7dcc6b19334c395a1e46953788095b5383fca777391631199c3addbe97888 |