[core] implement support for run-time dependency version checking#8645
[core] implement support for run-time dependency version checking#8645LysandreJik merged 24 commits intohuggingface:masterfrom
Conversation
patrickvonplaten
left a comment
There was a problem hiding this comment.
This is a great addition and I think will save us from a lot of repetitive version mismatch issues - thanks a lot @stas00 !
Two things:
- I don't think tokenizers is a mandatory dependency
- Not sure if need this functionality to write a dependency table file. Curious to hear your thoughts here though!
|
@sgugger, wrt your comment in your announcement
After this PR, you can just |
|
@LysandreJik and @sgugger - it's ready to merge whenever you have a chance to review. Thank you. Probably it is best to merge post v4-release, in case I missed something. |
|
Will do a final review tomorrow! |
sgugger
left a comment
There was a problem hiding this comment.
Very nice! Could you please pass the new parts of the setup.py though the formatter? There are some inconsistencies with the rest of the library (using single quotes instead of double quotes, dicts have weird spacing). Thanks!
LysandreJik
left a comment
There was a problem hiding this comment.
This is great. Thank you for your work on this Stas.
As discussed at #8073 (comment) this PR:
install_requires(i.e. must modules)examples/lightning_base.pyto a fatal-on-failure requirement check.setup.py'sextrasdefinitions andinstall_requiresMakefiletargetdeps_table_updatethat updates the dep table, and inserts it intostyle/quality/fixuptargets so the sync shouldn't take too long if forgotten to be run explicitly@sgugger, @LysandreJik, @patrickvonplaten, @thomwolf