Mercurial > public > mercurial-scm > hg-stable
diff contrib/automation/hgautomation/cli.py @ 48405:fc1ba19ec4a0
automation: support Python 3.10 on Windows
Python 3.10 is out and we should support it. This commit teaches the
automation code to install and support building for Python 3.10.
Differential Revision: https://phab.mercurial-scm.org/D11776
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 23 Nov 2021 17:52:38 -0800 |
parents | 89a2afe31e82 |
children | 834c938227c6 |
line wrap: on
line diff
--- a/contrib/automation/hgautomation/cli.py Mon Nov 15 20:10:50 2021 -0800 +++ b/contrib/automation/hgautomation/cli.py Tue Nov 23 17:52:38 2021 -0800 @@ -158,7 +158,7 @@ windows.synchronize_hg(SOURCE_ROOT, revision, instance) - for py_version in ("2.7", "3.7", "3.8", "3.9"): + for py_version in ("2.7", "3.7", "3.8", "3.9", "3.10"): for arch in ("x86", "x64"): windows.purge_hg(winrm_client) windows.build_wheel( @@ -377,7 +377,7 @@ sp.add_argument( '--python-version', help='Python version to build for', - choices={'2.7', '3.7', '3.8', '3.9'}, + choices={'2.7', '3.7', '3.8', '3.9', '3.10'}, nargs='*', default=['3.8'], ) @@ -501,7 +501,7 @@ sp.add_argument( '--python-version', help='Python version to use', - choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9'}, + choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'}, default='2.7', ) sp.add_argument(