diff options
| -rwxr-xr-x | sbolint | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1417,8 +1417,9 @@ sub check_pypi_url { my $initial; my $newurl; my $srcnam; + my $host; - return unless $url =~ m{^(https?)://files.pythonhosted.org}; + return unless $url =~ m{^(https?)://(files\.pythonhosted\.org|pypi\.python\.org)/}; if($1 ne 'https') { log_error("$file: pypi URL must be https://"); @@ -1432,6 +1433,9 @@ sub check_pypi_url { # FIXME: assumes no - in the version number. So far that's true... ($srcnam = $filename) =~ s,-\d[^-]*\.tar\.gz$,,; + # 20260819 bkw: the pypi.python.org URLs just redirect to the equivalent + # files.pythonhosted.org URL, so make hosted the default to avoid an extra + # HTTPS transaction. $newurl = "https://files.pythonhosted.org/packages/source/$initial/$srcnam/$filename"; if($url ne $newurl) { log_warning("$file: canonical pypi URL should be $newurl"); |
