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

WIP - MAINT: more potential cleanups related to version bumps #20458 #20459

Closed
wants to merge 1 commit into from

Conversation

JacobOgle
Copy link
Contributor

Reference issue

#20458

What does this implement/fix?

Code cleanup for outdated dependencies

Additional information

Currently a WIP. Testing pytest versions that won't break unless there is already consensus on a version to validate against

@github-actions github-actions bot added scipy.stats maintenance Items related to regular maintenance tasks labels Apr 12, 2024
@lucascolley lucascolley marked this pull request as draft April 12, 2024 20:07
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.

Diff looks "ok" so far.

Testing pytest versions that won't break unless there is already consensus on a version to validate against

I believe those pytest version guards to support old versions can just be removed, we can't successfully run tests with pytest that old anymore.

peppedilillo added a commit to peppedilillo/scipy that referenced this pull request May 14, 2024
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!
tylerjereddy pushed a commit that referenced this pull request May 14, 2024
* 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.

* After checking discussion to PR #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.

Co-authored-by: jacobogle <jacob.ogle94@outlook.com>
@tylerjereddy
Copy link
Contributor

Superseded by gh-20711, but I did add the original author of this PR to the commit from the other one, given that they were "competing" PRs, just to be conservative on credit, etc.

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