-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: Remove unneeded importlib metadata dependency #12
Conversation
It turns out that the `importlib.metadata.distribution()` function is available in Python 3.8 and 3.9 where it is implemented in `Lib/importlib/metadata.py` and not `Lib/importlib/metadata/__init__.py`.
f9834e2
to
504852a
Compare
@vkt1414 If you approve the pull request, now that we have the possibility to enable I also just added you a reviewed. For context, I initially assigned the issue to you instead of adding you as a reviewer. |
thank you, @jcfr ! We are still learning how the pyproject.toml is put together. So, as long as the checks are working, we are okay! |
`importlib.metadata.distribution()` is available with python >= 3.8 The check for python 3.10 broke SlicerIDCExtension, since Slicer is using 3.9 Related to ImagingDataCommons/idc-index-data#12 --------- Co-authored-by: Vamsi Thiriveedhi <vthiriveedhi@mgh.harvard.edu> bugg
`importlib.metadata.distribution()` is available with python >= 3.8 The check for python 3.10 broke SlicerIDCExtension, since Slicer is using 3.9 Related to ImagingDataCommons/idc-index-data#12 --------- Co-authored-by: Vamsi Thiriveedhi <vthiriveedhi@mgh.harvard.edu>
`importlib.metadata.distribution()` is available with python >= 3.8 The check for python 3.10 broke SlicerIDCExtension, since Slicer is using 3.9 Related to ImagingDataCommons/idc-index-data#12 --------- Co-authored-by: Vamsi Thiriveedhi <vthiriveedhi@mgh.harvard.edu> Co-authored-by: Jean-Christophe Fillion-Robin <jcfr@kitware.com>
Remove unneeded importlib_metadata dependency with Python < 3.10
It turns out that the
importlib.metadata.distribution()
function is available in Python 3.8 and 3.9 where it is implemented inLib/importlib/metadata.py
and notLib/importlib/metadata/__init__.py
.For more details: