Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Extract package version for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos committed Sep 12, 2024
1 parent 1b0feb9 commit 2da0d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#
import os
import sys
from pkg_resources import get_distribution

sys.path.insert(0, os.path.abspath('../src/'))

# Configuration file for the Sphinx documentation builder.
Expand All @@ -34,7 +36,7 @@
project = 'CAmp'
copyright = '2022, The Johns Hopkins University Applied Physics Laboratory'
author = 'JHU/APL'
release = '2.0.0'
release = get_distribution('anms-camp').version

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down

0 comments on commit 2da0d6a

Please sign in to comment.