-
Notifications
You must be signed in to change notification settings - Fork 33
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
Bump scipy version to <1.11.0 #90
Conversation
It would be great to merge this PR and have a new release, so we can use |
@david-zwicker I'll raise this at the public Numba meeting tomorrow. Thanks for the PR @je-cook. |
Hi, is there any feeling on when this could be merged? |
Bump scipy version to allow installation of numpy >=1.23 alongside numba and numba-scipy
d8bac0d
to
38718b4
Compare
gentle ping @stuartarchibald @esc is there any update on this or any chance it can be merged? |
Thank you for asking about this. Perhaps @brandonwillard has some input on this too? |
I'm all for this update, as long as the tests pass, of course (and it looks like CI is awaiting approval). |
Thanks @brandonwillard, @esc could you approve the CI run so we can move forward with this? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
It looks like CI is bust somehow:
|
Hmm odd, from what I can tell those numpy imports were removed in numpy>v1.21. It also looks weird because I had missed the setup.py version change so I'd have thought it would actually have been the old scipy that was tested... i've pushed the scipy change, but not quite sure how to do interdependent versioning if we need numpy<=1.21 & scipy<=1.7.3 or numpy>1.21 & scipy>1.7.3 |
Does anyone know why I need to approve the workflow everytime? |
Also, does anyone know what is up with the Azure images? |
I think its because this is my first PR to the project, on another project I've got it set to 'require approval for first time contributors' and it seems to be the case that you have to approve for all updates (for us at least) |
yeah, that makes sense, I'll keep approving them until this PR is merged then. |
could it be, that the image is outdated and now longer available? |
Tryin' to bump the Azure Linux Image here: #95 |
I forgot to quote 3.10 so it will probably fail without that |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@brandonwillard can I get a second set of eys 👀 on this? it LGTM from my end. |
@je-cook good news, this one tested as green. |
Looks like github was not as clever as I hoped and if you leave out a variable in an include outside of the matrix it defaults to an empty string and doesnt cycle through the matrix for that value! |
OK, looks like the test matrix is all green, However, I see that there are tests for Python 3.6 and 3.7 -- now I am confused as to why we want these? The latest Numba release only supports 3.8, 3.9, 3.10 and 3.11.. See also: the version support table for Numba. https://numba.readthedocs.io/en/stable/user/installing.html#version-support-information |
Happy to drop them if we're keeping in lockstep with numba itself. I just didn't want to deprecate anything without wider consent |
I'm not sure whether the 32bit version will work with the newer stuff but we'll see! |
I don't think we support 32-bit anymore. But I am not certain as of when that's the case. @stuartarchibald do you know if we have a hardware-support table too? |
@je-cook what's up with the Numpy 1.24 on conda issue? |
I think its because numba 0.57 (which added numpy 1.24 support) is not on the conda repo yet. Thats my best guess looking around the azure logs for a few minutes, https://dev.azure.com/numba/numba-scipy/_build/results?buildId=15042&view=results |
Yes, looking at: https://anaconda.org/conda-forge/numba/files I concur with this assessment. I would like to find out when 0.57 is likely to land in CF and then decide on how to proceed. |
Looking at: conda-forge/llvmlite-feedstock#69 and conda-forge/numba-feedstock#115 it may been some time until 0.57.0 lands in conda-forge -- thus I would suggest to merge this PR as it get's the job done and then add in 1.24 when 0.57.0 lands on CF. Are well good with that? |
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.
Question:
exclude: | ||
- pyver: 3.11 | ||
numpy-version: "<1.22.0" | ||
include: |
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.
Why do we need to include these? I thought these would be covered by the martrix?
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.
There isn't a deprecation doc for scipy in numba-scipy as far as I'm aware.
I added them as extra tests to the matrix because only 3.8 is supported by the older scipy versions (which in turn requires an older numpy version) and previously that configuration was tested.
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.
OK, I see, well, that's fine, I guess.
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.
.
@je-cook thank you for the patch! @brandonwillard thank you for the review! |
Apologies for posting in a Merged PR, but I was wondering if there were any plans to package this change into a new patch version on |
Directory structure for python package. numba-scipy is specified as a github dependency because the version on pypi isn't yet compatible with numpy >=1.23. This has been addressed in a pull request(numba/numba-scipy#90) and I expect to use the pypi version in future.
Feel free to open a new release request as an issue on github and I'll see what I can do about a release. 👍 |
This PR bumps scipy version to allow installation of numpy >=1.23 alongside numba and numba-scipy
As discussed in #88 the scipy upgrade was waiting for anaconda to have a later release in its default repo which it now does (https://anaconda.org/anaconda/scipy).
I have pinned to less than the next minor version of scipy as it is unlikely behaviour will change on patch version changes. If you would like this stricter let me know.
Closes #88
EDIT
Scipy have bumped the deprecation to after 1.11.0 (see scipy/scipy#15596) and 1.10.0 is now on the anaconda repo.