X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/821dabb138b78be6fd776ab047b024d319805012..a6dab5e300de9c5664f714eb2c9290d18f01067f:/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)