Skip to content
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

MAINT: numpy cleanup version bumps: fixes issue #20458 #20711

Merged
merged 2 commits into from
May 14, 2024

Conversation

peppedilillo
Copy link
Contributor

The minimum numpy version in scipy/scipy/__init__.py has been aligned to the minimum requirement of pyproject.toml. A numpy version check has been removed from test test_moments in scipy/stats/tests/test_multivariate.py because the check looked for a numpy version earlier than the minimum. This pull request does not fully solve #20458. I will come back at it after discussion.

Reference issue

Partially solves issue #20458

What does this implement/fix?

This aligns a few numpy versions. Does not align the pytest version.

Additional information

I'm open to working on fixing the pytest versions too, as reported in #20458. However, it is not clear to me what is the exact pytest version we should report. Shall we find it ourselves or you already know? Tried grepping for it but didn't find anything useful.

The minimum numpy version in `scipy/scipy/__init__.py` has been aligned to the minimum requirement of `pyproject.toml`.
A numpy version check has been removed from test `test_moments` in `scipy/stats/tests/test_multivariate.py` because the check looked for a numpy version earlier than the minimum.
This pull request does not fully solve scipy#20458. I will come back at it after discussion.
@github-actions github-actions bot added scipy.stats maintenance Items related to regular maintenance tasks labels May 14, 2024
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is basically a duplicate of #20459 with an additional problem at the moment.

Also, the point in question, the pytest version guard, was already discussed over there at: #20459 (review)

scipy/__init__.py Outdated Show resolved Hide resolved
After checking discussion to PR scipy#20459, found that the pytest guards could be removed.
So I did, and removed a couple imports and a function which would became unused too.
Also, this commit fixes an horrible error with the previous one, which would ban import prior to NumPy 2.0.0.
(sorry! and thanks @tylerjereddy)
To fix this I change the numpy minimum version of `scipy/__init__.py` to `1.23.5` as user JacobOgle did with PR scipy#20459.
Thanks Jacob!
@peppedilillo peppedilillo changed the title MAINT: numpy cleanup version bumps: partially fixes issue #20458 MAINT: numpy cleanup version bumps: fixes issue #20458 May 14, 2024
@tylerjereddy tylerjereddy added this to the 1.14.0 milestone May 14, 2024
@tylerjereddy tylerjereddy merged commit 0f87966 into scipy:main May 14, 2024
28 of 31 checks passed
@tylerjereddy
Copy link
Contributor

tylerjereddy commented May 14, 2024

The CI failures were unrelated, and the diff seems "ok" now, so I've squash-merged it. Note that I've added @JacobOgle as a co-author given the two active PRs.

@peppedilillo
Copy link
Contributor Author

The CI failures were unrelated, and the diff seems "ok" now, so I've squash-merged it. Note that I've added @JacobOgle as a co-author given the two active PRs.

Thank you. Great to have added @JacobOgle: i copypasted his numpy version! Thank you too Jakob!
Bests and catch you soon hopefully. ~peppe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants