pkg_resources is deprecated with newer setuptools:
pywikibot/tools/__init__.py:25 /home/runner/work/pywikibot/pywikibot/pywikibot/tools/__init__.py:25: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources
See: https://setuptools.pypa.io/en/latest/pkg_resources.html
The Pywikibot's usage can be found at
https://codesearch.wmcloud.org/pywikibot/?q=pkg_resources&files=&excludeFiles=&repos=
Maybe importlib.metadata should be used to import the package. See also: