micropip icon indicating copy to clipboard operation
micropip copied to clipboard

Draft: Add PEP-658 support

Open ryanking13 opened this issue 2 years ago • 2 comments

This PR adds PEP 658: Serve Distribution Metadata in the Simple Repository API support to micropip, which means that when using Simple API to install a package, micropip will check for distribution metadata and downloads it simultaneously with the wheel to speed up dependency resolution.

I think this PR is mostly ready, but I'll split it into 2-3 PRs, and add more tests (it is kinda tricky to write a test for this), so I'm opening it as a draft.

ryanking13 avatar Oct 08 '23 08:10 ryanking13

Thanks for working on this!

Related question @ryanking13 : do we do (or plan to do) anything with the .whl.metadatafiles we create and distribute via jsdelvir? As currently they are not being served by the CDN https://github.com/jsdelivr/jsdelivr/issues/18531

rth avatar Oct 08 '23 08:10 rth

Related question @ryanking13 : do we do (or plan to do) anything with the .whl.metadatafiles we create and distribute via jsdelvir? As currently they are not being served by the CDN https://github.com/jsdelivr/jsdelivr/issues/18531

Yes, that's a good point. I think we'll need to serve .metadata files using jsdelivr in the future. If I understand correctly, there has been some work in the direction of allowing the pyodide distribution to be used as a package index. (I don't know what this will eventually look like).

  • https://github.com/pyodide/pyodide/pull/3981
  • https://github.com/pyodide/pyodide/issues/4182
  • https://github.com/pyodide/pyodide/issues/3979

ryanking13 avatar Oct 08 '23 09:10 ryanking13

Superseded by #139

ryanking13 avatar Sep 19 '24 13:09 ryanking13