Skip to content
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

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

jcfr
Copy link
Collaborator

@jcfr jcfr commented Mar 29, 2024

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 in Lib/importlib/metadata.py and not Lib/importlib/metadata/__init__.py.

For more details:

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`.
@jcfr jcfr force-pushed the remove-unneeded-importlib_metadata-dependency branch from f9834e2 to 504852a Compare March 29, 2024 21:15
@jcfr
Copy link
Collaborator Author

jcfr commented Mar 29, 2024

@vkt1414 If you approve the pull request, now that we have the possibility to enable Auto-merge on a per pull request basis, it will then get automatically merged 🙏

image

I also just added you a reviewed. For context, I initially assigned the issue to you instead of adding you as a reviewer.

image image

@jcfr jcfr requested a review from vkt1414 March 29, 2024 21:29
@vkt1414
Copy link
Collaborator

vkt1414 commented Mar 29, 2024

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!

@jcfr jcfr merged commit bdffbdb into main Mar 29, 2024
9 checks passed
@jcfr jcfr deleted the remove-unneeded-importlib_metadata-dependency branch March 29, 2024 21:39
@jcfr jcfr changed the title Remove unneeded importlib metadata dependency chore: Remove unneeded importlib metadata dependency Apr 1, 2024
@jcfr jcfr changed the title chore: Remove unneeded importlib metadata dependency fix: Remove unneeded importlib metadata dependency Apr 1, 2024
fedorov added a commit to ImagingDataCommons/idc-index that referenced this pull request Apr 12, 2024
`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
fedorov added a commit to ImagingDataCommons/idc-index that referenced this pull request Apr 12, 2024
`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>
fedorov added a commit to ImagingDataCommons/idc-index that referenced this pull request Apr 13, 2024
`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>
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.

2 participants