-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
from __future__ import: not needed in Python 3 #21161
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
from __future__ import: not needed in Python 3 #21161
Conversation
Instead of removing just the import, we should copy-paste the full file in case that some bug fixes have been applied there. |
1fe3cad
to
550524f
Compare
@glemaitre I'm agree to copy if possible, but from where? Again, while these files originate in SciPy, they have been removed from SciPy and are now maintained here. See initial PR #10427. See also previous history of these files, they have already been modified multiple times: |
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.
I had not realized those where orphaned vendored files.
Ok for this import clean-up. We should probably a find a better solution for the long term maintenance of those files because having them in externals is misleading.
Either vendoring alternative implementations that are maintained out of scipy if they exist or importing a replacement from scipy, or moving to sklearn/utils
, outside of externals.
But this should be done in dedicated PRs, separately for _lobpcg.py
and _pilutil.py
.
While I'll move |
Actually """
scikit-learn copy of scipy/sparse/linalg/eigen/lobpcg/lobpcg.py v1.3.0
to be deleted after scipy 1.3.0 becomes a dependency in scikit-lean
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This file was supposed to removed for SciPy 1.3.0, but it's actually still there! I might open an issue in SciPy about it. I'll copy the latest version here in an upcoming PR. |
I have created #21163 to update |
No need to be open an issue. The comment is still meaningful. Our minimum requirement is SciPy 1.1.0 that is lower than 1.3.0 when |
I think that we should tag this PR for |
Ah, got it! I thought that file was supposed to be deleted in SciPy 1.3.0, not introduced in SciPy 1.3.0. """
scikit-learn copy of scipy/sparse/linalg/eigen/lobpcg/lobpcg.py v1.3.0
to be deleted after scipy 1.3.0 becomes a dependency in scikit-lean
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
Yes, I think there were some bugs (see |
While these files originate in SciPy, they have been removed from SciPy and are now maintained here.
550524f
to
6ece83d
Compare
I have changed this PR to update The other file, |
I don't like doing this kind of change in a bugfix release. I think it's fine to do the cleanup later. Edit: if there are some bugs, then ok to consider it a bug fix but it should be documented as such in the 1.0.1 changelog. |
Looking at the diff, it does not seem like a bug fix, only a renaming of |
So we can post-pone for 1.1 release. We will not need any changelog even. |
+1 for merging #21163 as is. And I am still +1 for merging this PR as is. |
Thanks @DimitriPapadopoulos |
Reference Issues/PRs
#21153
What does this implement/fix? Explain your changes.
Reopen #21153. While these files originate in SciPy, they have been removed from SciPy
and are now maintained here. So they are not vendored files any more.
Any other comments?