Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1306123?usp=email )

Change subject: GraalPy: add workaround for known GraalPy compatibility issues
......................................................................

GraalPy: add workaround for known GraalPy compatibility issues

Bug: T430459
Bug: T430455
Change-Id: I6e25a754362e773911ae3663784739de6a9de6d3
---
M .github/workflows/graalpy_tests.yml
M requirements.txt
2 files changed, 6 insertions(+), 4 deletions(-)

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




diff --git a/.github/workflows/graalpy_tests.yml 
b/.github/workflows/graalpy_tests.yml
index 9c2f84d..873d077 100644
--- a/.github/workflows/graalpy_tests.yml
+++ b/.github/workflows/graalpy_tests.yml
@@ -51,10 +51,9 @@
           pip install "pytest >= 9.0.3"
           pip install pytest-attrib
           pip install coverage
-      - name: Install urllib3 compatibility package
-        if: matrix.python-version == 'graalpy-24.1'
-        run: |
-          pip install "urllib3<2"
+          # Workaround for known GraalPy compatibility issues (SSL + charset 
detection)
+          pip install "charset_normalizer<=3.4.5"
+          pip install "urllib3<2.7"
       - name: Generate user files
         run: |
           python -Werror::UserWarning -m pwb generate_user_files 
-site:${{matrix.site}} -v -debug;
diff --git a/requirements.txt b/requirements.txt
index 4bfe610..1fab7e6 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -21,6 +21,9 @@
 mwparserfromhell>=0.7.2
 packaging>=25.0
 requests>=2.32.3
+# Workaround for known GraalPy compatibility issues (SSL + charset detection)
+charset-normalizer<=3.4.5 ; platform_python_implementation == "GraalVM"
+urllib3<2.7 ; platform_python_implementation == "GraalVM"

 # MediaWiki markup parser
 # mwparserfromhell is mandatory but wikitextparser can be used instead

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1306123?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: I6e25a754362e773911ae3663784739de6a9de6d3
Gerrit-Change-Number: 1306123
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to