diff options
author | koobs <koobs@FreeBSD.org> | 2015-10-24 12:28:37 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2015-10-24 12:28:37 +0800 |
commit | fede133b54f20676430e93b0928186a71514332c (patch) | |
tree | e5e022e018c20139452f7269040bbffcdba3eaae /Mk/bsd.sites.mk | |
parent | eb6b5e3726bd2859487291227f89ef5914b5a991 (diff) | |
download | freebsd-ports-gnome-fede133b54f20676430e93b0928186a71514332c.tar.gz freebsd-ports-gnome-fede133b54f20676430e93b0928186a71514332c.tar.zst freebsd-ports-gnome-fede133b54f20676430e93b0928186a71514332c.zip |
Mk/bsd.sites.mk: Remove non-PEP449 Python mirrors [Part III]
PEP-449 [1] describes the 'Removal of the PyPI Mirror Auto Discovery and
Naming Scheme'.
The main elements of this (Accepted) proposal are:
Removal of [a-z].pypi.python.org DNS CNAMES
Replacing individual mirrors with a single Geo-aware CDN service
Previous revisions 365159, 347895, 342514 deprecated several individual
mirrors and *.pypi.python.org aliases. The following changes (Part III)
completes the (PEP-449 compatibility) transition:
Remove pypi.crate.io (NXDOMAIN)
Remove pypi.python.jp (Outdated, Broken for DISTNAMEs w/ hyphens
Switch to TLS (HTTPS) MASTER_SITE by default
Leave a non-TLS (HTTP) MASTER_SITE for fallback (proxy environments)
This change is also likely to fix PyPI (CHEESESHOP) update detection in
Portscout, at least until upcoming changes for the portscout port add a
dedicated sitehandler for it (and GitHub).
[1] https://www.python.org/dev/peps/pep-0449/
MFH: 2015Q4
Differential Revision: https://reviews.freebsd.org/D3972
Diffstat (limited to 'Mk/bsd.sites.mk')
-rw-r--r-- | Mk/bsd.sites.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index 758117458c65..1141525f0292 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -107,10 +107,12 @@ MASTER_SITE_BERLIOS+= \ .endif .if !defined(IGNORE_MASTER_SITE_CHEESESHOP) +# PEP-449 Compatible MASTER_SITES +# Removal of the PyPI Mirror Auto Discovery and Naming Scheme +# Reference: https://www.python.org/dev/peps/pep-0449/ MASTER_SITE_CHEESESHOP+= \ - http://pypi.python.org/packages/%SUBDIR%/ \ - http://pypi.crate.io/packages/%SUBDIR%/ \ - http://pypi.python.jp/${DISTNAME:S/${DISTVERSION}//:S/-//}/ + https://pypi.python.org/packages/%SUBDIR%/ \ + http://pypi.python.org/packages/%SUBDIR%/ .endif .if !defined(IGNORE_MASTER_SITE_COMP_SOURCES) |