pluggy
pluggy copied to clipboard
deprecate load_setuptools_entrypoints
entry-point loading should be moved into a interface where one passes the entry-point system (either pkg_resources or entry_points), the plugin-manager and the entrypoint name into a helper that facilitates registration
Good idea, this will make pluggy more useful in contexts outside the setuptools ecosystem.
@RonnyPfannschmidt what would be some other examples for alternative registry namespaces? I find building out a general API at least requires a couple examples.
Maybe the filesystem-conftest.py listed pytest_plugins variables as discovered with pytest?
@goodboy im not aware of any - the distribution<>entryoint mapping things is just something that is generalizable as a next step
Hello,
I'm wondering if it is possible that the helper can load a plugin from a path to a python module? This will help to load plugin form user who don't fully mastering in packaging using setuptools.
for instance a function load_entrypoints(pm, entrypoint), the entrypoint could be a key as defined in setuptools or a path to a python module to be loaded.
The module imp could be used to load the module.
BR anxuae