From a7ff66ae042ccffbb0d615be36b187234534fcc9 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 3 Mar 2024 20:12:32 +0200 Subject: [PATCH] handlers/pypi: stop using mirrors Signed-off-by: Alfred Wingate --- src/euscan/handlers/pypi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/euscan/handlers/pypi.py b/src/euscan/handlers/pypi.py index d55072f..c5ace5d 100644 --- a/src/euscan/handlers/pypi.py +++ b/src/euscan/handlers/pypi.py @@ -17,11 +17,11 @@ PRIORITY = 90 def can_handle(pkg, url=None): - return url and url.startswith("mirror://pypi/") + return url and url.startswith("https://files.pythonhosted.org/packages/source/p/") def guess_package(cp, url): - match = re.search(r"mirror://pypi/\w+/(.*)/.*", url) + match = re.search(r"https://files.pythonhosted.org/packages/source/p/(.*)/.*", url) if match: return match.group(1)