Skip to content

Conversation

@singlesp
Copy link
Contributor

@singlesp singlesp commented Jan 15, 2025

Closes #277.

Changes proposed in this pull request

  • Remove deprecated pkg_resources package in favor of recommended importlib.resources

@singlesp singlesp requested review from tien-tong and tsalo and removed request for tsalo January 15, 2025 16:26
@tien-tong tien-tong requested a review from tsalo January 15, 2025 16:31
@tsalo
Copy link
Member

tsalo commented Jan 15, 2025

It looks like pkg_resources is used in both config.py and utils.py. I also would lean toward using a different variable name instead of shadowing pkg_resources, but that's just personal preference.

@singlesp singlesp marked this pull request as draft January 15, 2025 19:01
@singlesp singlesp marked this pull request as ready for review January 15, 2025 19:01
@tsalo tsalo changed the title switched from using pkg_resources to importlib.resources Switch from using pkg_resources to importlib.resources Jan 15, 2025
Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tsalo tsalo merged commit 135aa1f into main Jan 15, 2025
10 checks passed
@tsalo tsalo deleted the switch-pkg_resources-to-importlib.resources branch January 15, 2025 19:42
@tien-tong tien-tong removed their request for review January 16, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkg_resources is deprecated

3 participants