From 6fcde1cec718dc4250d1e080670b6186eb7db70a Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Mon, 25 Nov 2024 11:29:52 +0000 Subject: [PATCH] Fix version in docs --- docs/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 667126f..a2e86bb 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -10,6 +10,7 @@ # serve to show the default. import contextlib +import importlib.metadata import os import sys import time @@ -76,7 +77,7 @@ # built documents. # # The full version, including alpha/beta/rc tags. -release = aiida_test_cache.__version__ +release = importlib.metadata.version(aiida_test_cache) # The short X.Y version. version = '.'.join(release.split('.')[:2])