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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdm_polylith_workspace-1.3.7-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm_polylith_workspace-1.3.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for pdm_polylith_workspace-1.3.7.tar.gz
Algorithm Hash digest
SHA256 2dc24bc27127b1c0b82a7d268471d3dddb2f1e89af271ccf9ef3cdbf4ad2a7de
MD5 0811c9f491a103443ad328366669ef4b
BLAKE2b-256 b07110c737c29496f752dd1a66930c03dff90b5466face9ca1f45de248ee75c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 29ec5097d1f97e19b8f52be082c07dcf16e7a077cb1d62bd1e85c054a8387c5d
MD5 4c65658712d9486174d017c2912e71d1
BLAKE2b-256 a6f12d80a34285e6e5d9f153d6dc70be440af8a3ecfedf458007ff6796a4959b

See more details on using hashes here.

Supported by

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