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

Change subject: [fix] Add mandatory dependencies to workflows
......................................................................

[fix] Add mandatory dependencies to workflows

Bug: T354325
Change-Id: I6eb73b94cf9ea56196262002d9c908b58110b047
---
M README.rst
M .github/workflows/doctest.yml
M .github/workflows/oauth_tests-ci.yml
M .github/workflows/login_tests-ci.yml
4 files changed, 28 insertions(+), 11 deletions(-)

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




diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index 335addd..496cc31 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -52,12 +52,14 @@
       run: |
         python -m pip install --upgrade pip
         pip --version
-        pip install -U setuptools
-        pip install pytest
-        pip install "sseclient<0.0.23,>=0.0.18"
-        pip install mwparserfromhell
-        pip install "PyMySQL >= 0.9.3"
         pip install coverage
+        pip install "importlib_metadata ; python_version < '3.8'"
+        pip install mwparserfromhell
+        pip install packaging
+        pip install "PyMySQL >= 1.0.0"
+        pip install pytest
+        pip install -U setuptools
+        pip install "sseclient<0.0.23,>=0.0.18"
         python -c "import setuptools; print('setuptools:', 
setuptools.__version__)"

     - name: Generate user files
diff --git a/.github/workflows/login_tests-ci.yml 
b/.github/workflows/login_tests-ci.yml
index a1f1f7c..bac844f 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -77,10 +77,12 @@
       run: |
         python -m pip install --upgrade pip
         pip --version
-        pip install -U setuptools
-        pip install requests
-        pip install mwparserfromhell
         pip install coverage
+        pip install "importlib_metadata ; python_version < '3.8'"
+        pip install mwparserfromhell
+        pip install packaging
+        pip install requests
+        pip install -U setuptools
         python -c "import setuptools; print('setuptools:', 
setuptools.__version__)"

     - name: Generate family files
diff --git a/.github/workflows/oauth_tests-ci.yml 
b/.github/workflows/oauth_tests-ci.yml
index 497573c..1b3f0a3 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -84,11 +84,13 @@
       run: |
         python -m pip install --upgrade pip
         pip --version
-        pip install -U setuptools
-        pip install requests
+        pip install coverage
+        pip install "importlib_metadata ; python_version < '3.8'"
         pip install mwparserfromhell
         pip install mwoauth
-        pip install coverage
+        pip install packaging
+        pip install requests
+        pip install -U setuptools
         python -c "import setuptools; print('setuptools:', 
setuptools.__version__)"

     - name: Generate family files
diff --git a/README.rst b/README.rst
index ed72d48..7064b6b 100644
--- a/README.rst
+++ b/README.rst
@@ -52,6 +52,7 @@
 .. code:: text

     pip install requests
+    pip install packaging
     git clone https://gerrit.wikimedia.org/r/pywikibot/core.git
     cd core
     git submodule update --init

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/987746
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: I6eb73b94cf9ea56196262002d9c908b58110b047
Gerrit-Change-Number: 987746
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]
To unsubscribe send an email to [email protected]

Reply via email to