def main(argv): settings = Settings().load_settings(argv) upload_tam(settings, {'Content-Type': 'application/json; charset=UTF-8'}, build(settings)) printf('DONE')
def main(argv): settings = Settings().load_settings(argv) resources = build(settings) device_resources = list(filter(lambda x: x['type'] == 'device', resources)) upload_tam(settings, { 'Content-Type': 'application/json; charset=UTF-8' }, device_resources) download_resources(resources) printf('DONE')
if not args.auto: return ['SDSetup Modules built with:'] return [] if __name__ == '__main__': args = parse_args() temp_directory = common.generate_temp_path() common.mkdir(temp_directory) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto version_messages = init_version_messages(args) build_messages = modules.build(temp_directory, auto_build) common.delete(args.output) if build_messages is not None: version_messages += build_messages shutil.move(temp_directory, args.output) for message in version_messages: print(message) common.delete(Path.cwd().joinpath('tmp'))
args = parse_args() temp_directory = common.generate_temp_path() common.mkdir(temp_directory) deepsea_version = get_deepsea_version(args) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto with open(args.package_file,'r') as pkgfile: package_content = json.load(pkgfile) version_messages = init_version_messages(package_content, deepsea_version) build_messages = modules.build( temp_directory, deepsea_version, package_content, auto_build) common.delete(args.output) if build_messages is not None: version_messages += build_messages if package_content['is_sdsetup']: common.move(temp_directory, args.output) else: shutil.make_archive( Path(args.output).stem, 'zip', temp_directory) for message in version_messages:
if __name__ == '__main__': args = parse_args() temp_directory = common.generate_temp_path() common.mkdir(temp_directory) deepsea_version = get_deepsea_version(args) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto version_messages = init_version_messages(args, deepsea_version) build_messages = modules.build(temp_directory, deepsea_version, args.command, auto_build) common.delete(args.output) if build_messages is not None: version_messages += build_messages if args.command == common.Command.SDSetup: common.move(temp_directory, args.output) else: shutil.make_archive(Path(args.output).stem, 'zip', temp_directory) for message in version_messages: print(message) common.delete(Path.cwd().joinpath('tmp'))
if __name__ == '__main__': args = parse_args() temp_directory = common.generate_temp_path() os.makedirs(temp_directory) kosmos_version = get_kosmos_version(args) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto version_messages = init_version_messages(args, kosmos_version) is_kosmos_build = args.command == common.Command.Kosmos build_messages = modules.build(temp_directory, kosmos_version, is_kosmos_build, auto_build) common.delete_path(args.output) if build_messages is not None: version_messages += build_messages if is_kosmos_build: shutil.make_archive( os.path.splitext(args.output)[0], 'zip', temp_directory) else: shutil.move(temp_directory, args.output) common.delete_path(os.path.join(os.getcwd(), 'tmp')) for message in version_messages:
if __name__ == '__main__': args = parse_args() temp_directory = common.generate_temp_path() common.mkdir(temp_directory) isotope_version = get_isotope_version(args) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto version_messages = init_version_messages(args, isotope_version) build_messages = modules.build(temp_directory, isotope_version, args.command, auto_build) common.delete(args.output) if build_messages is not None: version_messages += build_messages if args.command == common.Command.SDSetup: common.move(temp_directory, args.output) else: shutil.make_archive(Path(args.output).stem, 'zip', temp_directory) for message in version_messages: print(message) common.delete(Path.cwd().joinpath('tmp'))
if __name__ == '__main__': args = parse_args() temp_directory = common.generate_temp_path() os.makedirs(temp_directory) kosmos_version = get_kosmos_version(args) auto_build = False if hasattr(args, 'auto'): auto_build = args.auto version_messages = init_version_messages(args, kosmos_version) build_messages = modules.build(temp_directory, kosmos_version, args.command, auto_build) common.delete_path(args.output) if build_messages is not None: version_messages += build_messages if args.command == common.Command.SDSetup: shutil.move(temp_directory, args.output) else: shutil.make_archive( os.path.splitext(args.output)[0], 'zip', temp_directory) common.delete_path(os.path.join(os.getcwd(), 'tmp')) for message in version_messages: