From 405c16efb3932587801b7ef2e17fba5607b1abaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20=C8=98tefan=20Ciocan?= <57830279+cosminc98@users.noreply.github.com> Date: Tue, 23 Jan 2024 22:58:56 +0000 Subject: [PATCH] Update documentation config to automatically import the current version of the package --- docs/source/conf.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 665059c..2e5d3b3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -6,11 +6,18 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import os +import sys + +sys.path.append(os.path.join("..", "..")) +from nvcc4jupyter.__init__ import __version__ # noqa: E402 + project = "nvcc4jupyter" copyright = "2024, Andrei Nechaev & Cosmin Stefan Ciocan" author = "Andrei Nechaev & Cosmin Stefan Ciocan" -release = "1.0.1" -version = "1.0.1" +release = __version__ +version = __version__ + # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration