Replace pkg_resources.resource_filename in fluiddoc.fluiddocset
pkg_resources
is provided by setuptools.
We don't want to depend on setuptools at runtime. In the doc, it is mentioned "Use of pkg_resources is discouraged in favor of importlib.resources, importlib.metadata, and their backports (resources, metadata). Please consider using those libraries instead of pkg_resources."
However, I don't know yet how to replace our use of pkg_resources.resource_filename
in https://foss.heptapod.net/fluiddyn/fluiddyn/-/blob/branch/default/fluiddoc/fluiddocset.py#L49.
doc_src = Path(resource_filename(pkg_name, "/")).parent / "doc"