From 394cea38dd5614b1079f6bd4ba699b0924e0aee2 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 16 Oct 2024 09:22:08 +0200 Subject: [PATCH] doc/source/conf.py: consider 3.10.0 and 3.10.0beta1 as close enough to not trigger a warning --- doc/source/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 871838708f52..8be1263d063f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -43,9 +43,10 @@ doc_version = open(version_file).read().strip() gdal_version = gdal.__version__ gdal_version_stripped = gdal_version - pos_dev = gdal_version_stripped.find("dev") - if pos_dev > 0: - gdal_version_stripped = gdal_version_stripped[0:pos_dev] + for suffix in ["dev", "beta"]: + pos_suffix = gdal_version_stripped.find(suffix) + if pos_suffix > 0: + gdal_version_stripped = gdal_version_stripped[0:pos_suffix] if doc_version.strip() != gdal_version_stripped: logger.warn(