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

Remove use of pkg_resources #245

Closed
JonathonReinhart opened this issue Jan 2, 2024 · 2 comments · Fixed by #247
Closed

Remove use of pkg_resources #245

JonathonReinhart opened this issue Jan 2, 2024 · 2 comments · Fixed by #247

Comments

@JonathonReinhart
Copy link
Owner Author

The replacement for pkg_resources.get_distribution(DIST_SPEC).version is importlib.metadata.version(DIST_SPEC).

However, importlib.metadata is not available until Python 3.8 and our minimum is Python 3.7 (until #242).

@JonathonReinhart
Copy link
Owner Author

JonathonReinhart added a commit that referenced this issue Jan 3, 2024
pkg_resources is deprecated:
https://setuptools.pypa.io/en/latest/pkg_resources.html

This prefers importlib.metadata (introduced in Python 3.8) and uses the
backport importlib_metadata for Python 3.7 (to be removed in #242).

Fixes #245
JonathonReinhart added a commit that referenced this issue Jan 3, 2024
pkg_resources is deprecated:
https://setuptools.pypa.io/en/latest/pkg_resources.html

This prefers importlib.metadata (introduced in Python 3.8) and uses the
backport importlib_metadata for Python 3.7 (to be removed in #242).

Fixes #245
JonathonReinhart added a commit that referenced this issue Jan 3, 2024
pkg_resources is deprecated:
https://setuptools.pypa.io/en/latest/pkg_resources.html

This prefers importlib.metadata (introduced in Python 3.8) and uses the
backport importlib_metadata for Python 3.7 (to be removed in #242).

Fixes #245
JonathonReinhart added a commit that referenced this issue Jan 3, 2024
…247)

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

This prefers importlib.metadata (introduced in Python 3.8) and uses the
backport importlib_metadata for Python 3.7 (to be removed in #242).

Fixes #245
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