diff --git a/doc/conf.py b/doc/conf.py index d33175e1..d7cce91b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,7 +13,7 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) -import pkg_resources # part of setuptools +import linopy # -- Project information ----------------------------------------------------- @@ -22,12 +22,9 @@ author = "Fabian Hofmann" # The full version, including alpha/beta/rc tags -version = pkg_resources.get_distribution("linopy").version +version = linopy.__version__ release = "master" if "dev" in version else version -# For some reason is this needed, otherwise autosummary does fail on RTD but not locally -import linopy # noqa - # -- General configuration --------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be