Change in paths to packages on PyPI

Joshua Root jmr at macports.org
Fri May 13 21:25:47 PDT 2016


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