openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.41k stars 616 forks source link

Remove pkg_resources imports and use packaging instead #2082

Closed davnn closed 5 days ago

davnn commented 1 month ago

πŸ“ Description

The pkg_resources module is deprecated and does not export the required symbols in newer versions. It is advised to use packaging or importlib instead. Because we only rely on functionality present in packaging, the change from pkg_resources to packaging should be straightforward.

✨ Changes

Select what type of change your PR is:

βœ… Checklist

Before you submit your pull request, please make sure you have completed the following steps:

For more information about code review checklists, see the Code Review Checklist.

davnn commented 1 month ago

Should be fixed, please merge.

samet-akcay commented 1 week ago

Our CI is currently down. Once fixed, we'll prioritise this PR