change SITE_PYPI to use files.pythonhosted.org as suggested in

https://docs.pypi.org/api/#integration-guide "Predictable URLs";
teach portroach to handle this.  ok aja@ jasper@
This commit is contained in:
sthen
2025-01-10 11:44:18 +00:00
parent c86e03e2c6
commit 6b2d8ac009
3 changed files with 15 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# $OpenBSD: network.conf,v 1.26 2024/04/29 05:12:48 matthieu Exp $
# $OpenBSD: network.conf,v 1.27 2025/01/10 11:44:18 sthen Exp $
# List of OpenBSD sites
SITE_OPENBSD ?= \
@@ -141,7 +141,7 @@ SITE_APACHE+= \
https://archive.apache.org/dist/
SITE_PYPI += \
https://pypi.io/packages/source/
https://files.pythonhosted.org/packages/source/
SITE_RUBYGEMS += \
https://rubygems.org/downloads/
+1 -1
View File
@@ -3,7 +3,7 @@ COMMENT= OpenBSD ports distfile version scanner
GH_ACCOUNT= jasperla
GH_PROJECT= portroach
GH_TAGNAME= 2.0.11
REVISION= 7
REVISION= 8
CATEGORIES= misc
@@ -0,0 +1,12 @@
Index: Portroach/SiteHandler/PyPI.pm
--- Portroach/SiteHandler/PyPI.pm.orig
+++ Portroach/SiteHandler/PyPI.pm
@@ -73,7 +73,7 @@ sub CanHandle
my ($url) = @_;
- return ($url =~ /https:\/\/pypi\.io\//);
+ return ($url =~ /https:\/\/(files\.pythonhosted\.org|pypi\.io)\//);
}