Skip to content

Commit

Permalink
doc/source/conf.py: consider 3.10.0 and 3.10.0beta1 as close enough t…
Browse files Browse the repository at this point in the history
…o not trigger a warning
  • Loading branch information
rouault committed Oct 16, 2024
1 parent 323b921 commit 394cea3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 394cea3

Please sign in to comment.