]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/version.py
add Python package configuration
[nominatim.git] / nominatim / version.py
index 95420b341f33f6c8dd3a2a95efd20b06ec785b29..2ece2d795ab90112f64b9c4ad3dc7a4999b4cb7d 100644 (file)
@@ -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 __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, 3, 0, 0)
+            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)
 
 POSTGRESQL_REQUIRED_VERSION = (9, 6)
 POSTGIS_REQUIRED_VERSION = (2, 2)