Skip to content

Commit 19651ed

Browse files
RobbieKiwiRobbie Muir
andauthored
Bugfix/fix readthedocs (#574)
* add dummy text * change linopy version discovery * remove redundnat comments --------- Co-authored-by: Robbie Muir <robbie.muir@gmail.com>
1 parent c9f83bb commit 19651ed

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

doc/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
16-
import pkg_resources # part of setuptools
16+
import linopy
1717

1818
# -- Project information -----------------------------------------------------
1919

@@ -22,12 +22,9 @@
2222
author = "Fabian Hofmann"
2323

2424
# The full version, including alpha/beta/rc tags
25-
version = pkg_resources.get_distribution("linopy").version
25+
version = linopy.__version__
2626
release = "master" if "dev" in version else version
2727

28-
# For some reason is this needed, otherwise autosummary does fail on RTD but not locally
29-
import linopy # noqa
30-
3128
# -- General configuration ---------------------------------------------------
3229

3330
# Add any Sphinx extension module names here, as strings. They can be

0 commit comments

Comments
 (0)