1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Edward Betts <edward@4angle.com>
Date: Wed, 26 Feb 2025 08:42:50 -0500
Subject: Docs read version number from environment
---
docs/source/conf.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index ce3dae7..67c8ffc 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -5,14 +5,15 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
-import importlib
+
+import os
project = "datapoint-python"
copyright = "2024, Emily Price, Jacob Tomlinson"
author = "Emily Price, Jacob Tomlinson"
-release = importlib.metadata.version("datapoint")
-version = importlib.metadata.version("datapoint")
+release = os.environ["DEB_VERSION_UPSTREAM"]
+version = os.environ["DEB_VERSION_UPSTREAM"]
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|