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.10.tar.gz (8.0 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.10-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm_polylith_workspace-1.3.10.tar.gz
  • Upload date:
  • Size: 8.0 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.10.tar.gz
Algorithm Hash digest
SHA256 1b0d776aa8ba95804360ff66d19a34a84bdea35f96a607e2e463dd194c82e5b9
MD5 0a9f8bb67d9301028b52eb426bbbe6d1
BLAKE2b-256 87340d64b645b59970e9699c64bd7a4e4ec727140fda5d1db5288cede8f98531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 26752cc928a7bebf07637e62c26fe3cf515136a6610f480c21207d20da8d64c3
MD5 a26bc405a1a067cdcf2a138c8c6e9476
BLAKE2b-256 2e360f8107ec34308e6de453d364120edbe7aa9588b39d7d45cb17c0b319ddbf

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