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

Pkg resources #187

Closed
wants to merge 16 commits into from
Closed

Pkg resources #187

wants to merge 16 commits into from

Conversation

SunilSimha
Copy link
Collaborator

pkg_resources has been deprecated for a long time and in Python 3.12, it is finally non-functional.

This PR Replaces all instances of pkg_resources.resource_filename with importlib_resources.files. The latter returns a PosixPath object instead of as str and so one has to be careful with functions that expect strings in path inputs. All unit tests run without errors pertaining to path names.

There might still be errors because of your external packages which use pkg_resources. This only deals with bugs within the repo.

@SunilSimha SunilSimha requested a review from profxj October 18, 2024 23:49
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@SunilSimha SunilSimha removed the request for review from profxj October 19, 2024 00:30
@SunilSimha SunilSimha closed this Oct 19, 2024
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.

1 participant