10000 [MRG] MNT removed deprecated files generation by NicolasHug · Pull Request #17132 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] MNT removed deprecated files generation #17132

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 16 commits into from
May 25, 2020

Conversation

NicolasHug
Copy link
Member

No description provided.

@adrinjalali
Copy link
Member

you've been sitting on this, haven't you :D It'd be nice to merge this a bit after release I'd say.

@NicolasHug NicolasHug changed the title MNT removed deprecated files generation [MRG] MNT removed deprecated files generation May 6, 2020
.gitignore Outdated
# TODO: Remove in 0.24
# All of these files should have a match in _build_utils/deprecated_modules.py
# All of these files were deprecated and automatically generated in 0.22, and
# removed in 0.24. We keep them in gitignore otherwise users would need to
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
# removed in 0.24. We keep them in gitignore otherwise users would need to
# removed in 0.24. We keep them in gitignore otherwise devs would need to

@NicolasHug
Copy link
Member Author

@amueller
Copy link
Member

conflicts

@NicolasHug
Copy link
Member Author

thanks should be good now

Copy link
Member
@amueller amueller left a comment

Choose a reason for hiding this comment

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

wow can't believe it's been two releases already!

@NicolasHug
Copy link
Member Author

thanks for the review!

wow can't believe it's been two releases already!

Yeah, we started late in 0.21 so it's basically only been 6 months, i.e. one release

Copy link
Member
@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM, thanks @NicolasHug . I'm quite proud of us having done this!

.gitignore Outdated
Comment on lines 82 to 84
# All of these files were deprecated and automatically generated in 0.22, and
# removed in 0.24. We keep them in gitignore otherwise devs would need to
# manually delete them
Copy link
Member

Choose a reason for hiding this comment

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

git clean -xfd does that though. I'd rather remove them from here and have us run the command once?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I'm fine with either.

We should probably recommend git clean -xi since this will remove all untracked files. We can do that in a sticky issue I guess?

Pinging @glemaitre @rth @thomasjpfan @ogrisel @jnothman , any objection?

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to remove them from .gitignore.

Although, I do not know where to put the git clean information. We would most likely need to help contributors with this when they sync with master and then use git add . which would add these ignored files back.

Copy link
Member Author

Choose a reason for hiding this comment

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

thoughts on a sticky issue as suggested?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure what they are, but I like the sound of it

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

We didn't get a chance to discuss this during the meeting so I'll merge tomorrow unless someone objects

@@ -474,8 +474,6 @@ def test_partial_dependence_X_list(estimator):
partial_dependence(estimator, list(X), [0])


# TODO: Remove in 0.24 when DummyClassifier's `strategy` default updates
Copy link
Member Author

Choose a reason for hiding this comment

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

these 2 aren't related to module deprecation but I think they're the only ones remaining so I'll squeeze them here instead of opening another PR

@glemaitre glemaitre merged commit 7494da6 into scikit-learn:master May 25, 2020
@glemaitre
Copy link
Member

LGTM Thanks @NicolasHug
In case we have 0.23.2, I think that we should be able to cherry-pick if it was a concern of @adrinjalali

@NicolasHug
Copy link
Member Author

Thanks @glemaitre

Created and pinned #17341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0