translate PyPI download URL to alternate URL with a hash#1749
translate PyPI download URL to alternate URL with a hash#1749boegel merged 5 commits intoeasybuilders:developfrom
Conversation
|
@wpoely86 please review? |
|
cc @pescobar |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/3001/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
👍 |
|
slightly reworked to parse I also considered using the alternate JSON (https://wiki.python.org/moin/PyPIJSON) or XML-RPC (https://wiki.python.org/moin/PyPIXmlRpc) APIs, but these are less straightforward to use in this particular case because we don't have the package version readily available (unless we rework more of the code); we can easily extract the package name from the available URL though, which is sufficient for the Simple API. |
|
EasyBuild framework unit test suite FAILed. See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/3005/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite FAILed. See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/3006/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/3007/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Going in, thanks for the review @wpoely86! |
PyPI was changed to use totally differently formatted URLs for new package versions, see also https://bitbucket.org/pypa/pypi/issues/438 .
This change implements auto-translating URLs like https://pypi.python.org/packages/source/e/easybuild/easybuild-2.7.0.tar.gz to https://pypi.python.org/packages/5b/03/e135b19fadeb9b1ccb45eac9f60ca2dc3afe72d099f6bd84e03cb131f9bf/easybuild-2.7.0.tar.gz .
This new style of URLs works for both old and new versions of Python packages, so this change should be transparent.
That is, until they utterly break things again, of course...