Skip to content

Conversation

@rishav-karanjit
Copy link
Member

@rishav-karanjit rishav-karanjit commented Nov 17, 2025

Issue #, if available:

Description of changes:
pkg_resources is getting depreciated on 11/30/2025 in flavor of importlib.metadata. So, replacing pkg_resources with importlib.metadata.

This change migrates the entry point discovery mechanism in master_key_parsing.py from the deprecated pkg_resources.iter_entry_points() to the standard library importlib.metadata.distributions().

Changes:
• Replace pkg_resources.iter_entry_points() with importlib.metadata.distributions() and entry_points iteration
• Maintain backward compatibility by preserving the same entry point mapping structure
• Update import statements to use importlib.metadata instead of pkg_resources

References:

https://packaging.python.org/en/latest/specifications/entry-points/
https://setuptools.pypa.io/en/latest/pkg_resources.html
https://docs.python.org/3/library/importlib.metadata.html

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rishav-karanjit rishav-karanjit requested a review from a team as a code owner November 17, 2025 18:19
@rishav-karanjit rishav-karanjit marked this pull request as draft November 17, 2025 18:20
@rishav-karanjit rishav-karanjit marked this pull request as ready for review November 17, 2025 23:01
@rishav-karanjit rishav-karanjit merged commit a8362d2 into master Nov 18, 2025
51 checks passed
@rishav-karanjit rishav-karanjit deleted the rishav/depreciate_pkg_resources branch November 18, 2025 01:09
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