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.
| pulkit |
| hg-reviewers |
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.
| No Linters Available |
| No Unit Test Coverage |
| with aws.temporary_windows_dev_instances(c, image, 't3.medium') as insts: | with aws.temporary_windows_dev_instances(c, image, 't3.medium') as insts: | ||||
| instance = insts[0] | instance = insts[0] | ||||
| winrm_client = instance.winrm_client | winrm_client = instance.winrm_client | ||||
| windows.synchronize_hg(SOURCE_ROOT, revision, instance) | windows.synchronize_hg(SOURCE_ROOT, revision, instance) | ||||
| for py_version in ("2.7", "3.7", "3.8"): | for py_version in ("2.7", "3.7", "3.8", "3.9"): | ||||
| for arch in ("x86", "x64"): | for arch in ("x86", "x64"): | ||||
| windows.purge_hg(winrm_client) | windows.purge_hg(winrm_client) | ||||
| windows.build_wheel( | windows.build_wheel( | ||||
| winrm_client, | winrm_client, | ||||
| python_version=py_version, | python_version=py_version, | ||||
| arch=arch, | arch=arch, | ||||
| dest_path=DIST_PATH, | dest_path=DIST_PATH, | ||||
| ) | ) | ||||
| sp.set_defaults(func=build_inno) | sp.set_defaults(func=build_inno) | ||||
| sp = subparsers.add_parser( | sp = subparsers.add_parser( | ||||
| 'build-windows-wheel', help='Build Windows wheel(s)', | 'build-windows-wheel', help='Build Windows wheel(s)', | ||||
| ) | ) | ||||
| sp.add_argument( | sp.add_argument( | ||||
| '--python-version', | '--python-version', | ||||
| help='Python version to build for', | help='Python version to build for', | ||||
| choices={'2.7', '3.7', '3.8'}, | choices={'2.7', '3.7', '3.8', '3.9'}, | ||||
| nargs='*', | nargs='*', | ||||
| default=['3.8'], | default=['3.8'], | ||||
| ) | ) | ||||
| sp.add_argument( | sp.add_argument( | ||||
| '--arch', | '--arch', | ||||
| help='Architecture to build for', | help='Architecture to build for', | ||||
| choices={'x86', 'x64'}, | choices={'x86', 'x64'}, | ||||
| nargs='*', | nargs='*', | ||||
| 'run-tests-windows', help='Run tests on Windows', | 'run-tests-windows', help='Run tests on Windows', | ||||
| ) | ) | ||||
| sp.add_argument( | sp.add_argument( | ||||
| '--instance-type', help='EC2 instance type to use', default='t3.medium', | '--instance-type', help='EC2 instance type to use', default='t3.medium', | ||||
| ) | ) | ||||
| sp.add_argument( | sp.add_argument( | ||||
| '--python-version', | '--python-version', | ||||
| help='Python version to use', | help='Python version to use', | ||||
| choices={'2.7', '3.5', '3.6', '3.7', '3.8'}, | choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9'}, | ||||
| default='2.7', | default='2.7', | ||||
| ) | ) | ||||
| sp.add_argument( | sp.add_argument( | ||||
| '--arch', | '--arch', | ||||
| help='Architecture to test', | help='Architecture to test', | ||||
| choices={'x86', 'x64'}, | choices={'x86', 'x64'}, | ||||
| default='x64', | default='x64', | ||||
| ) | ) | ||||