Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add PEP-658 support #90

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ryanking13
Copy link
Member

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.

@rth
Copy link
Member

rth commented Oct 8, 2023

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 jsdelivr/jsdelivr#18531

@ryanking13
Copy link
Member Author

ryanking13 commented Oct 8, 2023

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 jsdelivr/jsdelivr#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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants