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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdm_polylith_workspace-1.3.8.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.8.tar.gz
Algorithm Hash digest
SHA256 782424ed37b30a730720af1690a45128d9876223d5a37478be4597ff8a098fde
MD5 a593c1253821d5b623b71b5499d20beb
BLAKE2b-256 53002b250828c39e0dda79f7559d4ccaf12165a7b478c222fdd0283da80cab4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdm_polylith_workspace-1.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fb82db0d7df458e163b8a1bd3452199e050ad85e4b83ea2fb29acb14f2282422
MD5 65175ce88f8d681d9fd0e3cf75f8552e
BLAKE2b-256 53139491daffbedfb14184a1e0d5648f8078d83ba1d2753bc1bdf03e10ef9175

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