X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..f52212abbd21d5139e893b53d75fff5a17893010:/src/nominatim_db/version.py?ds=sidebyside diff --git a/src/nominatim_db/version.py b/src/nominatim_db/version.py index 70e1ac14..588a31c8 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 @@ -61,6 +62,7 @@ NOMINATIM_VERSION = parse_version('4.4.99-1') 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'.