-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
Description
The current recommended way to make plugins pip-installable is this snippet:
from supybot.setup import plugin_setup
plugin_setup(
'YourPlugin',
install_requires=[
'requests',
],
)
in setup.py
This means that:
- setup.py itself depends on Limnoria, so pip will crash if Limnoria is not already installed.
- Additionally,
supybot.setup.plugin_setupimports the plugin (to get its metadata), which imports the plugin'splugin.py, which is likely to import the dependencies. However, said dependencies are not yet installed because we are still running the setup.
Point 1 could be solved by using pyproject.toml to declare a build-dependency on Limnoria.
Point 2 is harder to address. We may need to give up on automatically getting plugin metadata through introspection (ie. remove all/most of supybot.setup.plugin_setup) and recommend authors explicitly fill all the metadata in the plugin's pyproject.toml
Reactions are currently unavailable