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.9.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.9-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm_polylith_workspace-1.3.9.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.9.tar.gz
Algorithm Hash digest
SHA256 813a91fed0008513f7c32e74feaf34a40df30b569651a623768f40693feff0d4
MD5 a622eb3c7e924a1c27bab73ed7336161
BLAKE2b-256 a2dda7e701f7f0a09a9bff3eb75b4a078ac81dd643280358d8ce6708db0ccbdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0976c99d23d989aa01530399c966ee5a44f6829796195dc00ea2c8bc4dd2b2fb
MD5 25126a326dc43df4c25a890d19110efc
BLAKE2b-256 92f4b620e9a39871bf7711ecb9260f1dfc0edeb086912ff0b6583f554b88e4a4

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