whipper
whipper copied to clipboard
No longer rely on `pkg_resources`
As noted in #651, pkg_resources is deprecated and will be removed rather soon. Whipper currently uses it for various things, all of which luckily have alternatives
- Logger plugin discovery is done using
importlib.metadata'sentry_points- this also makes it easier to install plugins: Simply install them as a regular Python package (python3 setup.py install)- I have confirmed
whipper-plugin-eacloggerstill works fine after installing it withsetup.py install. I'm not aware of any other logger plugins that might be tested here
- I have confirmed
- Version comparison is done using
packaging.version. We were already pulling this in withsetuptools_scm, so this doesn't really end up changing our dependencies - Fetching the package version is also done using
importlib.metadata, specifically itsversionfunction
Closes #651