We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f83bb commit 19651edCopy full SHA for 19651ed
1 file changed
doc/conf.py
@@ -13,7 +13,7 @@
13
# import os
14
# import sys
15
# sys.path.insert(0, os.path.abspath('.'))
16
-import pkg_resources # part of setuptools
+import linopy
17
18
# -- Project information -----------------------------------------------------
19
@@ -22,12 +22,9 @@
22
author = "Fabian Hofmann"
23
24
# The full version, including alpha/beta/rc tags
25
-version = pkg_resources.get_distribution("linopy").version
+version = linopy.__version__
26
release = "master" if "dev" in version else version
27
28
-# For some reason is this needed, otherwise autosummary does fail on RTD but not locally
29
-import linopy # noqa
30
-
31
# -- General configuration ---------------------------------------------------
32
33
# Add any Sphinx extension module names here, as strings. They can be
0 commit comments