before='update_version') if __name__ == '__main__': argv = sys.argv if len(argv) < 2: print( f"Usage: {argv[0]} [-c|--conda] release_name|dev [step|startstep:stopstep] [branch]" ) print("make release steps:", ', '.join(f.__name__ for f, _ in make_release_steps)) print("update conda-forge feedstock steps:", ', '.join(f.__name__ for f, _ in update_feedstock_steps)) sys.exit() if argv[1] == '-c' or argv[1] == '--conda': argv = argv[2:] update_feedstock(GITHUB_REP, CONDA_FEEDSTOCK_REP, SRC_CODE, *argv, tmp_dir=TMP_PATH_CONDA) else: local_repository = abspath(dirname(__file__)) make_release(local_repository, PACKAGE_NAME, SRC_CODE, *argv[1:], src_documentation=SRC_DOC, tmp_dir=TMP_PATH, conda_build_args=CONDA_BUILD_ARGS)
As always, *any* feedback is very welcome, preferably on the larray-users mailing list: {larray_users_group} (you need to register to be able to post). """.format(version=version, readthedocs=LARRAY_READTHEDOCS, version_doc=version.replace('.', '-'), larray_users_group=LARRAY_USERS_GROUP) mail.Display(True) if __name__ == '__main__': argv = sys.argv if len(argv) < 2: print("Usage: {} [-c|--conda] release_name|dev [step|startstep:stopstep] [branch]".format(argv[0])) print("make release steps:", ', '.join(f.__name__ for f, _ in make_release_steps)) print("update conda-forge feedstock steps:", ', '.join(f.__name__ for f, _ in update_feedstock_steps)) print("or") print("Usage: {} -a|--announce release_name".format(argv[0])) print("Usage: {} -m|--meta release_name".format(argv[0])) sys.exit() local_repository = abspath(dirname(__file__)) if argv[1] == '-m' or argv[1] == '--meta': local_config = set_config(local_repository, PACKAGE_NAME, SRC_CODE, argv[2], branch='master', src_documentation=SRC_DOC, tmp_dir=TMP_PATH) update_metapackage(local_config) elif argv[1] == '-a' or argv[1] == '--announce': no("Is metapackage larrayenv updated?") announce_new_release(argv[2]) elif argv[1] == '-c' or argv[1] == '--conda': update_feedstock(GITHUB_REP, CONDA_FEEDSTOCK_REP, SRC_CODE, *argv[2:], tmp_dir=TMP_PATH_CONDA) else: make_release(local_repository, PACKAGE_NAME, SRC_CODE, *argv[1:], src_documentation=SRC_DOC, tmp_dir=TMP_PATH)