In some cases, where a local source for a package (e.g. in the PYTHONPATH) is used instead of a pip install package, the get_version() in the docs/conf.py fails with importlib.metadata.PackageNotFoundError: No package metadata was found for PACKAGE when using sphinx-build directly (instead of going via tox -e docs).
These changes allows one to use sphinx-build directly, which is sometimes needed for debugging purposes.
In some cases, where a local source for a package (e.g. in the PYTHONPATH) is used instead of a
pip
install package, theget_version()
in thedocs/conf.py
fails withimportlib.metadata.PackageNotFoundError: No package metadata was found for PACKAGE
when usingsphinx-build
directly (instead of going viatox -e docs
).These changes allows one to use
sphinx-build
directly, which is sometimes needed for debugging purposes.