Skip to content

Commit 59173ce

Browse files
author
Gauvain Pocentek
committed
sphinx: don't hardcode the version in conf.py
1 parent d2e5700 commit 59173ce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/conf.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515

1616
from __future__ import unicode_literals
1717

18-
import sys
1918
import os
19+
import sys
20+
2021
import sphinx
2122

23+
import gitlab
24+
2225
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
2326

2427
if sphinx.version_info < (1,3,):
@@ -64,9 +67,9 @@
6467
# built documents.
6568
#
6669
# The short X.Y version.
67-
version = '0.8'
70+
version = gitlab.__version__
6871
# The full version, including alpha/beta/rc tags.
69-
release = '0.8'
72+
release = version
7073

7174
# The language for content autogenerated by Sphinx. Refer to documentation
7275
# for a list of supported languages.

0 commit comments

Comments
 (0)