| |
@@ -13,7 +13,7 @@
|
| |
# serve to show the default.
|
| |
|
| |
#import sys
|
| |
- #import os
|
| |
+ import os
|
| |
|
| |
# If extensions (or modules to document with autodoc) are in another directory,
|
| |
# add these directories to sys.path here. If the directory is relative to the
|
| |
@@ -53,10 +53,11 @@
|
| |
# |version| and |release|, also used in various other places throughout the
|
| |
# built documents.
|
| |
#
|
| |
+ exec(open(os.path.join(os.path.dirname(__file__), '../../koji/_version.py'), 'rt').read())
|
| |
# The short X.Y version.
|
| |
- version = '1.22'
|
| |
+ version = '%d.%d' % locals()['__version_info__'][:2]
|
| |
# The full version, including alpha/beta/rc tags.
|
| |
- release = '1.22.1'
|
| |
+ release = locals()['__version__']
|
| |
|
| |
# The language for content autogenerated by Sphinx. Refer to documentation
|
| |
# for a list of supported languages.
|
| |
Fixes: https://pagure.io/koji/issue/2430