Skip to content

fix: compare joblib versions semantically#2242

Open
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/joblib-version-compare
Open

fix: compare joblib versions semantically#2242
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/joblib-version-compare

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • compare joblib.__version__ with packaging.version.parse() instead of raw strings
  • add a regression test covering a future-style 1.10.0 joblib version string

Why

ParallelExt selects between joblib's old _backend_args and newer _backend_kwargs attributes based on the joblib version. A raw string comparison treats "1.10.0" as lower than "1.5.0", which would send newer joblib releases down the removed _backend_args path.

Tests

  • python -m py_compile qlib\\utils\\paral.py tests\\misc\\test_paral.py
  • python -m pytest tests\\misc\\test_paral.py -q
  • git diff --check

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.

1 participant