From 26def20bf14c5d38a2ddda58bf03e17556021e1a Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 23 Sep 2024 11:56:40 +0200 Subject: [PATCH] Add LDAPAuthenticator.version_info --- ldapauthenticator/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldapauthenticator/__init__.py b/ldapauthenticator/__init__.py index 68641d9..b2ba1ac 100644 --- a/ldapauthenticator/__init__.py +++ b/ldapauthenticator/__init__.py @@ -4,3 +4,6 @@ # pyproject.toml, according to instructions in RELEASE.md. # __version__ = "2.0.0b1" + +# version_info looks like (1, 2, 3, "dev") if __version__ is 1.2.3.dev +version_info = tuple(int(p) if p.isdigit() else p for p in __version__.split("."))