Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108431

Re: pypi download links (e.g. for ansible)

From Chris Warrick <kwpolska@gmail.com>
Newsgroups comp.lang.python
Subject Re: pypi download links (e.g. for ansible)
Date 2016-05-09 17:26 +0200
Message-ID <mailman.547.1462807577.32212.python-list@python.org> (permalink)
References <ngpmsu$eed$1@dont-email.me> <57306a11$0$1616$c3e8da3$5496439d@news.astraweb.com> <ngpsg0$1ko$1@dont-email.me> <CAMw+j7J-9u-J_B8iyir9_6eWYbphFgQqtecbv4-gihoC7Eg4iw@mail.gmail.com>

Show all headers | View raw


On 9 May 2016 at 13:35, Michael Ströder <michael@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

pypi download links (e.g. for ansible) Michael Ströder <michael@stroeder.com> - 2016-05-09 12:00 +0200
  Re: pypi download links (e.g. for ansible) harirammanohar@gmail.com - 2016-05-09 03:16 -0700
    Re: pypi download links (e.g. for ansible) Michael Ströder <michael@stroeder.com> - 2016-05-09 12:27 +0200
  Re: pypi download links (e.g. for ansible) Steven D'Aprano <steve@pearwood.info> - 2016-05-09 20:44 +1000
    Re: pypi download links (e.g. for ansible) Michael Ströder <michael@stroeder.com> - 2016-05-09 13:35 +0200
      Re: pypi download links (e.g. for ansible) Chris Warrick <kwpolska@gmail.com> - 2016-05-09 17:26 +0200

csiph-web