mewlo.externaltools.setuptoolhelpers module

setuptoolshelpers.py

This file defines helper functions for writing mewlo setuptools based plugins.

Mewlo does not require the use of setuptools for handling plugins, it uses it’s own system. But it does support the use of setuptools by plugin/pack authors who wish to use it. It does so by supporting setuptools functions for packaging, registering, and discovering plugins. Once discovered, Mewlo uses it’s own system for interacting with plugins.

See http://pythonhosted.org/setuptools/ See https://pypi.python.org/pypi/zest.releaser/3.3#entrypoints-documentation See http://bashelton.com/2009/04/setuptools-tutorial/#advanced_options-entry_points

mewlo.externaltools.setuptoolhelpers.dvalordef(adict, akey, adefault=None)[source]

Very simple function to return value in dictionary or return default if missing.

mewlo.externaltools.setuptoolhelpers.shelp_invoke_setuptools_setup(sourcepath, infofilepath_relative, entry_point_packs)[source]

Call setuptools setup function.

mewlo.externaltools.setuptoolhelpers.shelp_readfile_asjson(filepath)[source]

Read a file and return json dictionary :return: jsondictionary_of_readfile :raises: exception on error parsing or reading file