]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/version.py
add Python package configuration
[nominatim.git] / nominatim / version.py
index 9ef22a8792426a18abea2c5cab5c83047051ad84..2ece2d795ab90112f64b9c4ad3dc7a4999b4cb7d 100644 (file)
@@ -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)