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])