X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b0067a0345c2ab7793614925d6150141ef5f18f0..0fb4fe8e4df63fd09704ca0752ed4248dab11ecd:/nominatim/version.py?ds=sidebyside diff --git a/nominatim/version.py b/nominatim/version.py index 9ef22a87..2ece2d79 100644 --- a/nominatim/version.py +++ b/nominatim/version.py @@ -33,6 +33,12 @@ class NominatimVersion(NamedTuple): def __str__(self) -> str: return f"{self.major}.{self.minor}.{self.patch_level}-{self.db_patch_level}" + def release_version(self) -> str: + """ Return the release version in semantic versioning format. + + The release version does not include the database patch version. + """ + return f"{self.major}.{self.minor}.{self.patch_level}" NOMINATIM_VERSION = NominatimVersion(4, 4, 99, 1)