def _distribution(args, event): ''' FOR INTERNAL USE ONLY! Populates the distribution setup. ''' if not args: return deploy assert len(args) == 1, 'Expected only one argument that is the decorator function, got %s arguments' % len(args) function = args[0] hasType, type = _process(function) if hasType: raise SetupError('No return annotation expected for function %s' % function) return update_wrapper(register(SetupDistribution(function, event), callerLocals(2)), function)
def registerSupport(): ''' Register the support setup in this module in order to process the support APIs. ''' register(SetupDistributionSupport(), callerLocals())