contrib/automation/hgautomation/cli.py
changeset 48846 d7e064d509a0
parent 48845 5c8148cd7f13
child 48847 4561ec90d3c1
equal deleted inserted replaced
48845:5c8148cd7f13 48846:d7e064d509a0
   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", "3.10"):
   161         for py_version in ("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,
   340         help='Build Inno Setup installer(s)',
   340         help='Build Inno Setup installer(s)',
   341     )
   341     )
   342     sp.add_argument(
   342     sp.add_argument(
   343         '--python-version',
   343         '--python-version',
   344         help='Which version of Python to target',
   344         help='Which version of Python to target',
   345         choices={2, 3},
   345         choices={3},
   346         type=int,
   346         type=int,
   347         nargs='*',
   347         nargs='*',
   348         default=[3],
   348         default=[3],
   349     )
   349     )
   350     sp.add_argument(
   350     sp.add_argument(
   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', '3.10'},
   380         choices={'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',
   402 
   402 
   403     sp = subparsers.add_parser('build-wix', help='Build WiX installer(s)')
   403     sp = subparsers.add_parser('build-wix', help='Build WiX installer(s)')
   404     sp.add_argument(
   404     sp.add_argument(
   405         '--python-version',
   405         '--python-version',
   406         help='Which version of Python to target',
   406         help='Which version of Python to target',
   407         choices={2, 3},
   407         choices={3},
   408         type=int,
   408         type=int,
   409         nargs='*',
   409         nargs='*',
   410         default=[3],
   410         default=[3],
   411     )
   411     )
   412     sp.add_argument(
   412     sp.add_argument(
   497         default='m6i.large',
   497         default='m6i.large',
   498     )
   498     )
   499     sp.add_argument(
   499     sp.add_argument(
   500         '--python-version',
   500         '--python-version',
   501         help='Python version to use',
   501         help='Python version to use',
   502         choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'},
   502         choices={'3.5', '3.6', '3.7', '3.8', '3.9', '3.10'},
   503         default='2.7',
   503         default='3.9',
   504     )
   504     )
   505     sp.add_argument(
   505     sp.add_argument(
   506         '--arch',
   506         '--arch',
   507         help='Architecture to test',
   507         help='Architecture to test',
   508         choices={'x86', 'x64'},
   508         choices={'x86', 'x64'},