Skip to content

RF: Fix for abc library Traversable class module #1333

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

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

jhlegarreta
Copy link
Contributor

Fix for abc library Traversable class module: import from importlib.resources.abc.

Fixes:

/home/runner/work/nibabel/nibabel/nibabel/testing/__init__.py:30:
 DeprecationWarning: 'importlib.abc.Traversable' is deprecated and slated for removal in Python 3.14
      from importlib.abc import Traversable

raised for example at:
https://github.com/nipy/nibabel/actions/runs/9637811213/job/26577586721#step:7:157

Documentation:
https://docs.python.org/3/library/importlib.resources.abc.html#importlib.resources.abc.Traversable

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.20%. Comparing base (adedf7b) to head (7caef99).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1333   +/-   ##
=======================================
  Coverage   92.20%   92.20%           
=======================================
  Files          98       98           
  Lines       12398    12398           
  Branches     2556     2556           
=======================================
  Hits        11431    11431           
  Misses        644      644           
  Partials      323      323           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jhlegarreta
Copy link
Contributor Author

Sorry Chris, no idea how to solve the riddle here after inspecting the build logs.

@effigies effigies force-pushed the FixTraversableResourcesModule branch from a4e0def to 908953d Compare June 27, 2024 07:16
jhlegarreta and others added 2 commits June 27, 2024 16:36
Fix for `abc` library `Traversable` class module: import from
`importlib.resources.abc`.

Fixes:
```
/home/runner/work/nibabel/nibabel/nibabel/testing/__init__.py:30:
 DeprecationWarning: 'importlib.abc.Traversable' is deprecated and slated for removal in Python 3.14
      from importlib.abc import Traversable
```

raised for example at:
https://github.com/nipy/nibabel/actions/runs/9637811213/job/26577586721#step:7:157

Documentation:
https://docs.python.org/3/library/importlib.resources.abc.html#importlib.resources.abc.Traversable
@effigies effigies force-pushed the FixTraversableResourcesModule branch from b340ca5 to 7caef99 Compare June 27, 2024 07:36
@effigies effigies merged commit 0bd95cd into nipy:master Jun 27, 2024
47 of 48 checks passed
@jhlegarreta jhlegarreta deleted the FixTraversableResourcesModule branch June 27, 2024 12:58
@jhlegarreta
Copy link
Contributor Author

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