core: replace pkg_resources
with importlib.metadata
#2261
+66
−45
Merged