Simpler package generation using cookiecutter, stdout buffering for consoleplugin
This commit is contained in:
8
bonobo/util/packages.py
Normal file
8
bonobo/util/packages.py
Normal file
@ -0,0 +1,8 @@
|
||||
import pkg_resources
|
||||
from packaging.utils import canonicalize_name
|
||||
|
||||
bonobo_packages = {}
|
||||
for p in pkg_resources.working_set:
|
||||
name = canonicalize_name(p.project_name)
|
||||
if name.startswith('bonobo'):
|
||||
bonobo_packages[name] = p
|
||||
Reference in New Issue
Block a user