From 7113ec24820baf4d7ad41046c6c40af64aceaa9f Mon Sep 17 00:00:00 2001 From: Robbie Muir Date: Mon, 9 Feb 2026 19:31:30 +0100 Subject: [PATCH 1/3] add dummy text --- doc/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index d33175e1..2e8eb4ae 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,20 +13,19 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) -import pkg_resources # part of setuptools - # -- Project information ----------------------------------------------------- +import pkg_resources project = "linopy" copyright = "2021, Fabian Hofmann" author = "Fabian Hofmann" +text = "text" # The full version, including alpha/beta/rc tags version = pkg_resources.get_distribution("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 --------------------------------------------------- From e7913d46146d550d14d4a1901b48f1bf5883f334 Mon Sep 17 00:00:00 2001 From: Robbie Muir Date: Mon, 9 Feb 2026 19:39:24 +0100 Subject: [PATCH 2/3] change linopy version discovery --- doc/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 2e8eb4ae..efc4f5ab 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,16 +13,16 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) +import linopy + # -- Project information ----------------------------------------------------- -import pkg_resources project = "linopy" copyright = "2021, Fabian Hofmann" author = "Fabian Hofmann" -text = "text" # 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 From 1c645a454d1ea76151ccd4bc0550ca27af86e450 Mon Sep 17 00:00:00 2001 From: Robbie Muir Date: Mon, 9 Feb 2026 19:46:42 +0100 Subject: [PATCH 3/3] remove redundnat comments --- doc/conf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index efc4f5ab..d7cce91b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -25,8 +25,6 @@ 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 - # -- General configuration --------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be