diff --git a/doc/conf.py b/doc/conf.py index 98fa423d..00f8c589 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,7 +15,7 @@ import sys import os -from importlib.metadata import version +from importlib import metadata sys.path.insert(0, os.path.abspath("..")) import uncertainties @@ -54,7 +54,7 @@ # The short X.Y version. version = "1" # The full version, including alpha/beta/rc tags. -release = version("uncertainties") +release = metadata.version(project) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.