-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MRG Drop legacy python / remove six dependencies #12639
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
Conversation
There is an issue open for this... |
Maybe not a PR. |
This is very WIP. I didn't think anyone else has started so I posted this so no-one else would. @jnothman did you mean someone else had started? |
Noone has as far as I know. The original issue is #11991 |
@amueller do we already want to do this now? There was a little bit discussion about that on the issue (#11991), so maybe answer there. |
I guess we can close, see #12746 |
I wouldn't close this one. This includes some much "harder" changes than the "easy" ones I've had in the other PR. I guess we thought of continuing this one after the CI is changed. |
I'll try and fix it "soon" ;) |
This should fix all comments, I think. Should we inherit from |
Hi, just wanted to say that I have removed Python 2 style super() calls in #12812, so that we don't accidentally duplicate work. |
This just gives me the feeling of a nice house de-cluttering right before the new year :) |
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.
LGTM, thanks @amueller !
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.
@adrinjalali says this is like de-cluttering. Perhaps burning photos of an old lover with whom you had on-and-off trouble, but okay.
I think I'm happy with this!
sklearn/utils/murmurhash.pyx and sklearn/feature_extraction/_hashing.pyx still reference unicode
, which should be removed. Otherwise LGTM
Currently, we are still using |
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * correct email address
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * correct email address
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * rebase * correct email address
This continues the work done in #12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in #12927 that `sklearn.utils.fixes` are private as was stated e.g. in #6616 (comment)
OMG that's such a nice thing to come home to! Yay! (also lol at @jnothman's comment) |
This continues the work done in scikit-learn#12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in scikit-learn#12927 that `sklearn.utils.fixes` are private as was stated e.g. in scikit-learn#6616 (comment)
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * rebase * correct email address
This continues the work done in scikit-learn#12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in scikit-learn#12927 that `sklearn.utils.fixes` are private as was stated e.g. in scikit-learn#6616 (comment)
Tries to drop legacy python (2.7) and remove six everywhere.