You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_setup imports the plugin (to get its metadata), which imports the plugin's plugin.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
The text was updated successfully, but these errors were encountered:
The current recommended way to make plugins pip-installable is this snippet:
in setup.py
This means that:
supybot.setup.plugin_setup
imports 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'spyproject.toml
The text was updated successfully, but these errors were encountered: