From e3c3db9e81087803f521fd604543c607923a6b70 Mon Sep 17 00:00:00 2001 From: davidvujic Date: Tue, 8 Feb 2022 20:15:04 +0100 Subject: [PATCH] docs: add temporary workaround for how to install plugins into the somewhat broken preview of Poetry --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 24914a82..3378769d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,22 @@ with functionality for adding custom Plugins. Have a look at the [official Poetr ### Install Poetry & plugins With the latest `Poetry` version installed, you can add plugins. +__Update:__ I have learned that the preview of Poetry does not install plugins correctly. + +This is a temporary workaround: install the plugins manually, like this (Mac OS X example): + +``` shell +# Find out where the poetry preview is actually installed. +ls -l ~/.local/bin/poetry + +# install the plugins to that path and the virtual environment within it, like this: +pip install poetry-multiproject-plugin --target "/Users//Library/Application Support/pypoetry/venv/lib/python3./site-packages" + +pip install poetry-polylith-plugin --target "/Users//Library/Application Support/pypoetry/venv/lib/python3./site-packages" +``` + +When the temporart Hack above isn't necessary, this guide is the way to go. + Add the [Multiproject](https://github.com/DavidVujic/poetry-multiproject-plugin) plugin, that will enable the very important __workspace__ support to Poetry. ``` shell poetry plugin add poetry-multiproject-plugin