Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

TomDonoghue
Copy link
Member

@TomDonoghue TomDonoghue commented Jul 7, 2023

The pkg_resources API, which comes with setuptools is being deprecated (see warning here: https://setuptools.pypa.io/en/latest/pkg_resources.html). Since we only use this to get the path for the test outputs (and moving to use importlib is a bit annoying across multiple python version - see here: https://stackoverflow.com/a/75503824), this update gets away with this entirely, and gets the needed path with just os and pathlib.

In terms of review - key questions is whether it works properly / consistently across systems. It works for me locally and on Github Actions - so that seems promising. @ryanhammonds - can you check if this works for you on your system? If so, I think this should be okay to go with.

@TomDonoghue TomDonoghue changed the title [MNT] - Replace package_resources with importlib [MNT] - Drop use of package_resources Jul 7, 2023
@TomDonoghue TomDonoghue requested a review from ryanhammonds July 7, 2023 20:22
@TomDonoghue TomDonoghue added the 1.1 Targetted for a fooof 1.1 release. label Jul 7, 2023
Copy link
Contributor

@ryanhammonds ryanhammonds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass on this branch for me!

@TomDonoghue
Copy link
Member Author

@ryanhammonds - awesome, thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1 Targetted for a fooof 1.1 release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants