Mercurial > public > mercurial-scm > hg-stable
comparison contrib/automation/hgautomation/cli.py @ 45693:64a9423450ef
automation: support running against Python 3.9
We just added CPython 3.9.0 to the automation environment. Let's
support actions targeting it.
One side-effect of this change is that we'll produce Windows wheels
for Python 3.9 by default. This is desirable.
Differential Revision: https://phab.mercurial-scm.org/D9189
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 09 Oct 2020 09:46:03 -0700 |
parents | 5e788dc7fb5d |
children | 89a2afe31e82 |
comparison
equal
deleted
inserted
replaced
45692:9934920af5f7 | 45693:64a9423450ef |
---|---|
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"): | 161 for py_version in ("2.7", "3.7", "3.8", "3.9"): |
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, |
362 'build-windows-wheel', help='Build Windows wheel(s)', | 362 'build-windows-wheel', help='Build Windows wheel(s)', |
363 ) | 363 ) |
364 sp.add_argument( | 364 sp.add_argument( |
365 '--python-version', | 365 '--python-version', |
366 help='Python version to build for', | 366 help='Python version to build for', |
367 choices={'2.7', '3.7', '3.8'}, | 367 choices={'2.7', '3.7', '3.8', '3.9'}, |
368 nargs='*', | 368 nargs='*', |
369 default=['3.8'], | 369 default=['3.8'], |
370 ) | 370 ) |
371 sp.add_argument( | 371 sp.add_argument( |
372 '--arch', | 372 '--arch', |
474 '--instance-type', help='EC2 instance type to use', default='t3.medium', | 474 '--instance-type', help='EC2 instance type to use', default='t3.medium', |
475 ) | 475 ) |
476 sp.add_argument( | 476 sp.add_argument( |
477 '--python-version', | 477 '--python-version', |
478 help='Python version to use', | 478 help='Python version to use', |
479 choices={'2.7', '3.5', '3.6', '3.7', '3.8'}, | 479 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9'}, |
480 default='2.7', | 480 default='2.7', |
481 ) | 481 ) |
482 sp.add_argument( | 482 sp.add_argument( |
483 '--arch', | 483 '--arch', |
484 help='Architecture to test', | 484 help='Architecture to test', |