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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.9.tar.gz
Algorithm Hash digest
SHA256 bd79d066bd7cc8259996512372e4d917f0b7b5f80016f340d6e085504875c608
MD5 3fc8e900ba761787f7a0c8cc81578c38
BLAKE2b-256 1207edf6232f5905c54bdebfc2fc35ff1b959ed48ef6c18706d4c1660e192c8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f62c3eb74f93002566373a10fc64f5e97151e86fe4843dbb81c53bf6e86ca8
MD5 967027832052d5ee0fe556c899e1acae
BLAKE2b-256 11c3be9466d2f28e15471eb8b44e7d8c871b8c67a421c50e586d54869113f046

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