[Nix-dev] Upcoming PyPi URL Scheme Change
Profpatsch
mail at profpatsch.de
Thu Apr 21 00:31:05 CEST 2016
On 16-04-20 11:41am, Graham Christensen wrote:
> I recently got word that PyPi is changing their URL scheme.
>
> Old example:
> https://pypi.python.org/packages/source/a/ansible/ansible-1.8.2.tar.gz#md5=c2ac0e5a4c092dfa84c7e9e51cd45095
>
> New example:
> https://pypi.python.org/packages/62/18/91f0e5059373e9b87588c2a1c3b4c3c08ee89e0443aa2017469a4cdae41c/SCRY-1.1.2-py2-none-any.whl#md5=a3c636c4e94df1f0644b6917a9c05e67
This is going to be a lot of work.
> Yet another option is to run a sort of "translator" service that can consume
> the PyPI JSON API and will output the URLs in whatever format best suites you.
> An example of this is pypi.debian.net (which I don't know where the code base
> for it is, but the proof of concept I wrote for it is at
> https://github.com/dstufft/pypi-debian). These translators are fairly simple,
> they take an URL, pull the project and filename out of it and then use the JSON
> API to figure out the "real" URL and then just simply redirects to that.
Maybe it’s time to automate what we can? Similar to Hackage?
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
More information about the nix-dev
mailing list