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

Dependency on pkg_resources is not declared #208

Closed
tari opened this issue Jul 30, 2024 · 1 comment · Fixed by #209
Closed

Dependency on pkg_resources is not declared #208

tari opened this issue Jul 30, 2024 · 1 comment · Fixed by #209

Comments

@tari
Copy link
Contributor

tari commented Jul 30, 2024

Since Python 3.12, pkg_resources is not shipped by default with Python. It remains available as a part of the setuptools package, but that should be declared as a dependency to ensure it's available.

importlib.metadata is the intended replacement for the uses of pkg_resources in this package (just getting the package version), but is only available since Python 3.8. Since this package currently supports down to Python 3.7, importlib_metadata can be used instead; that provides a backport of the standard library.

@tari
Copy link
Contributor Author

tari commented Jul 30, 2024

#210 provides an alternative to #209 (or interim solution) by declaring a dependency on setuptools.

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 a pull request may close this issue.

1 participant