Metadata-Version: 2.1
Name: pdm-polylith-workspace
Version: 1.1.1
Summary: a PDM build hook for a Polylith workspace
Home-page: https://davidvujic.github.io/python-polylith-docs/
License: MIT
Author: David Vujic
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: tomlkit (==0.*)
Project-URL: Repository, https://github.com/davidvujic/python-polylith
Description-Content-Type: text/markdown

# PDM Build Hook for a Polylith workspace

A plugin for [PDM](https://pdm-project.org) 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
``` toml
[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](https://davidvujic.github.io/python-polylith-docs)

