PySCIPOpt
PySCIPOpt copied to clipboard
Add GH Actions workflow to build sdists and wheels, deploy to PyPI
wheel building via cibuildwheel, using Sage for installing SCIP from source.
Preview: https://github.com/mkoeppe/PySCIPOpt/actions/runs/4220475298
To deploy to PyPI, it will need an Actions secret PYPI_API_TOKEN
@CGraczyk, could you please check how we can integrate this with the existing release workflow?
@mattmilten more infrastructure
ping @CGraczyk
thanks a lot for the PR! This should really be added
So i am not sure i understand what this actually adds to the pipeline. we already have the test and release package to pypi action - what does this actually provide?
Wheels.
Okay, so we would replace the old release action with this (this shouldnt influence users right?) - since the PYPI secret is already setup, this should be easy to do.
It would be best to test this workflow from a branch first - this should be possible if i remember correctly from back when we first setup the github actions @fschloesser ?
Hi folks! I'm actually looking for information about macos-ARM/Apple Silicon builds — are there fundamental reasons why those don't exist (I notice this PR specifies x86 for the macos build)? Or it just hasn't been tried yet? 😬
re
To deploy to PyPI, it will need an Actions secret PYPI_API_TOKEN
I just wanted to point out the trusted-publishers mechanism on PyPI, which is super super nice and avoids the use of the API token. It just needs someone with maintainer access to the PyPI package to specify the build script here.
Thanks! 🙏
Until recently, nobody had macOS arm64 runners, so any builds for that platform would have to be cross. Since early this year, GH Actions provides such runners though, so it has become easier
any builds for that platform would have to be cross.
Sure, but cibuildwheel got those working which has been very valuable for many projects for some time now. At any rate, as you point out, now is a good time to add them, but I guess first getting this PR merged and then adding ARM wheels would be a good plan of attack. Hopefully this can get merged soon. 🙏 Thanks!
cibuildwheel got those working which has been very valuable for many projects for some time now
Of course, but the CIBW_BEFORE_ALL script (where you build any library deps) needs to support cross compilation in that case.
No longer needed.