X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4da4cbfe27a576ae011430b2de205c74435e241b..f960a9bf7fd1702b3d66995dd69307bd91d61a08:/src/nominatim_db/version.py?ds=sidebyside diff --git a/src/nominatim_db/version.py b/src/nominatim_db/version.py index 70e1ac14..8cc8e4fe 100644 --- a/src/nominatim_db/version.py +++ b/src/nominatim_db/version.py @@ -31,7 +31,7 @@ class NominatimVersion(NamedTuple): 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: @@ -47,6 +47,7 @@ class NominatimVersion(NamedTuple): 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 @@ -57,10 +58,11 @@ def parse_version(version: str) -> NominatimVersion: 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'.