diff --git a/docs/source/conf.py b/docs/source/conf.py index 98761a23d..35ab9ed77 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -2,6 +2,7 @@ # alot documentation build configuration file import pathlib import tomllib +import importlib.metadata pyproject = pathlib.Path(__file__).parent.parent.parent / "pyproject.toml" with pyproject.open("rb") as f: @@ -54,9 +55,9 @@ # built documents. # # The short X.Y version. -version = project_data["version"] +version = importlib.metadata.version("alot") # The full version, including alpha/beta/rc tags. -release = project_data["version"] +release = importlib.metadata.version("alot") # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.