X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2ae13c55837ab13396ad87119c00536f4c078d73..19f67e167cf7c58ebb551ae56639a6184ee6861f:/nominatim/version.py?ds=sidebyside 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)