jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1064720?usp=email )

Change subject: [tests] install wikitextparser instead of mwparserfromhell for 
Python 3.13
......................................................................

[tests] install wikitextparser instead of mwparserfromhell for Python 3.13

mwparserfromhell fails with Python 3.13

Bug: T372162
Change-Id: I5ccbb89b87c23737a2ae78a375002e3c299900d4
---
M .github/workflows/doctest.yml
M .github/workflows/login_tests-ci.yml
M .github/workflows/oauth_tests-ci.yml
M requirements.txt
4 files changed, 7 insertions(+), 4 deletions(-)

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




diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml
index a8c91f0..6b68291 100644
--- a/.github/workflows/doctest.yml
+++ b/.github/workflows/doctest.yml
@@ -58,7 +58,7 @@
         pip --version
         pip install coverage
         pip install "importlib_metadata ; python_version < '3.8'"
-        pip install mwparserfromhell
+        pip install "mwparserfromhell ; python_version != '3.13'"
         pip install packaging
         pip install "PyMySQL >= 1.0.0"
         pip install pytest
diff --git a/.github/workflows/login_tests-ci.yml 
b/.github/workflows/login_tests-ci.yml
index dc1de99..897f9cd 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -73,7 +73,8 @@
         pip --version
         pip install coverage
         pip install "importlib_metadata ; python_version < '3.8'"
-        pip install mwparserfromhell
+        pip install "mwparserfromhell ; python_version != '3.13'"
+        pip install "wikitextparser ; python_version == '3.13'"
         pip install packaging
         pip install requests

diff --git a/.github/workflows/oauth_tests-ci.yml 
b/.github/workflows/oauth_tests-ci.yml
index fa052f7..5a8acd7 100644
--- a/.github/workflows/oauth_tests-ci.yml
+++ b/.github/workflows/oauth_tests-ci.yml
@@ -77,7 +77,8 @@
         pip --version
         pip install coverage
         pip install "importlib_metadata ; python_version < '3.8'"
-        pip install mwparserfromhell
+        pip install "mwparserfromhell ; python_version != '3.13'"
+        pip install "wikitextparser ; python_version == '3.13'"
         pip install mwoauth
         pip install packaging
         pip install requests
diff --git a/requirements.txt b/requirements.txt
index 6c3d89d..5058dd0 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,8 +18,9 @@
 # $ awk -F '[#>=]' '{print $1}' requirements.txt | xargs apt-cache search

 # mandatory dependencies, others are optional
+# mwparserfromhell fails with Python 3.13 (T372162)
 importlib_metadata ; python_version < '3.8'
-mwparserfromhell>=0.5.2
+mwparserfromhell>=0.5.2; python_version != '3.13'
 packaging
 requests>=2.21.0


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

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5ccbb89b87c23737a2ae78a375002e3c299900d4
Gerrit-Change-Number: 1064720
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to