Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/835066 )

Change subject: [tests] Drop Python 3.5 tests on appveyor
......................................................................

[tests] Drop Python 3.5 tests on appveyor

- remove Python 3.5 tests
- add Python 3.6.0 test
- remove one Python 3.10 test to decrease test time
- remove pip 21 installation
- change appveyor_install.ps1 to install 3.6.0

Bug:T301908
Change-Id: Icf3f4271c98210d494c4d74ea2565902f13a4bec
---
M .appveyor.yml
M appveyor_install.ps1
2 files changed, 6 insertions(+), 14 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved



diff --git a/.appveyor.yml b/.appveyor.yml
index b86e7f1..3d1cc5c 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -16,15 +16,12 @@

     # Test the lowest supported release of each major Python version

-    - PYTHON: "C:\\Python353-x64"
-      PYTHON_VERSION: "3.5.3"
-      PYTHON_ARCH: "64"
+    - PYTHON: "C:\\Python360-x64"
+      PYTHON_VERSION: "3.6.0"
+      PYTHON_ARCH: "32"

     # Appveyor pre-installs these versions onto build machines

-    - PYTHON: "C:\\Python35"
-      PYTHON_VERSION: "3.5.x"
-      PYTHON_ARCH: "32"

     - PYTHON: "C:\\Python36-x64"
       PYTHON_VERSION: "3.6.x"
@@ -42,10 +39,6 @@
       PYTHON_VERSION: "3.9.x"
       PYTHON_ARCH: "32"

-    - PYTHON: "C:\\Python310"
-      PYTHON_VERSION: "3.10.x"
-      PYTHON_ARCH: "32"
-
     - PYTHON: "C:\\Python310-x64"
       PYTHON_VERSION: "3.10.x"
       PYTHON_ARCH: "64"
@@ -61,7 +54,7 @@
   - git submodule update --init
   # Download the Appveyor Python build accessories into subdirectory .\appveyor
   - mkdir appveyor
-  # Download Python 3.5.3 which isn't pre-installed
+  # Download Python 3.6.0 which isn't pre-installed
   - ps: ./appveyor_install.ps1
   - python --version
   - python -c "import struct; print('PYTHON_ARCH' + chr(58), 
struct.calcsize('P') << 3)"
diff --git a/appveyor_install.ps1 b/appveyor_install.ps1
index 00c01f4..41e421a 100644
--- a/appveyor_install.ps1
+++ b/appveyor_install.ps1
@@ -60,7 +60,7 @@
 function DownloadPython ($python_version, $platform_suffix) {
     $major, $minor, $micro, $prerelease = ParsePythonVersion $python_version

-    # Only Python 3.5.3+ is supported
+    # Only Python 3.6.0+ is supported
     $dir = "$major.$minor.$micro"
     $ext = "exe"
     if ($platform_suffix) {
@@ -115,7 +115,6 @@
     RunCommand $unexepath $uninstall_args
     $install_args = "/log $install_log /quiet InstallAllUsers=1 
TargetDir=$python_home\"
     RunCommand $exepath $install_args
-    RunCommand "python" '-m pip install -U "pip<21"'
 }


@@ -126,7 +125,7 @@


 function main () {
-    if ($env:PYTHON_VERSION -eq "3.5.3") {
+    if ($env:PYTHON_VERSION -eq "3.6.0") {
         InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
     }
 }

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/835066
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Icf3f4271c98210d494c4d74ea2565902f13a4bec
Gerrit-Change-Number: 835066
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to