# HG changeset patch # User Manuel Jacob # Date 2024-02-02 03:46:54 # Node ID 54a75576287aa6a7cf41d98704c41b2b093bb29b # Parent 7d313b259169184631b049c20f0afbf50f02dd10 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. diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -868,7 +868,11 @@ def has_demandimport(): # 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