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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e5510fafdc114a933c1a4bbe81f11994d4fa6f414971710f94ffd371b21e25 |
|
MD5 | d7e235938d6e8c853e21865e59deec17 |
|
BLAKE2b-256 | ceefedd733c676f020d854711a7169ea7a460a89f24571f3ed6af72f13326495 |
Hashes for pdm_polylith_workspace-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7e7a7fdcda04786854da1f7f57fb8aaa32d924fd7d025799b1c8dbfcffc3f7 |
|
MD5 | 40c3fe1835ce71faa549dbdd8d94289e |
|
BLAKE2b-256 | 616759dd12cd47f979b46e486eba96f1e59ad65ad2cc71ed10061619d6b4a625 |