Skip to content

Commit 4961c6c

Browse files
committed
Merge pull request #350 from deejay1/fix_sphinx_versioning
Automatically generate the version number for docs
2 parents bbf581e + ef6718d commit 4961c6c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ def __getattr__(self, name):
6363
# |version| and |release|, also used in various other places throughout the
6464
# built documents.
6565
#
66-
# The short X.Y version.
67-
version = '2.0'
6866
# The full version, including alpha/beta/rc tags.
69-
release = '2.0.1'
67+
from kazoo import version
68+
release = version.__version__
69+
70+
# The short X.Y version.
71+
version = '.'.join(release.split('.')[:-1])
7072

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

0 commit comments

Comments
 (0)