Change in paths to packages on PyPI

Ivan Larionov xeron.oskom at gmail.com
Sat May 14 00:34:25 PDT 2016


Let's try this: https://trac.macports.org/ticket/51391

This patch does:

	• Change mirror_sites to https://files.pythonhosted.org/packages/source/:nosubdir
	• Change livecheck to use https://pypi.python.org/pypi/${livecheck.name}/json and adjust livecheck.regex accordingly
	• Modify python packages to use pypi for master_sites

--
With best regards, Ivan Larionov.

> On May 13, 2016, at 9:25 PM, Joshua Root <jmr at macports.org> wrote:
> 
> Apparently the URL to use is now:
> 
> https://files.pythonhosted.org/packages/source/p/prompt_toolkit/
> 
> and that scheme should work for the foreseeable future. (The pypi.io version will just redirect to the above.)
> 
> - Josh
> 
> On 2016-5-14 13:33 , Ivan Larionov wrote:
>> I just run into this issue.
>> 
>> Can confirm that change like this works:
>> 
>> -master_sites        https://pypi.python.org/packages/source/p/prompt_toolkit/
>> +master_sites        https://pypi.io/packages/source/p/prompt_toolkit/
>> 
>> Has anyone updated pypi master_sites?
>> 
>> --
>> With best regards, Ivan Larionov.
>> 
>>> On Apr 26, 2016, at 10:28 AM, Rainer Müller <raimue at macports.org> wrote:
>>> 
>>> On 2016-04-23 13:04, Davide Liessi wrote:
>>>> There has been a recent update in the way PyPI handles paths to
>>>> packages [1] that will require to manually update master_sites for
>>>> every update (fortunately old paths seem to be still valid).
>>>> 
>>>> There's already an issue at PyPA's tracker [2], but I don't know if
>>>> they'll be willing to revert the change.
>>>> (Maybe voting the issue on the tracker would help...)
>>> 
>>> According to the upstream issue tracker, they now provide a translator
>>> from the old URL scheme to the new at their pre-release version at
>>> https://pypi.io/.
>>> 
>>> I did not do much testing, so I would be glad if someone could give the
>>> attached patch some more testing, especially if this breaks fetching any
>>> of the old ports.
>>> 
>>> Also a quick grep returned quite a lot of ports not using the pypi:
>>> mirror sites, but instead hardcode pypi.python.org. Although it still
>>> works, they should probably all be changed to allow control of the
>>> mirrors at a single place.
>>> 
>>> Rainer
>>> <pypi-mirror.diff>_______________________________________________
> 
> 



More information about the macports-dev mailing list