8000 MNT Bump joblib version dependency to 1.0.0 by thomasjpfan · Pull Request #22365 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MNT Bump joblib version dependency to 1.0.0 #22365

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 7 commits into from
Feb 9, 2022

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #22364

What does this implement/fix? Explain your changes.

cachedir was removed in joblib/joblib#1236 so we can not directly test it in test_check_memory.

memory = check_memory(None)
assert memory.cachedir is None
if joblib_before_0_12:
Copy link
Member

Choose a reason for hiding this comment

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

Might be a good time to upgrade minimal required joblib, particularly if we are not testing it? Currently, it's 0.11 released in 2017 which is a long time ago.

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 only test the minimum version of joblib in the ubuntu_altas job and coverage is turned off there.

I'm okay with bumping up the version. Do we go straight to joblib 1.1 or go to 0.12.5?

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. There were some known issues in the first few releases when joblib included loki around 0.12, maybe we can just go with 1.0 directly (late 2020)?

@ogrisel any opinion on this?

Copy link
Member

Choose a reason for hiding this comment

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

I think 1.0 is fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated PR to bump joblib dependency to 1.0.0, which also lead to deleting a bunch of code.

memory = check_memory("cache_directory")
assert memory.cachedir == os.path.join("cache_directory", "joblib")
if joblib_before_0_12:
assert memory.cachedir == os.path.join("cache_directory", "joblib")
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 only test the minimum version of joblib in the ubuntu_altas job and coverage is turned off there.

@thomasjpfan thomasjpfan changed the title MNT Fixes test for joblib removing cachedir MNT Bump joblib version dependency to 1.0.0 Feb 7, 2022
Copy link
Member
@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @thomasjpfan!

@ogrisel ogrisel added the Quick Review For PRs that are quick to review label Feb 8, 2022
Copy link
Member
@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Nice !

@lorentzenchr
Copy link
Member

This is really nice
Maintenance wise.
Therefore, I (no committee/jury yet) grant the third maintainability award after #19336 (comment) to @thomasjpfan 🏆
The race is very close, now all three, @glemaitre, @jeremiedbb and @thomasjpfan, are in front.

@rth
Copy link
Member
rth commented Feb 9, 2022

the third maintainability award after

Is there any chocolate involved? :)

ilivans pushed a commit to ilivans/scikit-learn that referenced this pull request Feb 10, 2022
thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Mar 1, 2022
sebp added a commit to sebp/scikit-survival that referenced this pull request Aug 2, 2022
sebp added a commit to sebp/scikit-survival that referenced this pull request Aug 7, 2022
sebp added a commit to sebp/scikit-survival that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚠️ CI failed on Linux_Nightly.pylatest_pip_scipy_dev ⚠️
5 participants
0