Build and publish pure python wheel #260
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋 I'm using mocket from inside pyodide and pyodide requires "pure python wheels" to be able to install a given package.
I saw that mocket currently publishes only an sdist and not a pure python wheel, so making this PR to add a pure python wheel as well.
I tested out the change and it seems to work:
To be honest, before running into this issue I didn't know much about pure python wheels, but it seems like they've been around for a number of years and their use is encouraged. More docs.
I asked Claude to see if there are any downsides to publishing a pure python wheel alongside an sdist and it couldn't come up with anything beyond "now two files need to be uploaded to PyPI". It's encouraging to see that the pure python wheel is also smaller in size (22K vs 72K) meaning all mocket users should benefit from this change with less data traveling over the network and faster install time.