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

[MNT] - Drop use of package_resources #281

Merged
merged 2 commits into from
Jul 8, 2023
Merged

[MNT] - Drop use of package_resources #281

merged 2 commits into from
Jul 8, 2023

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 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