The minimum version (3.6) is documented at https://gdal.org/development/dev_environment.html#build-requirements
The CI still has configurations using Ubuntu 18.04, which is using 3.6.9: docker run --rm ghcr.io/osgeo/gdal-deps:ubuntu_18.04-master python3 --version Dan On Tue, Jun 13, 2023 at 1:22 PM Kurt Schwehr <schw...@gmail.com> wrote: > Hi all, > > What is the minimum python version for the GDAL python bindings? This is > the only thing I found easily: > > find . -type f | grep -v git | xargs grep 3 | grep python_version > > cat autotest/requirements.txt > pytest>=6.0.0 > pytest-sugar<=0.9.6; python_version < '3.7' > pytest-sugar; python_version >= '3.7' > pytest-env > lxml > jsonschema > filelock > > I think the real answer is that it's 3.8 from what I see here: > > swig/python/osgeo/__init__.py > > # The following is a Sequence of tuples in the form of (gdal_version, > python_version). > # Each line represents the minimum supported Python version of a given > GDAL version. > # Introducing a new line for the next GDAL version will trigger a > deprecation warning > # when importing osgeo from a Python version which will not be > # supported in the next version of GDAL. > gdal_version_and_min_supported_python_version = ( > ((0, 0), (0, 0)), > ((1, 0), (2, 0)), > ((2, 0), (2, 7)), > ((3, 3), (3, 6)), > # ((3, 4), (3, 7)), > # ((3, 5), (3, 8)), > ) > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev