pypi download links (e.g. for ansible)

Chris Warrick kwpolska at gmail.com
Mon May 9 11:26:15 EDT 2016


On 9 May 2016 at 13:35, Michael Ströder <michael at stroeder.com> wrote:
> Steven D'Aprano wrote:
>> On Mon, 9 May 2016 08:00 pm, Michael Strc3b6der wrote:
>>
>>> HI!
>>>
>>> Deep-links for downloading a specific version from PyPI seemed to work
>>> like this:
>>>
>>> $ wget
>>> https://pypi.python.org/packages/source/a/ansible/ansible-2.0.1.0.tar.gz
>>> [..]
>>> Saving to: ‘ansible-2.0.1.0.tar.gz’
>>>
>>> But this recent version does not work:
>>>
>>> $ wget
>>> https://pypi.python.org/packages/source/a/ansible/ansible-2.0.2.0.tar.gz
>>> [..]
>>> HTTP request sent, awaiting response... 404 Not Found
>>
>>
>> Do you have a question, or are you just sharing?
>>
>> The Download button for 2.0.2.0 links to:
>>
>> https://pypi.python.org/packages/b3/0e/5f3ee8884866a3d5e3b8ba86e9caa85ecdec75adabac8924b1c122339e7f/ansible-2.0.2.0.tar.gz
>
> Yes, but in .spec files of openSUSE RPMs the more readable links above are used
> and I'd like to keep it that way. And openSUSE build service checks whether it's
> downloadable. It works for ansible-2.0.1.0 but not for 2.0.2.0.
>
> Ciao, Michael.
>
> --
> https://mail.python.org/mailman/listinfo/python-list

PyPI URLs were changed recently. There is, however, a new supported
way to get dependable URLs:
https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package

The current link:
https://files.pythonhosted.org/packages/source/a/ansible/ansible-2.0.1.0.tar.gz

(URLs in the pypi.io domain were used briefly and will still work)

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16



More information about the Python-list mailing list