MCPcopy
hub / github.com/huggingface/diffusers / main

Function main

utils/notify_slack_about_release.py:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68def main():
69 latest_version = check_pypi_for_latest_release(LIBRARY_NAME)
70 release_info = get_github_release_info(GITHUB_REPO)
71 parsed_version = release_info["tag_name"].replace("v", "")
72
73 if latest_version and release_info and latest_version == parsed_version:
74 notify_slack(SLACK_WEBHOOK_URL, LIBRARY_NAME, latest_version, release_info)
75 else:
76 print(f"{latest_version=}, {release_info=}, {parsed_version=}")
77 raise ValueError("There were some problems.")
78
79
80if __name__ == "__main__":

Callers 1

Calls 3

get_github_release_infoFunction · 0.85
notify_slackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…