Mercurial > libervia-web
changeset 1537:c2569408fa35
doc: fix version retrieval
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2023 10:05:15 +0200 |
parents | dc81403a5b2f |
children | 8d61654cb34f |
files | doc/conf.py |
diffstat | 1 files changed, 2 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/conf.py Wed Jun 28 10:05:13 2023 +0200 +++ b/doc/conf.py Wed Jun 28 10:05:15 2023 +0200 @@ -15,8 +15,7 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) -import os.path -import re +from libervia.web import __version__ # -- Project information ----------------------------------------------------- @@ -25,16 +24,7 @@ copyright = u'2019-2023 Jérôme Poisson' author = u'Jérôme Poisson' -doc_dir = os.path.dirname(os.path.abspath(__file__)) -version_path = os.path.join(doc_dir, '../libervia/web/VERSION') -with open(version_path) as f: - version_full = f.read() - -# The short X.Y version -version = re.match(r'[0-9.]+', version_full).group() - -# The full version, including alpha/beta/rc tags -release = version_full +version = __version__ # -- General configuration ---------------------------------------------------