Skip to content

Conversation

@zeromind
Copy link
Contributor

replace deprecated pkg_resources with importlib.resources according to the migration guide

https://importlib-resources.readthedocs.io/en/latest/migration.html

resolves deprecation warning:

# /opt/dim/bin/manage_dim --help
/opt/dim/lib64/python3.9/site-packages/dim/models/migrate.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources

@zeromind zeromind requested a review from miesi-ionos August 20, 2025 14:38
@zeromind zeromind added the bug Something isn't working label Aug 20, 2025
replace `pkg_resources` with `importlib.resources` according to the migration guide

https://importlib-resources.readthedocs.io/en/latest/migration.html
Copy link
Collaborator

@miesi-ionos miesi-ionos left a comment

Choose a reason for hiding this comment

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

Cool, please merge.

@miesi-ionos miesi-ionos merged commit 5770ed1 into master Aug 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants