hghave: add py312 and py313
While not required in the core test suite in the moment, these could be useful
in the future or for extensions. For example, Python 3.12 removed distutils and
it might make sense to differentiate based on that.
--- a/tests/hghave.py Fri Feb 02 04:23:07 2024 +0100
+++ b/tests/hghave.py Fri Feb 02 04:46:54 2024 +0100
@@ -868,7 +868,11 @@
# Add "py36", "py37", ... as possible feature checks. Note that there's no
# punctuation here.
-@checkvers("py", "Python >= %s", ('3.6', '3.7', '3.8', '3.9', '3.10', '3.11'))
+@checkvers(
+ "py",
+ "Python >= %s",
+ ('3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'),
+)
def has_python_range(v):
major, minor = v.split('.')[0:2]
py_major, py_minor = sys.version_info.major, sys.version_info.minor