Skip to main content

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

the Python tools for the Polylith Architecture

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdm_polylith_workspace-1.0.8.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

pdm_polylith_workspace-1.0.8-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pdm_polylith_workspace-1.0.8.tar.gz.

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.8.tar.gz
Algorithm Hash digest
SHA256 7937f7d6a774e22d2db9a9d87607315e420f7d54094628e39de621c24ff943ba
MD5 850f8be0dfe3764cb9c3496e38ad5d48
BLAKE2b-256 42159f7d8547aa07e1302ac981c17fc80739e1e243390d6400f027c18227eb96

See more details on using hashes here.

File details

Details for the file pdm_polylith_workspace-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5c2f85e9fd1246fba28c7eca9bcffa138648b38424985794b353735b1daed196
MD5 ec31071e7f786e4b0284613989cd6bba
BLAKE2b-256 06ebbd88eea92fcc74f2f2b492ae8e084e11f2faa4fcdd63174395875d1e8b34

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page