def build(context, configuration, platform, fetch, deps): """Fetch and build the project's dependencies.""" with timeit('build'): with error_handling(): logger.info("<cmd>Build</cmd>") punic = context.obj punic.config.update(configuration=configuration, platform=platform) punic.config.can_fetch = fetch punic.build(dependencies=deps)
def update(context, configuration, platform, fetch, deps): """Update and rebuild the project's dependencies.""" with timeit('update'): with error_handling(): logger.info("<cmd>Update</cmd>") punic = context.obj punic.config.update(configuration=configuration, platform=platform) punic.config.can_fetch = fetch punic.resolve() punic.build(dependencies=deps)
def update(context, **kwargs): """Update and rebuild the project's dependencies.""" logging.info("<cmd>Update</cmd>") punic = context.obj punic.config.update(**kwargs) deps = kwargs['deps'] with timeit('update'): with error_handling(): punic.resolve() punic.build(dependencies=deps)
def build(context, **kwargs): """Fetch and build the project's dependencies.""" logging.info("<cmd>Build</cmd>") punic = context.obj punic.config.update(**kwargs) deps = kwargs['deps'] logging.debug('Platforms: {}'.format(punic.config.platforms)) logging.debug('Configuration: {}'.format(punic.config.configuration)) with timeit('build'): with error_handling(): punic.build(dependencies=deps)