yioda / ansible-inventory-to-ssh-config

This is a python tool for updating ssh config from ansible inventory file.
MIT License
25 stars 6 forks source link

[FIX] Replace Deprecated pkg_resources with importlib.metadata. #12

Closed yioda closed 1 month ago

yioda commented 1 month ago

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.

ref: https://setuptools.pypa.io/en/latest/pkg_resources.html