You `import pkg_resources`, which is [deprecated](https://setuptools.pypa.io/en/latest/pkg_resources.html). For object oriented handling of versions, you should use [`packaging.version` ](https://packaging.pypa.io/en/stable/version.html) instead. 