From 0365bd1c1767ea8ac85f03669f6cd347625d3a77 Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Thu, 10 Apr 2025 11:15:49 +0530 Subject: [PATCH] fix to a constant --- utils/notify_slack_about_release.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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()