**`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
```
(IMPORTANT) 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.
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:
- https://stackoverflow.com/questions/76043689/pkg-resources-is-deprecated-as-an-api
- https://github.com/simonw/datasette/issues/2057