Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate environmental plugin managers #540

Merged
merged 7 commits into from
Mar 20, 2023
Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Mar 16, 2023

This PR deprecates the following three plugin managers:

  • EggBasketPluginManager
  • EggPluginManager
  • PackagePluginManager

Each of these uses a rather ad-hoc method to find and load plugins. There are other maintainability issues, too, for example with building eggs, or with the managers modifying global state that doesn't belong to them (like sys.path, for example).

The recommended way to retrieve plugins from an environment going forward is to install plugin-carrying packages into site-packages and have those packages advertise their plugins through entry points (which are now an official part of core Python, not just setuptools). Other application-specific ad-hoc mechanisms should be implemented by the application itself rather than by this library.

The current warning messages are based on the assumption that #532 will go in; if not, we'll need to drop references to the EntryPointPluginManager.

Related discussion: #521
See also #532

Closes #541

Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

Looks good, modulo the discussion in #532.

@mdickinson
Copy link
Member Author

I'm going to update the warning messages to remove the mentions of the EntryPointPluginManager, and then merge.

@mdickinson mdickinson merged commit e463dbf into main Mar 20, 2023
@mdickinson mdickinson deleted the deprecate-plugin-managers branch March 20, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate EggBasketPluginManager and EggPluginManager
2 participants