Mercurial > hg
changeset 51374:54a75576287a
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.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 02 Feb 2024 04:46:54 +0100 |
parents | 7d313b259169 |
children | 02e7d79edf62 |
files | tests/hghave.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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