Hi,

I just went to update a python package -- a simple version bump -- and
the distfile could not be fetched. This is because PyPI have changed
their URL scheme.

This will no longer work:
https://pypi.python.org/packages/source/t/texscythe/texscythe-0.2.0.1.tar.gz

It now needs to be:
https://pypi.python.org/packages/90/11/994279994d70dd292b924e374f8a6ac5dea350d8d1d1d0c3a55aef638b43/texscythe-0.2.0.1.tar.gz

This URL is suffix is:
/packages/{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename}

Where the hash is a blake2b hash.

This only seems to apply to new uploads to PyPI. Old URLs seem to still
work.

Here's a thread discussing the change:
https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package

So we need to think about what to do with MODPY_PI.

Perhaps we have a MODPY_PI_HASH which if set uses the new method?

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to