remove unused pkg_resources import#3512
Merged
bthirion merged 1 commit intonilearn:mainfrom Feb 15, 2023
Merged
Conversation
Contributor
|
👋 @drammock Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov Report
@@ Coverage Diff @@
## main #3512 +/- ##
==========================================
- Coverage 91.00% 91.00% -0.01%
==========================================
Files 133 133
Lines 15358 15357 -1
Branches 3034 3034
==========================================
- Hits 13977 13976 -1
Misses 817 817
Partials 564 564
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ymzayek
approved these changes
Feb 15, 2023
NicolasGensollen
approved these changes
Feb 15, 2023
Member
NicolasGensollen
left a comment
There was a problem hiding this comment.
LGTM, thanks @drammock !
Member
|
Thx ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The MNE-Python CIs are hitting a new
DeprecationWarningtoday when we import nilearn. It appears to arise from the (unused) importing ofpkg_resourcesin your__init__.py. Locally when I runpytest nilearnafter this change, all tests pass, andpip install -e .into a clean environment also works, so I'm pretty sure that import was just cruft.Here's the warning we've been hitting, FYI:
Details
Changes proposed in this pull request:
pkg_resourcesin__init__.pyEDIT: pasted wrong traceback the first time. fixed now.