comparison 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
comparison
equal deleted inserted replaced
48404:8ec4e8d7bbe6 48405:fc1ba19ec4a0
156 156
157 winrm_client = instance.winrm_client 157 winrm_client = instance.winrm_client
158 158
159 windows.synchronize_hg(SOURCE_ROOT, revision, instance) 159 windows.synchronize_hg(SOURCE_ROOT, revision, instance)
160 160
161 for py_version in ("2.7", "3.7", "3.8", "3.9"): 161 for py_version in ("2.7", "3.7", "3.8", "3.9", "3.10"):
162 for arch in ("x86", "x64"): 162 for arch in ("x86", "x64"):
163 windows.purge_hg(winrm_client) 163 windows.purge_hg(winrm_client)
164 windows.build_wheel( 164 windows.build_wheel(
165 winrm_client, 165 winrm_client,
166 python_version=py_version, 166 python_version=py_version,
375 help='Build Windows wheel(s)', 375 help='Build Windows wheel(s)',
376 ) 376 )
377 sp.add_argument( 377 sp.add_argument(
378 '--python-version', 378 '--python-version',
379 help='Python version to build for', 379 help='Python version to build for',
380 choices={'2.7', '3.7', '3.8', '3.9'}, 380 choices={'2.7', '3.7', '3.8', '3.9', '3.10'},
381 nargs='*', 381 nargs='*',
382 default=['3.8'], 382 default=['3.8'],
383 ) 383 )
384 sp.add_argument( 384 sp.add_argument(
385 '--arch', 385 '--arch',
499 default='t3.medium', 499 default='t3.medium',
500 ) 500 )
501 sp.add_argument( 501 sp.add_argument(
502 '--python-version', 502 '--python-version',
503 help='Python version to use', 503 help='Python version to use',
504 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9'}, 504 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'},
505 default='2.7', 505 default='2.7',
506 ) 506 )
507 sp.add_argument( 507 sp.add_argument(
508 '--arch', 508 '--arch',
509 help='Architecture to test', 509 help='Architecture to test',