feat(plugins): Load metadata from entry points / distribution #24
No reviewers
Labels
No Label
🛃 types
👪 users
invalid
wontfix
🚀 announcement
🎒 backend
🐞 bug
🐋 docker
💡 enhancement
📺 frontend
🤔 question
🔗duplicate
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#20 feature/migrations, closes #19
Flaschengeist/flaschengeist
Reference: Flaschengeist/flaschengeist#24
Loading…
Reference in New Issue
No description provided.
Delete Branch "proposal/metadata2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a more light weight approach to fix #23.
Instead of an extra class and more overhead inside the plugin definition we simply use the distributions metadata (e.g. from
setup.cfg
).No need for extra name or ID as the entry point already has a name which must be unique.
Instead of
pkg_resources
importlib_metadata
is used, and can be replaced with the standard libraryimportlib.metadata
when we require python 3.10 (version with 3.9 does not provide the Distribution with the entry points).d580227f78
to27a086a5c0
27a086a5c0
to3589564b7f
Sieht gut aus und funktioniert. flaschengeist-events muss jedoch noch das Plugin angepasst werden. Aber das kann ja extra gemacht werden.