X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2ae13c55837ab13396ad87119c00536f4c078d73..ca7b46511d41d67e229f758e638367c241815c11:/nominatim/version.py diff --git a/nominatim/version.py b/nominatim/version.py index 47fe3b30..88d42af9 100644 --- a/nominatim/version.py +++ b/nominatim/version.py @@ -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)