Add support for plugins via entrypoints #3052
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Hydra currently uses a shared namespace package to manage plugins.
This is a bit precarious for users, and makes it a bit difficult to grow a plugin ecosystem.
Python already has a mechanism for this, namely entry points.
This is used extensively across the ecosystem, including e.g. airflow.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Added an example plugin which includes tests to validate behavior, existing tests left alone to validate prior behavior.
Related Issues and PRs
fixes:
#1554
relates to:
#3015
#2359
#1128
#1893
#1880
loosely relates to:
#3010
#2835
#1943