[GRASS-git] [OSGeo/grass] 425d46: packaging: Update min Python version to 3.11 (#7684)
Vaclav Petras
noreply at github.com
Mon Jul 13 16:32:35 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 425d460918f26a35ff554c08798c9d8de3d70fad
https://github.com/OSGeo/grass/commit/425d460918f26a35ff554c08798c9d8de3d70fad
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2026-07-13 (Mon, 13 Jul 2026)
Changed paths:
M .github/workflows/pytest.yml
M .github/workflows/python-code-quality.yml
M REQUIREMENTS.md
M lib/init/grass.py
M pyproject.toml
M python/grass/script/setup.py
M utils/mkdocs.py
Log Message:
-----------
packaging: Update min Python version to 3.11 (#7684)
Python 3.10 receives security fixes only and reaches end of life in
October 2026, before the next release. Per RFC 8, raise the minimum
supported Python version from 3.10 to 3.11.
Update the version in REQUIREMENTS.md, pyproject.toml (requires-python,
Black, Pylint, Pyright, and isort) and CI (pytest matrix and
MIN_PYTHON_VERSION).
Update places in code which add code for the older version:
- utils/mkdocs.py: datetime.fromisoformat parses the Z suffix used by
recent Git natively since 3.11, so the fallback is no longer needed.
- Use the datetime.UTC alias added in 3.11. Ruff enables this check
(UP017) once it infers the higher target version from requires-python.
- Drop the toml extra for bandit. It provided a TOML parser for reading
the bandit configuration from pyproject.toml, which the standard
library covers since 3.11 with tomllib. Here the deciding version is
the one the workflow runs, which is well past 3.11 already.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list