diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-05-18 10:09:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 10:09:06 +0200 |
commit | e9de33c37acf3afcc4a6acf5ec4d72810ad8dcab (patch) | |
tree | 0e0720d1a9f03816ceb9a4aa4e3f990ceacdc80f /doc/conf.py | |
parent | fddaeebae0d21e192da210d13b75e06042953572 (diff) | |
download | pylint-git-e9de33c37acf3afcc4a6acf5ec4d72810ad8dcab.tar.gz |
[doc] Fix the short version in the sphinx configuration (#6640)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/conf.py b/doc/conf.py index 8561cc3bf..63bb99976 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -8,12 +8,8 @@ import os import sys from datetime import datetime -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. from pylint import __version__ +from pylint.__pkginfo__ import numversion # Pylint documentation build configuration file, created by # sphinx-quickstart on Thu Apr 4 20:31:25 2013. @@ -74,6 +70,11 @@ project = "Pylint" current_year = datetime.utcnow().year copyright = f"2003-{current_year}, Logilab, PyCQA and contributors" # pylint: disable=redefined-builtin +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# The short X.Y version. +version = f"{numversion[0]}.{numversion[1]}" # The full version, including alpha/beta/rc tags. release = __version__ |