pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

ci: use cibuildwheel and GHA to build Windows wheels

Open skshetry opened this issue 3 years ago • 3 comments

It might be easier to add support for future Python versions if we migrate.

skshetry avatar Oct 25 '22 14:10 skshetry

+1.

Missing wheels for Python 3.11 and Windows is blocking adding Python 3.11 support for tsrc (see fail in https://github.com/your-tools/tsrc/pull/373).

I tried to quickly hack and build this myself but run into a problem with (seemingly) logging the actual wheels build error to the console, see https://github.com/gdubicki/pygit2/actions/runs/3507552353/jobs/5875340985 if you are interested.

But I am supper happy to see that work on this is already in progress in https://github.com/libgit2/pygit2/tree/fixwheels. Thank you, @jdavid ! :)

gdubicki avatar Nov 20 '22 10:11 gdubicki

@gdubicki, pygit2==1.11.1 already has wheels built for Windows + 3.11. I see that in CI, it is installing 1.10.1 which does not have required wheels. Please try upgrading. See https://github.com/libgit2/pygit2/pull/1177.

This issue is proposing to use GitHub Action to build wheels instead of currently using appveyor.

skshetry avatar Nov 20 '22 11:11 skshetry

Thanks a lot @skshetry! I misinterpreted this issue and the current contents of https://github.com/libgit2/pygit2/blob/master/.github/workflows/wheels.yml where there is no Windows. My issue is resolved. :)

gdubicki avatar Nov 20 '22 14:11 gdubicki

I have a working branch for this. PR comming soon.

2bndy5 avatar Oct 09 '25 15:10 2bndy5