Patchwork D9189: automation: support running against Python 3.9

login
register
mail settings
Submitter phabricator
Date Oct. 9, 2020, 4:47 p.m.
Message ID <differential-rev-PHID-DREV-pw2a3wykddxfhgixjx32-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47425/
State Superseded
Headers show

Comments

phabricator - Oct. 9, 2020, 4:47 p.m.
indygreg created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9189

AFFECTED FILES
  contrib/automation/hgautomation/cli.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/automation/hgautomation/cli.py b/contrib/automation/hgautomation/cli.py
--- a/contrib/automation/hgautomation/cli.py
+++ b/contrib/automation/hgautomation/cli.py
@@ -158,7 +158,7 @@ 
 
         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"):
                 windows.purge_hg(winrm_client)
                 windows.build_wheel(
@@ -364,7 +364,7 @@ 
     sp.add_argument(
         '--python-version',
         help='Python version to build for',
-        choices={'2.7', '3.7', '3.8'},
+        choices={'2.7', '3.7', '3.8', '3.9'},
         nargs='*',
         default=['3.8'],
     )
@@ -476,7 +476,7 @@ 
     sp.add_argument(
         '--python-version',
         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',
     )
     sp.add_argument(