rust-brotli icon indicating copy to clipboard operation
rust-brotli copied to clipboard

Make a reusable Python package, and publish to PyPI

Open mvasilkov opened this issue 3 years ago • 2 comments

What an incredibly useful library!

Seeing how there's already the Python bindings, maybe it's possible to package and put on PyPI?

In case it's already there, please disregard — I tried search, to no avail.

mvasilkov avatar Dec 12 '21 14:12 mvasilkov

That's a cool idea...is there a step-by-step guide on how to do this? Especially for a ffi/so lib like this one?

danielrh avatar Feb 17 '22 09:02 danielrh

I think you can pretty much just take these workflows as an example: https://github.com/ijl/orjson/tree/3.8.5/.github/workflows which use PyO3/maturin-action to cross-compile.

the resulting wheels https://pypi.org/project/orjson/3.8.5/#files cover the most used architectures: musslinux (alpine in x86_64, arm64==aarch64), manylinux (x86_64, arm64), mac (x86_64, arm64), win

ddelange avatar Jan 18 '23 20:01 ddelange