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

Use importlib.metadata instead of pkg_resources #96

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

cbrnr
Copy link
Contributor

@cbrnr cbrnr commented Dec 23, 2023

Starting with Python 3.12, pkg_resources is no longer available, and it is recommended to use importlib.metadata instead.

If we drop support for Python < 3.8, we could get rid of pkg_resources completely (and therefore simplify the code required to get the version). Almost all scientific Python packages support the last 3 to 4 Python versions only, and I think we should do that too. We can keep Python 3.8 support for now, which means that we'd support five versions.

@cbrnr cbrnr merged commit c48301d into xdf-modules:main Jan 12, 2024
@cbrnr cbrnr deleted the importlib-metadata branch January 12, 2024 07:25
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