Skip to content

Commit e9de33c

Browse files
[doc] Fix the short version in the sphinx configuration (#6640)
Co-authored-by: Pierre Sassoulas <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
1 parent fddaeeb commit e9de33c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/conf.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
import sys
99
from datetime import datetime
1010

11-
# The version info for the project you're documenting, acts as replacement for
12-
# |version| and |release|, also used in various other places throughout the
13-
# built documents.
14-
#
15-
# The short X.Y version.
1611
from pylint import __version__
12+
from pylint.__pkginfo__ import numversion
1713

1814
# Pylint documentation build configuration file, created by
1915
# sphinx-quickstart on Thu Apr 4 20:31:25 2013.
@@ -74,6 +70,11 @@
7470
current_year = datetime.utcnow().year
7571
copyright = f"2003-{current_year}, Logilab, PyCQA and contributors" # pylint: disable=redefined-builtin
7672

73+
# The version info for the project you're documenting, acts as replacement for
74+
# |version| and |release|, also used in various other places throughout the
75+
# built documents.
76+
# The short X.Y version.
77+
version = f"{numversion[0]}.{numversion[1]}"
7778
# The full version, including alpha/beta/rc tags.
7879
release = __version__
7980

0 commit comments

Comments
 (0)