jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/663157 )

Change subject: [tests] Update pip to version < 21 for Python 3.5.0 only
......................................................................

[tests] Update pip to version < 21 for Python 3.5.0 only

Bug: T273367
Change-Id: Ibb9bc280ee6f5d7161210cc3ac293f96c3c6f3e2
---
M .appveyor.yml
M appveyor_install.ps1
2 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.appveyor.yml b/.appveyor.yml
index 24e03d2..e5bad85 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -68,17 +68,16 @@

 init:
   - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
-  - "ECHO %APPVEYOR_SCHEDULED_BUILD%"
   - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

 install:
   - git submodule update --init
   # Download the Appveyor Python build accessories into subdirectory .\appveyor
   - mkdir appveyor
-  # Download Python version which isn't pre-installed
+  # Download Python 3.5.0 which isn't pre-installed
   - ps: ./appveyor_install.ps1
   - python --version
-  - python -m pip install --upgrade pip
+  - python -c "import struct; print('PYTHON_ARCH' + chr(58), 
struct.calcsize('P') << 3)"
   - pip --version
   - pip install -r requirements.txt
   - pip install -r dev-requirements.txt
diff --git a/appveyor_install.ps1 b/appveyor_install.ps1
index c46d449..01c168e 100644
--- a/appveyor_install.ps1
+++ b/appveyor_install.ps1
@@ -115,6 +115,7 @@
     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"'
 }



--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/663157
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: Ibb9bc280ee6f5d7161210cc3ac293f96c3c6f3e2
Gerrit-Change-Number: 663157
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to