Repository navigation
Implement PEP 658: .whl.metadata files - #3981
Conversation
|
@juntyr TODO: handle the build all case to propagate the metadata file extraction option |
|
@rth Thank you for your feedback! I've prototyped two possible implementations. The first one, based on your suggestions can be seen at main...juntyr:pyodide:54c482b849846ff01e323824c4af84e2116916ba (note though that it's only 95% complete). It pushes the metadata extraction down to building the package. However, this requires quite invasive code changes. Furthermore, the interaction with installing is a bit weird. What if the package was built with extraction but is installed without metadata? What if it's the other way around? At the moment, I prefer the second option, which you can see in the current diff. Metadata extraction is now pushed to the installation stage, which means the diff is very clean. |
rth
left a comment
There was a problem hiding this comment.
Thanks @juntyr ! No the current version is fine, that was just an approximate suggestion as to where to put it in the code.
Overall LGTM assuming tests pass, but since I was the one who proposed this feature it would be good to have a final review/apporval done by another maintainer.
ryanking13
left a comment
There was a problem hiding this comment.
Thanks @juntyr for working on this!
|
Are the CLI docs autogenerated? If so, I probably don't need to update any further documentation. |
|
@ryanking13 @rth Thank you so much for your feedback! This PR should now be ready to me squashed and merged. |
|
Thanks!
Yes, it is auto-generated. |
|
Thanks a lot @juntyr and @ryanking13 for the review! |
Description
To make Simple JSON API more useful (pyodide/micropip#62, #3979), we now deploy the .whl.metadata files per PEP 658, so that Python packages manager could more easily identify dependencies.
A
--metadata-filesboolean option is added to thepyodide build-recipescommand, which defaults toFalsefor backward compatibility. When the option is passed alongside the--installoption and without the--no_depsoption, the METADATA file of each wheel fileFILENAME.whlis now installed alongside inFILENAME.whl.metadata.Fixes #3980
Checklists