-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/build multiple wheels #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hi Oisin, this looks nice, but it does not seem to work for other packages. I made a test release of findlibs, and it does not like the empty os matrix:
|
Just documenting after further investigation and discussion. Two current issues:
Will investigate further, but it seems like the easiest solution would be
|
Agreed to separate the wheels out from the cd for pure python packages. Plan is to have separate
|
I have now split the action for binary wheels out from the original cd-pypi action. Overview of changes are as follows
I've now got a way using these actions to build both purepython wheels as well as binary wheels in earthkit-hydro. |
Just to flag (this is not related to changes here, but it's part of the cd-pypi action checks we already have) - if we have prints in the setup.py, then the checks we do
are problematic because Is there a better way to get the version to avoid this? |
@Oisin-M I don't like the One way forward is to agree, ecmwf-wide, on means of obtaining the version, and hardcode that here. I can imagine |
@iainrussell are you happy to merge this? |
Adds the ability to also build wheels for packages. This is needed e.g. for Rust-Python packages.
This PR:
python -m build --sdist
instead of a genericpython -m build
. The checks on versions etc. are still done hereAn example successful workflow building wheels for a rust-python package is https://github.com/ecmwf/earthkit-hydro/actions/runs/14662296289/job/41149252856, which is largely driven via the
pyproject.toml
. I have a version on https://github.com/ecmwf/earthkit-hydro/tree/develop that's working