Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions developer-guide/07-Plugins/03-plugin-as-python-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,15 @@ include <PLUGIN_NAME>/LEADER_ONLY

For an example, see the [logs2slack](https://github.com/Pioreactor/pioreactor-logs2slack) plugin's repository.

## Install package from source

It isn't enough to just `pip install` your package, as this will only add the script to the pioreactor system, not any extra configs you may have added.
If you want to install the whole package from source you can simply run:

```
pio plugins install <PLUGIN_NAME> --source <PLUGIN_FOLDER>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PLUGIN_FOLDER should be the wheel file, no? Does it work when you point it at the folder (I think no)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works when you point it at the folder! That's why I added these instructions. You don't need to build the wheel

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay! lgtm!

```

## Create a Python package on PyPI

Create an account on [https://pypi.org/](https://pypi.org/). Make sure to verify your email.
Expand Down