Skip to content

Commit 96463e2

Browse files
committed
Doc: Get the version from the Python module
1 parent 6b5a88b commit 96463e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
# Import fake `_ldap` module
2424
import fake_ldap_module_for_documentation
2525

26+
# Now ldap can be used normally
27+
from ldap import __version__
28+
2629
# General configuration
2730
# ---------------------
2831

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy