From f82b5bc0bf3e5f28647150bf2ececc2cb86f52e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 5 Nov 2022 15:39:32 +0100 Subject: [PATCH] docs: add advice for maintaining a plugin --- docs/plugins.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/plugins.md b/docs/plugins.md index 1db8c065f0f..da1bb5ad55e 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -249,3 +249,18 @@ If you want to uninstall a plugin, you can run: ```shell $POETRY_HOME/bin/pip uninstall poetry-plugin ``` + + +## Maintaining a plugin + +When writing a plugin, you will probably access internals of Poetry, since there is no +stable public API. Although we try our best to deprecate methods first, before +removing them, sometimes the signature of an internal method has to be changed. + +As the author of a plugin, you are probably testing your plugin +against the latest release of Poetry. +Additionally, you should consider testing against the latest release branch and the +master branch of Poetry and schedule a CI job that runs regularly even if you did not +make any changes to your plugin. +This way, you will notice internal changes that break your plugin immediately +and can prepare for the next Poetry release.