datrie icon indicating copy to clipboard operation
datrie copied to clipboard

CI: Add cibuildwheel GitHub Actions workflow

Open matthewfeickert opened this issue 2 months ago • 5 comments

  • Add GitHub Actions based workflow that uses cibuildwheel to build wheels for target platforms.
  • Add upload of wheels to PyPI on publish using Trusted Publishers.

This workflow copies heavily from the one @henryiii setup for https://github.com/scikit-hep/boost-histogram.

Addresses following components of Issue https://github.com/pytries/datrie/issues/104:

  • setup cibuildwheel to build the full matrix of wheels so users don't have to have a compiler installed
  • setup PyPI trusted publisher to automate releases (will require @tacaswell to do this on the PyPI side)

Requires PR https://github.com/pytries/datrie/pull/107 to go in first.

matthewfeickert avatar Oct 29 '25 22:10 matthewfeickert

@tacaswell this is ready for review now (thanks for merging PR #107).

matthewfeickert avatar Nov 13 '25 18:11 matthewfeickert

👋 Ping @tacaswell.

matthewfeickert avatar Dec 06 '25 01:12 matthewfeickert

This would be welcome improvement for us.

peterfarrell avatar Dec 06 '25 20:12 peterfarrell

I'll sort out the pypi side and merge this in the next week.

tacaswell avatar Dec 08 '25 03:12 tacaswell

I'll sort out the pypi side and merge this in the next week.

@tacaswell sounds good and thanks!

For the last remaining bit after that in Issue #104

setup automatic version number based on tags

I think this can be done similarly to how we're doing things in https://github.com/scikit-hep/scikit-hep-testdata and https://github.com/scikit-hep/boost-histogram, which is just to use purefly dynamic version metadata.

matthewfeickert avatar Dec 08 '25 07:12 matthewfeickert