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.9.tar.gz
.
File metadata
- Download URL: pdm_polylith_workspace-1.0.9.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 | bd79d066bd7cc8259996512372e4d917f0b7b5f80016f340d6e085504875c608 |
|
MD5 | 3fc8e900ba761787f7a0c8cc81578c38 |
|
BLAKE2b-256 | 1207edf6232f5905c54bdebfc2fc35ff1b959ed48ef6c18706d4c1660e192c8c |
File details
Details for the file pdm_polylith_workspace-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: pdm_polylith_workspace-1.0.9-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 | b0f62c3eb74f93002566373a10fc64f5e97151e86fe4843dbb81c53bf6e86ca8 |
|
MD5 | 967027832052d5ee0fe556c899e1acae |
|
BLAKE2b-256 | 11c3be9466d2f28e15471eb8b44e7d8c871b8c67a421c50e586d54869113f046 |