X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8ed096f938e27cc814a446dcc15682ceb3bd5e9e..0fb4fe8e4df63fd09704ca0752ed4248dab11ecd:/nominatim/version.py diff --git a/nominatim/version.py b/nominatim/version.py index 346af5eb..2ece2d79 100644 --- a/nominatim/version.py +++ b/nominatim/version.py @@ -2,7 +2,7 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2022 by the Nominatim developer community. +# Copyright (C) 2023 by the Nominatim developer community. # For a full list of authors see the git log. """ Version information for Nominatim. @@ -33,8 +33,14 @@ 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. -NOMINATIM_VERSION = NominatimVersion(4, 2, 99, 1) + 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) POSTGRESQL_REQUIRED_VERSION = (9, 6) POSTGIS_REQUIRED_VERSION = (2, 2)