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

fix: replace pkg_resources.get_distribution #379

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

westonsteimel
Copy link
Contributor

@westonsteimel westonsteimel commented Aug 28, 2024

Replaces pkg_resources.get_distribution with the recommendation from importlib_metadata (per https://importlib-metadata.readthedocs.io/en/latest/migration.html#pkg-resources-get-distribution); however, the string output of the Distribution object has changed, so this makes the version output match what it was before using the new Distribution object.

This allows yardstick to work with python 3.12+ where pkg_resources has been removed

Replaces `pkg_resources.get_distribution` with the recommendation from `importlib_metadata` (per https://importlib-metadata.readthedocs.io/en/latest/migration.html#pkg-resources-get-distribution); however, the string output of the Distribution object has changed, so this makes the version output match what it was before using the new Distribution object.

Signed-off-by: Weston Steimel <[email protected]>
@westonsteimel westonsteimel force-pushed the remove-pkg_resources-useage branch from e3f213f to e2ba25d Compare August 28, 2024 13:11
@westonsteimel westonsteimel requested a review from a team August 28, 2024 13:17
@westonsteimel westonsteimel merged commit 83a0dda into main Aug 28, 2024
3 checks passed
@westonsteimel westonsteimel deleted the remove-pkg_resources-useage branch August 28, 2024 15:35
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.

2 participants