diff --git a/utils/notify_slack_about_release.py b/utils/notify_slack_about_release.py index 9d4d11f4508f..0c7737a48ba4 100644 --- a/utils/notify_slack_about_release.py +++ b/utils/notify_slack_about_release.py @@ -17,8 +17,6 @@ import requests -from ..src.diffusers.utils.constants import DIFFUSERS_REQUEST_TIMEOUT - # Configuration LIBRARY_NAME = "diffusers" @@ -28,7 +26,7 @@ def check_pypi_for_latest_release(library_name): """Check PyPI for the latest release of the library.""" - response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=DIFFUSERS_REQUEST_TIMEOUT) + response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=60) if response.status_code == 200: data = response.json() return data["info"]["version"] @@ -40,7 +38,7 @@ def check_pypi_for_latest_release(library_name): def get_github_release_info(github_repo): """Fetch the latest release info from GitHub.""" url = f"https://api.github.com/repos/{github_repo}/releases/latest" - response = requests.get(url, timeout=DIFFUSERS_REQUEST_TIMEOUT) + response = requests.get(url, timeout=60) if response.status_code == 200: data = response.json()