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.2.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

pdm_polylith_workspace-1.0.2-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

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