]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/version.py
add a function to return a formatted version
[nominatim.git] / nominatim / version.py
index 47fe3b309e8f2ccab217f54faad430b2cbaff8ff..d4f69da14ff149d57dcec7d77fef82d8360df69e 100644 (file)
@@ -34,3 +34,11 @@ POSTGIS_REQUIRED_VERSION = (2, 2)
 # cmake/tool-installed.tmpl is used to build the binary 'nominatim'. Inside
 # there is a call to set the variable value below.
 GIT_COMMIT_HASH = None
+
+
+# pylint: disable=consider-using-f-string
+def version_str():
+    """
+    Return a human-readable string of the version.
+    """
+    return '{}.{}.{}-{}'.format(*NOMINATIM_VERSION)