ManimCommunity/manim

Using pluggy for managing Plugins

Open

#1.133 geöffnet am 21. März 2021

Auf GitHub ansehen
 (10 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Python (1.378 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (17.820 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 90T 10h) (31 gemergte PRs in 30 T)

Beschreibung

Enhancement proposal

Pluggy: https://pluggy.readthedocs.io/

Currently how out plugin system works is

With pluggy in place, we can decide the parts of the library which can be extendable without subclassing, see an example. https://pluggy.readthedocs.io/en/latest/#a-toy-example And it feels like we shouldn't reinvent the wheel rather than using something which is already available.

Additional comments

This would kinda require all the plugins to update to use pluggy. Let the previous implementation of importing to global namespace stay, for backward compatibility.


Proof of concept

  • #2635

Contributor Guide