aboutsummaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 47f1bac..762f67c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,7 @@
#
import os
import sys
+from importlib.metadata import version as get_version
sys.path.insert(0, os.path.abspath('../notebook/'))
@@ -25,10 +26,9 @@ author = 'Jan Jancar'
sys.path.append(os.path.abspath('..'))
-# The short X.Y version
-version = '0.3.2'
-# The full version, including alpha/beta/rc tags
-release = '0.3.2'
+release: str = get_version("pyecsca")
+# for example take major/minor
+version: str = ".".join(release.split('.')[:2])
# -- General configuration ---------------------------------------------------