ManimCommunity/manim

Using pluggy for managing Plugins

Open

#1.133 aberto em 21 de mar. de 2021

Ver no GitHub
 (10 comments) (4 reactions) (0 assignees)Python (1.378 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (17.820 stars)
Métricas de merge de PR
 (Mesclagem média 90d 10h) (31 fundiu PRs em 30d)

Description

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

Guia do colaborador