-
Notifications
You must be signed in to change notification settings - Fork 24
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
REL: use numpy pre-releases from PyPI instead of nightlies in wheel building workflow #143
Conversation
failures on MacOS ARM seem unrelated, let me try to update CIBW too |
Ah, it's not used directly here, but through https://github.com/OpenAstronomy/github-actions-workflows/ |
I found where this problem is already being discussed upstream: actions/runner-images#9256 (comment) |
(this is probably not a blocker to this PR actually, but it could be blocking for a release) |
I'm not quite sure this is quite right: what we want is to have our wheels be done with numpy 2.0, which is done In principle, there is no reason to restrict the general build to numpy >= 2.0 - after all, people can build things fine with numpy 1.25 or whatever, it just won't work under higher versions. |
See my answer in astropy/astropy#16252 (comment) But, I indeed missed the specifics of this project's infra. Should we keep building wheels against numpy nightlies ? This seems needlessly risky to me now there's an ABI stable version we can use instead. I seems to me that the following patch would suffice diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 84d9566..30463f0 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -29,7 +29,7 @@ jobs:
# the build isolation and explicitly install the latest developer version of numpy as well as
# the latest stable versions of all other build-time dependencies.
env: |
- CIBW_BEFORE_BUILD: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple setuptools setuptools_scm jinja2 numpy') || '' }}'
+ CIBW_BEFORE_BUILD: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip install setuptools setuptools_scm jinja2 numpy>=2.0.0rc1') || '' }}'
CIBW_BUILD_FRONTEND: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip; args: --no-build-isolation') || 'build' }}'
test_extras: test what do you think ? |
Indeed, we should patch the publish workflow. With that, it is not clear to me what is the advantage of also doing |
Unless passed the |
Ah, I see. I still do not quite see why we would do more than the minimal change to our |
9d92ecb
to
96e5d32
Compare
Just wanted to make sure we were on the same page before I pushed again. I've reverted the change to pyproject.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neutrinoceros - this certainly looks good to me (and we can do pyproject.toml
separately if that is wanted after all).
Before I merge: do I understand correctly that the wheel building also failed on its own already? I.e., the macos failure is unrelated to this PR, but rather an upstream issue in the process of being resolved, right? Did you get a sense of timescale? I.e., should I still wait a bit with creating a new version for pypi?
That is correct. Upstream issue has been for two months but the current, more visible form of the problem only seems to have appeared a couple days ago. Maybe it'll get fixed promptly, and otherwise, it seems plausible that cibuildwheel could issue a patch to work around it, but I'm not taking bets. I'd advise to wait for a couple days and if nothing changes in the meantime, just push a release without the macOS AMD wheels; they are much less critical for testing and can always be pushed later when the situation improves. |
OK, thanks! Will merge this one now then. |
No description provided.