ManimCommunity/manim

Using pluggy for managing Plugins

Open

#1,133 建立於 2021年3月21日

在 GitHub 查看
 (10 留言) (4 反應) (0 負責人)Python (1,378 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (17,820 star)
PR 合併指標
 (平均合併 90天 10小時) (30 天內合併 31 個 PR)

描述

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

貢獻者指南