From 2da0d6ad82bf9e372eef679fb2013c15cc23d3e5 Mon Sep 17 00:00:00 2001 From: Brian Sipos Date: Thu, 12 Sep 2024 11:05:00 -0400 Subject: [PATCH] Extract package version for docs --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 6edef1a..6d73d6c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. @@ -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