blurhash-python
blurhash-python copied to clipboard
feat: build wheels for linux, windows, mac using cibuildwheel
I'd like to be able to easily use this library on macOS and windows but without published wheels it is difficult.
To that end I've added a github actions workflow that uses cibuildwheel to create wheels for a variety of platforms/architectures.
cibuildwheels is a well established project for building wheels used by many large projects (see links).
https://github.com/pypa/cibuildwheel
https://cibuildwheel.pypa.io/en/stable/working-examples/
In addition to building wheels it runs the test suite on all the wheels it creates.
example of workflow running (can inspect generated artifacts):
https://github.com/leocov-dev/blurhash-python/actions/workflows/ci.yml
changes:
- cibuildwheels action workflow
- publish workflow for PyPi
- convert setup.py to pyproject.toml
- update tests to work in CI