A Poetry plugin that enables using relative package includes in multi-project monorepos. It allows a Poetry project to include packages from sibling directories as if they were part of the same project, with support for Poetry v2 and PEP 621. Version 1.8.4 is the latest supporting Python >=3.8,<4.0, under active development with regular releases.
poetry self add poetry-multiproject-pluginNo compatibility data collected yet for this library.
Minimal setup to use the plugin; requires manual pyproject.toml configuration.
Update plugin to >=1.8.0: poetry self add poetry-multiproject-plugin@latest
Update to >=1.8.1: poetry self add poetry-multiproject-plugin@latest
Explicitly declare each relative package include in your pyproject.toml under 'packages'.
Add the option to build command: poetry build-project --with-top-namespace
Upgrade to poetry-multiproject-plugin>=1.8.4.
Add the relative path to [tool.poetry.packages] or [project.urls]? Actually, ensure packages = [{ include = "../shared_lib", from = ".." }] in pyproject.toml.Install using 'poetry self add poetry-multiproject-plugin' and verify with 'poetry plugin show'.