diff -r 5c8148cd7f13 -r d7e064d509a0 contrib/automation/hgautomation/cli.py --- a/contrib/automation/hgautomation/cli.py Sat Feb 19 18:18:35 2022 -0700 +++ b/contrib/automation/hgautomation/cli.py Sat Feb 19 18:42:31 2022 -0700 @@ -158,7 +158,7 @@ windows.synchronize_hg(SOURCE_ROOT, revision, instance) - for py_version in ("2.7", "3.7", "3.8", "3.9", "3.10"): + for py_version in ("3.7", "3.8", "3.9", "3.10"): for arch in ("x86", "x64"): windows.purge_hg(winrm_client) windows.build_wheel( @@ -342,7 +342,7 @@ sp.add_argument( '--python-version', help='Which version of Python to target', - choices={2, 3}, + choices={3}, type=int, nargs='*', default=[3], @@ -377,7 +377,7 @@ sp.add_argument( '--python-version', help='Python version to build for', - choices={'2.7', '3.7', '3.8', '3.9', '3.10'}, + choices={'3.7', '3.8', '3.9', '3.10'}, nargs='*', default=['3.8'], ) @@ -404,7 +404,7 @@ sp.add_argument( '--python-version', help='Which version of Python to target', - choices={2, 3}, + choices={3}, type=int, nargs='*', default=[3], @@ -499,8 +499,8 @@ sp.add_argument( '--python-version', help='Python version to use', - choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'}, - default='2.7', + choices={'3.5', '3.6', '3.7', '3.8', '3.9', '3.10'}, + default='3.9', ) sp.add_argument( '--arch',