On Tue, 2017-02-07 at 11:14 -0500, Mikhail Terekhov wrote:
On 02/07/2017 08:05 AM, Thomas Bechtold wrote:
On Mon, 2017-02-06 at 10:30 -0700, Sean Marlow wrote:
On 02/06/2017 12:24 AM, Thomas Bechtold wrote:
On Sun, 2017-02-05 at 19:33 +0100, Axel Braun wrote:
Am Sonntag, 5. Februar 2017, 13:12:18 CET schrieb Mikhail Terekhov:
There are at least three ways to use PyPI as a source URL for python packages:
https://pypi.python.org/pypi - a canonical (production) site
https://pypi.org - a pre production (test) version of the Warehouse that according its documentation will _eventually_ power the canonical site.
I noticed that pypi.io points to files.pythonhosted.org ...so this would be #4
In a declined request the python maintainers asked to point to pypi.io, without answering why any of the other options is 'invalid'.
I've also had a declined request to update the source url with pypi.io for a new Python package.
pypi.python.org is "invalid" because it has only hashed urls so you need to update the Source url whenever you update the version. See . So I personally prefer pypi.io because it is short. But I'm also fine with option 2 and 4.
 https://bitbucket.org/pypa/pypi/issues/438/backwards-compat ible -un- hashed-package
The maintainer who made the url changes  recommends files.pythonhosted.org. It has one less redirect than pypi.io.
The Python packaging documentation  mentions py2pack using pypi.python.org. And it indeed generates the spec using the hashed url.
It now generates a pypi.io url  but a new release for py2pack is needed.
 https://github.com/openSUSE/py2pack/commit/fd2051d15b07bcbbdb09 241c f4d02d3bfe755716
According to http://www.redirect-checker.org pypi.io is a redirect to primary domain pypi.org. IMHO one character longer name is worth one less redirect. :)
True. I created https://github.com/openSUSE/py2pack/pull/69 to switch to files.pythonhosted.org for py2pack.