Repository navigation
BLD: set a temporary upper limit on runtime-requirement for numpy - #15206
neutrinoceros wants to merge 1 commit into
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
Because a lot of downstream packages test against dev versions of dependencies (e.g., numpy-dev + astropy-dev). If we pin too strictly in the dev (main) branch, it might force numpy-dev to silently downgrade to a stable numpy, which is not desirable. I have had that happened so many time in combo of other packages that I am really tired of it. |
|
Thanks for opening a follow-up PR as requested. I appreciate it! |
I'll fully admit I don't understand everything about pip's dependency resolver, so I'm not excluding this possibility, and before this fires back, I'd like to disclose that I'm not advocating for using upper boundaries lightly, but numpy 2.0 is a set to be a major exception in the scientific Python landscape's history, so there's that. Should I redirect the PR to a release branch instead, and if so, which one ? |
|
I understand your concerns, @neutrinoceros . We already have multiple patches to |
|
works for me. Thanks ! |
While this reflects how >>> from packaging.version import Version
>>> Version("2.0.0dev0") < Version("2.0")
TrueEmpically, I find that |
I can see the value in that. I have added this as an agenda for the next infrastructure tag-up on 2023-08-29. But if we don't get quorum that day (due to vacation etc), then the next one. |
|
I thought about this more and I still don't think we should do this in |
Description
This is a follow up to #14949, following recommendations from numpy/oldest-supported-numpy maintainers (see scipy/oldest-supported-numpy#76 (comment))
The issue here is that wheels built with numpy 1.x will no be runtime compatible with numpy 2.0, so it's preferable to prevent users from installing astropy in a broken env.
Additional context:
2.0.0dev0) compares as< 2.0.In the initial thread, @pllim said:
I don't know exactly what branching strategy is used on astropy, so maybe I'm just not getting this right; my goal here is indeed to protect users from installing broken envs, so I'm in favour of this going into a release if needed, but it's not clear to me why this patch wouldn't be acceptable in the main branch.