From bfda77fb21b05bbc102773f34dbca337c809a1ff Mon Sep 17 00:00:00 2001 From: Fabian Gebhart <16943048+fgebhart@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:24:59 +0100 Subject: [PATCH] build: avoid importing entire repo for building read the docs (#190) --- docs/source/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index d2ac6be..a8bd3c6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -2,8 +2,7 @@ # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html - -import aleph_alpha_client +import importlib.metadata # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -11,7 +10,7 @@ project = "aleph-alpha-client" copyright = "2022, Aleph Alpha" author = "Aleph Alpha" -version = aleph_alpha_client.__version__ +version = importlib.metadata.version("aleph-alpha-client") # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration