Skip to content

Commit 3bdb58e

Browse files
committed
Fix VERSION dependency in docs/conf for sphinx build
1 parent c05cccb commit 3bdb58e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@
2121
from pathlib import Path
2222

2323
here = Path(__file__).absolute().parent
24-
version = (here.parent / 'VERSION').read_text().strip()
24+
2525

2626
# If extensions (or modules to document with autodoc) are in another directory,
2727
# add these directories to sys.path here. If the directory is relative to the
2828
# documentation root, use os.path.abspath to make it absolute, like shown here.
2929
sys.path.insert(0, os.path.abspath('..'))
3030

31+
from juju.version import CLIENT_VERSION
32+
version = CLIENT_VERSION
33+
3134
# -- General configuration ------------------------------------------------
3235

3336
# If your documentation needs a minimal Sphinx version, state it here.

0 commit comments

Comments
 (0)