From 504b0c0ae0907500692dee921bc9a7f2d647bfaf Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Wed, 7 Aug 2024 15:44:27 +0200 Subject: [PATCH] MNT update docs version dynamically (#35) * MNT update docs version * Use moten --- docs/source/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index a85e9e3..088b878 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -24,7 +24,10 @@ author = 'Anwar O. Nunez-Elizalde' # The full version, including alpha/beta/rc tags -release = '0.0.3' +import moten # noqa +# The short X.Y version. +version = ".".join(moten.__version__.split(".")[:2]) +release = moten.__version__ # -- General configuration ---------------------------------------------------