Skip to content

remove dependency for pkg_resources#552

Open
gollumben wants to merge 2 commits intorawpython:masterfrom
gollumben:dependencies/no_pkg_resources
Open

remove dependency for pkg_resources#552
gollumben wants to merge 2 commits intorawpython:masterfrom
gollumben:dependencies/no_pkg_resources

Conversation

@gollumben
Copy link

The pkg_resources module is being deprecated and was removed:

https://setuptools.pypa.io/en/latest/pkg_resources.html

It is to be replaced by importlib.metadata. This is what this MR addresses. For backward compatibility, it checks if importlib.metadata is available and refers back to pkg_resources if it is not. If neither is found, a warning is printed.

It would be good if this could be merged and a new package for distribution could be made.

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