Skip to content

Commit

Permalink
Doc: Get the version from the Python module
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Nov 27, 2017
1 parent e34bd6b commit 849f366
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
# Import fake `_ldap` module
import fake_ldap_module_for_documentation

# Now ldap can be used normally
from ldap import __version__

# General configuration
# ---------------------

Expand All @@ -47,9 +50,9 @@
# other places throughout the built documents.
#
# The short X.Y version.
version = '2.5'
version = '.'.join(__version__.split('.')[:2])
# The full version, including alpha/beta/rc tags.
release = '2.5.2.0'
release = __version__

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down

0 comments on commit 849f366

Please sign in to comment.