Skip to main content

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

the Python tools for the Polylith Architecture

Metadata

Release files for pdm-polylith-workspace 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdm-polylith-workspace 1.4.0
File Size Uploaded Provenance Actions
pdm_polylith_workspace-1.4.0.tar.gz 8.2 kB Without provenance Details for pdm_polylith_workspace-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdm-polylith-workspace 1.4.0
File Interpreter ABI Platform Actions
pdm_polylith_workspace-1.4.0-py3-none-any.whl Python 3 none any Details for pdm_polylith_workspace-1.4.0-py3-none-any.whl

Total release size: 23.8 kB

Release files / pdm_polylith_workspace-1.4.0.tar.gz

Download URL pdm_polylith_workspace-1.4.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ab0e17a740607a03a1c28437537b6f14cdc53f53e26b5016037d832a1bbb1b59
BLAKE2b-256 checksum
How to use checksums
9d4b0ca62058a2732697ee7f3a691921322d98c2c0754d79d6d3a45925572d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / pdm_polylith_workspace-1.4.0-py3-none-any.whl

Download URL pdm_polylith_workspace-1.4.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7350ed603ec0ed0279b88f2d6a9114de8bd3dfad9d2cef3a4428c03a2fd3d83
BLAKE2b-256 checksum
How to use checksums
6694d115105eca965becfc18009cf0e881ee616d0601c361220a64f9e5b2a9f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for pdm-polylith-workspace 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page