lda-project / lda

Topic modeling with latent Dirichlet allocation using Gibbs sampling
https://lda.readthedocs.io/
Mozilla Public License 2.0
1.24k stars 390 forks source link

Add cibuildwheel #124

Closed severinsimmler closed 12 months ago

severinsimmler commented 1 year ago

This PR introduces cibuildwheel to build wheels for different platforms (i.e. Windows, Linux and macOS).

I'll add a GitHub Actions workflow in the next PR where this can actually be used, but you can try it out locally by running:

$ cibuildwheel --platform linux

(Assuming you have installed build dependencies with poetry install --only build --no-root)

Note that specifying macos or windows as platform only works on that operating system, but linux works on all three, as long as Docker/Podman is installed.

This will produce 8 wheels:

$ tree wheelhouse/
wheelhouse/
├── lda-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├── lda-2.0.0-cp310-cp310-musllinux_1_1_x86_64.whl
├── lda-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├── lda-2.0.0-cp311-cp311-musllinux_1_1_x86_64.whl
├── lda-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├── lda-2.0.0-cp312-cp312-musllinux_1_1_x86_64.whl
├── lda-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
└── lda-2.0.0-cp39-cp39-musllinux_1_1_x86_64.whl
ariddell commented 1 year ago

This looks great. Thank you!

Might take me a week or two to check everything.

ariddell commented 12 months ago

Thanks. This all looks good.