major: int
minor: int
patch_level: int
- db_patch_level: Optional[int]
+ db_patch_level: int
def __str__(self) -> str:
if self.db_patch_level is None:
return f"{self.major}.{self.minor}.{self.patch_level}"
+
def parse_version(version: str) -> NominatimVersion:
""" Parse a version string into a version consisting of a tuple of
four ints: major, minor, patch level, database patch level
return NominatimVersion(*[int(x) for x in parts[:2] + parts[2].split('-')])
-NOMINATIM_VERSION = parse_version('4.4.99-1')
+NOMINATIM_VERSION = parse_version('4.5.0-0')
POSTGRESQL_REQUIRED_VERSION = (9, 6)
POSTGIS_REQUIRED_VERSION = (2, 2)
+OSM2PGSQL_REQUIRED_VERSION = (1, 8)
# Cmake sets a variable @GIT_HASH@ by executing 'git --log'. It is not run
# on every execution of 'make'.