Namespace plugin implementation

* Creates pelican.plugins
* Moves plugin related code under pelican.plugins
  * pelican.plugins.signals is now the location for signals, pelican.signals is kept
    for backwards compatibility
  * pelican.plugins._utils contains necessary bits for plugin discovery and loading.
    Logic from Pelican class is moved here. Pelican class now just asks for plugins
    and registers them
* Contains tests for old and new plugin loading
This commit is contained in:
Deniz Turgut 2019-10-27 23:51:08 +03:00
commit a2053c34c3
9 changed files with 307 additions and 73 deletions

View file

@ -0,0 +1,5 @@
NAME = 'namespace plugin'
def register():
pass

View file

@ -0,0 +1,5 @@
NAME = 'normal plugin'
def register():
pass