]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/version.py
introduce and use analyzer for postcodes
[nominatim.git] / nominatim / version.py
index 47fe3b309e8f2ccab217f54faad430b2cbaff8ff..88d42af923f01e6bd812fa5b842a7b7988616551 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(version=NOMINATIM_VERSION):
+    """
+    Return a human-readable string of the version.
+    """
+    return '{}.{}.{}-{}'.format(*version)