Replace discouraged pkg_resources for Python 3.9+

See https://setuptools.readthedocs.io/en/latest/pkg_resources.html
2 jobs for master in 7 minutes and 20 seconds (queued for 7 minutes and 7 seconds)
Status Job ID Name Coverage
  Test
passed #22495
code-quality

00:05:10

3.0%
 
  Build
passed #22496
linux

00:02:09