Skip to content

Drop support for python 2 and python 3.5 #291

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

Merged
merged 5 commits into from
May 27, 2020
Merged

Drop support for python 2 and python 3.5 #291

merged 5 commits into from
May 27, 2020

Conversation

perimosocordiae
Copy link
Contributor

Fixes gh-166, and resolves some errors related to newer versions of scikit-learn.

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Finally!

@perimosocordiae
Copy link
Contributor Author

The Travis failures are due to an inconsistency in the way scikit-learn prints the __repr__ of its transformers. In the version that supports py3.5, it uses the old behavior (print all params), but in newer versions (py3.6+) it only prints params that have non-default values.

Maybe this is a sign that we should drop py3.5 in this PR as well? @bellet any thoughts?

@bellet
Copy link
Member

bellet commented May 26, 2020

sklearn stopped supporting Python 3.5, and this is also the case for our optional dependency skggm, see #166
So I think I'm for dropping py35 as well.

If we go for this we should probably update the travis builds to include one without skggm, to make sure the code is tested in this setup

We should also simplify the skggm-related instructions in the builds and the README/doc as we should be able to just use the last version instead of a specific commit, am I right @wdevazelhes ?

@wdevazelhes
Copy link
Member

I agree that it makes sense to drop py35

We should also simplify the skggm-related instructions in the builds and the README/doc as we should be able to just use the last version instead of a specific commit, am I right @wdevazelhes ?

I think there was some undeterministicness problems still present in the current release of skggm (see #272), which fix (skggm/skggm@a0ed406) hasn't been released yet... However skggm doesn't seem very active... Also, @bellet since you fixed scikit-learn's issues with graphical lasso (scikit-learn/scikit-learn#13276), maybe now the cases where skggm is actually useful are very rare? (or inexistant ? I don't remember exactly but I think the cases to look at are the non SPD ones: cf.

skggm_advice = (" skggm's graphical lasso can sometimes converge "
)

@bellet
Copy link
Member

bellet commented May 27, 2020

I agree that it makes sense to drop py35

We should also simplify the skggm-related instructions in the builds and the README/doc as we should be able to just use the last version instead of a specific commit, am I right @wdevazelhes ?

I think there was some undeterministicness problems still present in the current release of skggm (see #272), which fix (skggm/skggm@a0ed406) hasn't been released yet... However skggm doesn't seem very active... Also, @bellet since you fixed scikit-learn's issues with graphical lasso (scikit-learn/scikit-learn#13276), maybe now the cases where skggm is actually useful are very rare? (or inexistant ? I don't remember exactly but I think the cases to look at are the non SPD ones: cf.

skggm_advice = (" skggm's graphical lasso can sometimes converge "

)

Nope, I don't think my fix changed much about this because the problem was only occurring in 2D. So let's keep things the same regarding skggm for now?

@bellet bellet changed the title Drop python 2 support. Drop support for python 2 and python 3.5 May 27, 2020
Copy link
Member

@bellet bellet left a comment

Choose a reason for hiding this comment

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

LGTM

@perimosocordiae perimosocordiae merged commit c15f1c3 into master May 27, 2020
@perimosocordiae perimosocordiae deleted the drop-py2 branch May 27, 2020 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move from python3.4 to newer (and remove support for python 2.7 ?)
4 participants