Pypi redirect

Peter Danecek Peter.Danecek at bo.ingv.it
Tue Nov 19 09:59:32 PST 2013


On Nov 19, 2013, at 18:42 , Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Nov 19, 2013, at 07:07, Joshua Root wrote:
> 
>> On 2013-11-19 23:52 , Peter Danecek wrote:
>>> 
>>> if I interpret things correctly, the `http://` requests to PyPi are (now?) redirected to `https://` requests. Not sure if this was always the case, but I have a weak memory, that I was advised to uses `http` instead of `https`, not sure though.
>>> 
>>> Now I am wondering if I should update to https, to avoid the redirect.  
>> 
>> Yes, that changed not so long ago. Yes, go ahead and update pypi URLs to
>> https if you notice them while working on a port. It's not a big problem
>> so I wouldn't go out of my way to fix it when there are more important
>> things to do.
> 
> But this kind of upstream hosting change is indeed the reason why we put service URLs in mirror_sites.tcl instead of hardcoding them into each portfile, and this would be a good opportunity to do that for pypi.


Well, adding PyPi into `mirror_sites.tcl` should be strait forward, so I could take care of this, but cannot commit.

But it would be nice to be able to just specify 

  master_sites   PyPi:obspy 

instead of 

  master_sites   PyPi:o/obspy

which would provide an even higher level of abstraction. But I understand this is not possible with the current implementation, right?

~petr


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131119/d4ba6a33/attachment.p7s>


More information about the macports-dev mailing list