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.7.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.7.tar.gz
Algorithm Hash digest
SHA256 821d28f7d920cd1f2ba5cd3a2a2fb88c5debfcb787ebea055062fd25610b5490
MD5 aa097a4b3754fe2d48ceb5ccd9166d9c
BLAKE2b-256 ea8c2f79970c203fca5ef47ea4498257530b7daa55e435ee90b54fde496e3130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b6f53e0493f10ebc9498bb24a22d636de060dc5be17e0d434152e3dd57198100
MD5 6b7f39494203fdc5aafe95245fbe3098
BLAKE2b-256 f9dcec5a50107ef08c50441210b43e1e97183d0d995d6dcc801c49b53f1fd064

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